Lang Hames 98440293fb [ORC] Add partitioning support to CompileOnDemandLayer2.
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
2018-09-29 23:49:57 +00:00

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}