We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0407196 commit 11530d9Copy full SHA for 11530d9
test/helpers/test.jl
@@ -41,6 +41,7 @@ end
41
module FileCheck
42
import LLVM_jll
43
import IOCapture
44
+ using GPUCompiler, LLVM
45
using InteractiveUtils
46
using Test
47
@@ -65,15 +66,8 @@ module FileCheck
65
66
return Cmd(Cmd([filecheck_path]); env)
67
end
68
- const julia_typed_pointers = let
69
- ir = sprint(io->code_llvm(io, unsafe_load, Tuple{Ptr{Int}}))
70
- if occursin(r"load i64, i64\* .+, align 1", ir)
71
- true
72
- elseif occursin(r"load i64, ptr .+, align 1", ir)
73
- false
74
- else
75
- error("could not determine whether Julia uses typed pointers")
76
- end
+ const julia_typed_pointers = JuliaContext() do ctx
+ supports_typed_pointers(ctx)
77
78
79
function filecheck(f, input)
0 commit comments