llvm.org GIT mirror llvm / 61abf15
Standardizing lli's extra module command line option git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193544 91177308-0d34-0410-b5e6-96231b3b80d8 Andrew Kaylor 6 years ago
10 changed file(s) with 10 addition(s) and 11 deletion(s). Raw diff Collapse all Expand all
None ; RUN: %lli_mcjit -extra-modules=%p/cross-module-b.ir %s > /dev/null
0 ; RUN: %lli_mcjit -extra-module=%p/cross-module-b.ir %s > /dev/null
11
22 declare i32 @FB()
33
None ; RUN: %lli_mcjit -extra-modules=%p/cross-module-b.ir -relocation-model=pic -code-model=small %s > /dev/null
0 ; RUN: %lli_mcjit -extra-module=%p/cross-module-b.ir -relocation-model=pic -code-model=small %s > /dev/null
11 ; XFAIL: mips, i686, i386, aarch64, arm
22
33 declare i32 @FB()
None ; RUN: %lli_mcjit -extra-modules=%p/multi-module-b.ir,%p/multi-module-c.ir %s > /dev/null
0 ; RUN: %lli_mcjit -extra-module=%p/multi-module-b.ir -extra-module=%p/multi-module-c.ir %s > /dev/null
11
22 declare i32 @FB()
33
None ; RUN: %lli_mcjit -extra-modules=%p/multi-module-eh-b.ir %s
0 ; RUN: %lli_mcjit -extra-module=%p/multi-module-eh-b.ir %s
11 ; XFAIL: arm, cygwin, win32, mingw
22 declare i8* @__cxa_allocate_exception(i64)
33 declare void @__cxa_throw(i8*, i8*, i8*)
None ; RUN: %lli_mcjit -extra-modules=%p/multi-module-b.ir,%p/multi-module-c.ir -relocation-model=pic -code-model=small %s > /dev/null
0 ; RUN: %lli_mcjit -extra-module=%p/multi-module-b.ir -extra-module=%p/multi-module-c.ir -relocation-model=pic -code-model=small %s > /dev/null
11 ; XFAIL: mips, i686, i386, aarch64, arm
22
33 declare i32 @FB()
None ; RUN: %lli_mcjit -extra-modules=%p/cross-module-b.ir -disable-lazy-compilation=true -remote-mcjit -mcjit-remote-process=lli-child-target %s > /dev/null
0 ; RUN: %lli_mcjit -extra-module=%p/cross-module-b.ir -disable-lazy-compilation=true -remote-mcjit -mcjit-remote-process=lli-child-target %s > /dev/null
11
22 ; This fails because __main is not resolved in remote mcjit.
33 ; XFAIL: cygwin,mingw32
None ; RUN: %lli_mcjit -extra-modules=%p/cross-module-b.ir -disable-lazy-compilation=true -remote-mcjit -mcjit-remote-process=lli-child-target -relocation-model=pic -code-model=small %s > /dev/null
0 ; RUN: %lli_mcjit -extra-module=%p/cross-module-b.ir -disable-lazy-compilation=true -remote-mcjit -mcjit-remote-process=lli-child-target -relocation-model=pic -code-model=small %s > /dev/null
11 ; XFAIL: mips, i686, i386, aarch64, arm
22
33 declare i32 @FB()
None ; RUN: %lli_mcjit -extra-modules=%p/multi-module-b.ir,%p/multi-module-c.ir -disable-lazy-compilation=true -remote-mcjit -mcjit-remote-process=lli-child-target %s > /dev/null
0 ; RUN: %lli_mcjit -extra-module=%p/multi-module-b.ir -extra-module=%p/multi-module-c.ir -disable-lazy-compilation=true -remote-mcjit -mcjit-remote-process=lli-child-target %s > /dev/null
11
22 ; This fails because __main is not resolved in remote mcjit.
33 ; XFAIL: cygwin,mingw32
None ; RUN: %lli_mcjit -extra-modules=%p/multi-module-b.ir,%p/multi-module-c.ir -disable-lazy-compilation=true -remote-mcjit -mcjit-remote-process=lli-child-target -relocation-model=pic -code-model=small %s > /dev/null
0 ; RUN: %lli_mcjit -extra-module=%p/multi-module-b.ir -extra-module=%p/multi-module-c.ir -disable-lazy-compilation=true -remote-mcjit -mcjit-remote-process=lli-child-target -relocation-model=pic -code-model=small %s > /dev/null
11 ; XFAIL: mips, i686, i386, aarch64, arm
22
33 declare i32 @FB()
131131 cl::init("main"));
132132
133133 cl::list
134 ExtraModules("extra-modules",
135 cl::CommaSeparated,
134 ExtraModules("extra-module",
136135 cl::desc("Extra modules to be loaded"),
137136 cl::value_desc(",,..."));
138137