Skip to content

Commit d52df1d

Browse files
committed
Export the backends API.
1 parent cbb9037 commit d52df1d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/init.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ end
1717

1818
## back-end initialization
1919

20+
export backends
21+
2022
const libllvm_backends = [:AArch64, :AMDGPU, :ARC, :ARM, :AVR, :BPF, :Hexagon, :Lanai,
2123
:MSP430, :Mips, :NVPTX, :PowerPC, :RISCV, :Sparc, :SystemZ,
2224
:WebAssembly, :X86, :XCore]

test/transform.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ ModulePassManager() do pm
8989
internalize!(pm, false)
9090
internalize!(pm, ["SomeFunction", "SomeOtherFunction"])
9191

92-
if :NVPTX in LLVM.backends() && VERSION <= v"1.5.0-DEV.138"
92+
if :NVPTX in backends() && VERSION <= v"1.5.0-DEV.138"
9393
nvvm_reflect!(pm)
9494
end
9595
end

0 commit comments

Comments
 (0)