bolt/deps/llvm-18.1.8/llvm/test/ExecutionEngine/OrcLazy/single-function-call.ll

16 lines
334 B
LLVM
Raw Normal View History

2025-02-14 19:21:04 +01:00
; RUN: lli -jit-kind=orc-lazy %s
;
; Basic correctness check: We can make a call inside lazily JIT'd code.
; Compared to minimal.ll, this demonstrates that we can call through a stub.
define i32 @foo() {
entry:
ret i32 0
}
define i32 @main(i32 %argc, ptr nocapture readnone %argv) {
entry:
%0 = call i32() @foo()
ret i32 %0
}