File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -87,9 +87,13 @@ function finish_module!(@nospecialize(job::CompilerJob{MetalCompilerTarget}), mo
87
87
end
88
88
89
89
function validate_ir (job:: CompilerJob{MetalCompilerTarget} , mod:: LLVM.Module )
90
+ errors = IRError[]
91
+
90
92
# Metal never supports double precision
91
- check_ir_values (mod, LLVM. DoubleType ())
92
- check_ir_values (mod, LLVM. IntType (128 ))
93
+ append! (errors, check_ir_values (mod, LLVM. DoubleType ()))
94
+ append! (errors, check_ir_values (mod, LLVM. IntType (128 )))
95
+
96
+ errors
93
97
end
94
98
95
99
# hide `noreturn` function attributes, which cause issues with the back-end compiler,
@@ -926,7 +930,7 @@ function lower_llvm_intrinsics!(@nospecialize(job::CompilerJob), fun::LLVM.Funct
926
930
# normally we'd do this inline, but LLVM.jl doesn't have BB split functionality.
927
931
new_intr_fn = if is_minimum
928
932
" air.minimum.f$(8 * sizeof (jltyp)) "
929
- else
933
+ else
930
934
" air.maximum.f$(8 * sizeof (jltyp)) "
931
935
end
932
936
You can’t perform that action at this time.
0 commit comments