brintos

brintos / llvm-project-archived public Read only

0
0
Text · 641 B · 20cb786 Raw
22 lines · plain
1; RUN: lli -jit-kind=orc-lazy -orc-lazy-debug=funcs-to-stdout \2; RUN:   %s | FileCheck --check-prefix=CHECK-PER-FUNCTION %s3; RUN: lli -jit-kind=orc-lazy -per-module-lazy -orc-lazy-debug=funcs-to-stdout \4; RUN:   %s | FileCheck --check-prefix=CHECK-WHOLE-MODULE %s5;6; CHECK-PER-FUNCTION-NOT: foo7; CHECK-WHOLE-MODULE: foo8;9; Checks that the whole module is emitted when -per-module-lazy is enabled,10; even though foo is not called.11; Also checks that the foo function is not emitted when -per-module-lazy is off.12 13define void @foo() {14entry:15  ret void16}17 18define i32 @main(i32 %argc, ptr nocapture readnone %argv) {19entry:20  ret i32 021}22