mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
1d65c306a2
CompileOnDemandLayer2 now supports user-supplied partition functions (the original CompileOnDemandLayer already supported these). Partition functions are called with the list of requested global values (i.e. global values that currently have queries waiting on them) and have an opportunity to select extra global values to materialize at the same time. Also adds testing infrastructure for the new feature to lli. llvm-svn: 343396
14 lines
278 B
LLVM
14 lines
278 B
LLVM
; RUN: lli -jit-kind=orc-lazy -orc-lazy-debug=mods-to-stdout %s | FileCheck %s
|
|
;
|
|
; CHECK: module-flags.ll.submodule
|
|
; CHECK-NOT: Module End
|
|
; CHECK: The Answer is {{.*}}42
|
|
|
|
define i32 @main() {
|
|
ret i32 0
|
|
}
|
|
|
|
!llvm.module.flags = !{!0}
|
|
|
|
!0 = !{i32 1, !"The Answer is ", i32 42}
|