summaryrefslogtreecommitdiffstats
path: root/llvm/test/ExecutionEngine
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2016-09-04 17:53:30 +0000
committerLang Hames <lhames@gmail.com>2016-09-04 17:53:30 +0000
commit38c7927b6f6c54ea48144b3d39aaffb18c31aee4 (patch)
tree543b728c8cb130d52afad5b90e35ca47cd3d0823 /llvm/test/ExecutionEngine
parent128047fde5b1a559d12c241de88be183ce8f42eb (diff)
downloadbcm5719-llvm-38c7927b6f6c54ea48144b3d39aaffb18c31aee4.tar.gz
bcm5719-llvm-38c7927b6f6c54ea48144b3d39aaffb18c31aee4.zip
[ORC] Clone module flags metadata into the globals module in the
CompileOnDemandLayer. Also contains a tweak to the orc-lazy jit in LLI to enable the test case. llvm-svn: 280632
Diffstat (limited to 'llvm/test/ExecutionEngine')
-rw-r--r--llvm/test/ExecutionEngine/OrcLazy/module-flags.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/ExecutionEngine/OrcLazy/module-flags.ll b/llvm/test/ExecutionEngine/OrcLazy/module-flags.ll
new file mode 100644
index 00000000000..c1240a876cb
--- /dev/null
+++ b/llvm/test/ExecutionEngine/OrcLazy/module-flags.ll
@@ -0,0 +1,13 @@
+; RUN: lli -jit-kind=orc-lazy -orc-lazy-debug=mods-to-stdout %s | FileCheck %s
+;
+; CHECK: module-flags.ll.globals
+; 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}
OpenPOWER on IntegriCloud