Commit fba12ad 1 parent 2266cc5 commit fba12ad Copy full SHA for fba12ad
File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import Printf
22
22
# However, not all LLVM targets support `bfloat`. If the target can store/load BFloat16s
23
23
# (and supports synthesizing constants) we can use the `bfloat` IR type, otherwise we fall
24
24
# back to defining a primitive type that will be represented as an `i16`. If, in addition,
25
- # the target supports BFloat16 arithmetic, we can use LLVM intrinsics .
25
+ # the target supports BFloat16 arithmetic, we can use LLVM instructions .
26
26
# - x86: storage and arithmetic support in LLVM 15
27
27
# - aarch64: storage support in LLVM 17
28
28
const llvm_storage = if isdefined (Core, :BFloat16 )
@@ -40,6 +40,8 @@ const llvm_arithmetic = if llvm_storage
40
40
using Core: BFloat16
41
41
if Sys. ARCH in [:x86_64 , :i686 ] && Base. libllvm_version >= v " 15"
42
42
true
43
+ elseif Sys. ARCH == :aarch64 && Base. libllvm_version >= v " 19"
44
+ true
43
45
else
44
46
false
45
47
end
You can’t perform that action at this time.
0 commit comments