From 61e22ea592f877d4b7a632fc3ac208445612a8bd Mon Sep 17 00:00:00 2001 From: Andrew Kaylor Date: Mon, 28 Oct 2013 23:51:03 +0000 Subject: Renaming MCJIT .ir files to .ll and moving them to Inputs git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193562 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../ExecutionEngine/MCJIT/Inputs/cross-module-b.ll | 7 +++++ .../ExecutionEngine/MCJIT/Inputs/multi-module-b.ll | 7 +++++ .../ExecutionEngine/MCJIT/Inputs/multi-module-c.ll | 4 +++ .../MCJIT/Inputs/multi-module-eh-b.ll | 30 ++++++++++++++++++++++ test/ExecutionEngine/MCJIT/cross-module-a.ll | 2 +- test/ExecutionEngine/MCJIT/cross-module-b.ir | 7 ----- .../ExecutionEngine/MCJIT/cross-module-sm-pic-a.ll | 2 +- test/ExecutionEngine/MCJIT/multi-module-a.ll | 2 +- test/ExecutionEngine/MCJIT/multi-module-b.ir | 7 ----- test/ExecutionEngine/MCJIT/multi-module-c.ir | 4 --- test/ExecutionEngine/MCJIT/multi-module-eh-a.ll | 2 +- test/ExecutionEngine/MCJIT/multi-module-eh-b.ir | 30 ---------------------- .../ExecutionEngine/MCJIT/multi-module-sm-pic-a.ll | 2 +- .../MCJIT/remote/Inputs/cross-module-b.ll | 7 +++++ .../MCJIT/remote/Inputs/multi-module-b.ll | 7 +++++ .../MCJIT/remote/Inputs/multi-module-c.ll | 4 +++ .../ExecutionEngine/MCJIT/remote/cross-module-a.ll | 2 +- .../ExecutionEngine/MCJIT/remote/cross-module-b.ir | 7 ----- .../MCJIT/remote/cross-module-sm-pic-a.ll | 2 +- .../ExecutionEngine/MCJIT/remote/multi-module-a.ll | 2 +- .../ExecutionEngine/MCJIT/remote/multi-module-b.ir | 7 ----- .../ExecutionEngine/MCJIT/remote/multi-module-c.ir | 4 --- .../MCJIT/remote/multi-module-sm-pic-a.ll | 2 +- 23 files changed, 75 insertions(+), 75 deletions(-) create mode 100644 test/ExecutionEngine/MCJIT/Inputs/cross-module-b.ll create mode 100644 test/ExecutionEngine/MCJIT/Inputs/multi-module-b.ll create mode 100644 test/ExecutionEngine/MCJIT/Inputs/multi-module-c.ll create mode 100644 test/ExecutionEngine/MCJIT/Inputs/multi-module-eh-b.ll delete mode 100644 test/ExecutionEngine/MCJIT/cross-module-b.ir delete mode 100644 test/ExecutionEngine/MCJIT/multi-module-b.ir delete mode 100644 test/ExecutionEngine/MCJIT/multi-module-c.ir delete mode 100644 test/ExecutionEngine/MCJIT/multi-module-eh-b.ir create mode 100644 test/ExecutionEngine/MCJIT/remote/Inputs/cross-module-b.ll create mode 100644 test/ExecutionEngine/MCJIT/remote/Inputs/multi-module-b.ll create mode 100644 test/ExecutionEngine/MCJIT/remote/Inputs/multi-module-c.ll delete mode 100644 test/ExecutionEngine/MCJIT/remote/cross-module-b.ir delete mode 100644 test/ExecutionEngine/MCJIT/remote/multi-module-b.ir delete mode 100644 test/ExecutionEngine/MCJIT/remote/multi-module-c.ir (limited to 'test/ExecutionEngine') diff --git a/test/ExecutionEngine/MCJIT/Inputs/cross-module-b.ll b/test/ExecutionEngine/MCJIT/Inputs/cross-module-b.ll new file mode 100644 index 0000000..6870117 --- /dev/null +++ b/test/ExecutionEngine/MCJIT/Inputs/cross-module-b.ll @@ -0,0 +1,7 @@ +declare i32 @FA() + +define i32 @FB() { + %r = call i32 @FA( ) ; [#uses=1] + ret i32 %r +} + diff --git a/test/ExecutionEngine/MCJIT/Inputs/multi-module-b.ll b/test/ExecutionEngine/MCJIT/Inputs/multi-module-b.ll new file mode 100644 index 0000000..103b601 --- /dev/null +++ b/test/ExecutionEngine/MCJIT/Inputs/multi-module-b.ll @@ -0,0 +1,7 @@ +declare i32 @FC() + +define i32 @FB() { + %r = call i32 @FC( ) ; [#uses=1] + ret i32 %r +} + diff --git a/test/ExecutionEngine/MCJIT/Inputs/multi-module-c.ll b/test/ExecutionEngine/MCJIT/Inputs/multi-module-c.ll new file mode 100644 index 0000000..b39306b --- /dev/null +++ b/test/ExecutionEngine/MCJIT/Inputs/multi-module-c.ll @@ -0,0 +1,4 @@ +define i32 @FC() { + ret i32 0 +} + diff --git a/test/ExecutionEngine/MCJIT/Inputs/multi-module-eh-b.ll b/test/ExecutionEngine/MCJIT/Inputs/multi-module-eh-b.ll new file mode 100644 index 0000000..d7dbb03 --- /dev/null +++ b/test/ExecutionEngine/MCJIT/Inputs/multi-module-eh-b.ll @@ -0,0 +1,30 @@ +declare i8* @__cxa_allocate_exception(i64) +declare void @__cxa_throw(i8*, i8*, i8*) +declare i32 @__gxx_personality_v0(...) +declare void @__cxa_end_catch() +declare i8* @__cxa_begin_catch(i8*) + +@_ZTIi = external constant i8* + +define void @throwException_B() { + %exception = tail call i8* @__cxa_allocate_exception(i64 4) + call void @__cxa_throw(i8* %exception, i8* bitcast (i8** @_ZTIi to i8*), i8* null) + unreachable +} + +define i32 @FB() { +entry: + invoke void @throwException_B() + to label %try.cont unwind label %lpad + +lpad: + %p = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) + catch i8* bitcast (i8** @_ZTIi to i8*) + %e = extractvalue { i8*, i32 } %p, 0 + call i8* @__cxa_begin_catch(i8* %e) + call void @__cxa_end_catch() + br label %try.cont + +try.cont: + ret i32 0 +} diff --git a/test/ExecutionEngine/MCJIT/cross-module-a.ll b/test/ExecutionEngine/MCJIT/cross-module-a.ll index d6f0423..fe8d386 100644 --- a/test/ExecutionEngine/MCJIT/cross-module-a.ll +++ b/test/ExecutionEngine/MCJIT/cross-module-a.ll @@ -1,4 +1,4 @@ -; RUN: %lli_mcjit -extra-module=%p/cross-module-b.ir %s > /dev/null +; RUN: %lli_mcjit -extra-module=%p/Inputs/cross-module-b.ll %s > /dev/null declare i32 @FB() diff --git a/test/ExecutionEngine/MCJIT/cross-module-b.ir b/test/ExecutionEngine/MCJIT/cross-module-b.ir deleted file mode 100644 index 6870117..0000000 --- a/test/ExecutionEngine/MCJIT/cross-module-b.ir +++ /dev/null @@ -1,7 +0,0 @@ -declare i32 @FA() - -define i32 @FB() { - %r = call i32 @FA( ) ; [#uses=1] - ret i32 %r -} - diff --git a/test/ExecutionEngine/MCJIT/cross-module-sm-pic-a.ll b/test/ExecutionEngine/MCJIT/cross-module-sm-pic-a.ll index 7631ca8..f8acc2a 100644 --- a/test/ExecutionEngine/MCJIT/cross-module-sm-pic-a.ll +++ b/test/ExecutionEngine/MCJIT/cross-module-sm-pic-a.ll @@ -1,4 +1,4 @@ -; RUN: %lli_mcjit -extra-module=%p/cross-module-b.ir -relocation-model=pic -code-model=small %s > /dev/null +; RUN: %lli_mcjit -extra-module=%p/Inputs/cross-module-b.ll -relocation-model=pic -code-model=small %s > /dev/null ; XFAIL: mips, i686, i386, aarch64, arm declare i32 @FB() diff --git a/test/ExecutionEngine/MCJIT/multi-module-a.ll b/test/ExecutionEngine/MCJIT/multi-module-a.ll index abb0e97..8848ca6 100644 --- a/test/ExecutionEngine/MCJIT/multi-module-a.ll +++ b/test/ExecutionEngine/MCJIT/multi-module-a.ll @@ -1,4 +1,4 @@ -; RUN: %lli_mcjit -extra-module=%p/multi-module-b.ir -extra-module=%p/multi-module-c.ir %s > /dev/null +; RUN: %lli_mcjit -extra-module=%p/Inputs/multi-module-b.ll -extra-module=%p/Inputs/multi-module-c.ll %s > /dev/null declare i32 @FB() diff --git a/test/ExecutionEngine/MCJIT/multi-module-b.ir b/test/ExecutionEngine/MCJIT/multi-module-b.ir deleted file mode 100644 index 103b601..0000000 --- a/test/ExecutionEngine/MCJIT/multi-module-b.ir +++ /dev/null @@ -1,7 +0,0 @@ -declare i32 @FC() - -define i32 @FB() { - %r = call i32 @FC( ) ; [#uses=1] - ret i32 %r -} - diff --git a/test/ExecutionEngine/MCJIT/multi-module-c.ir b/test/ExecutionEngine/MCJIT/multi-module-c.ir deleted file mode 100644 index b39306b..0000000 --- a/test/ExecutionEngine/MCJIT/multi-module-c.ir +++ /dev/null @@ -1,4 +0,0 @@ -define i32 @FC() { - ret i32 0 -} - diff --git a/test/ExecutionEngine/MCJIT/multi-module-eh-a.ll b/test/ExecutionEngine/MCJIT/multi-module-eh-a.ll index 5883366..66fafc9 100644 --- a/test/ExecutionEngine/MCJIT/multi-module-eh-a.ll +++ b/test/ExecutionEngine/MCJIT/multi-module-eh-a.ll @@ -1,4 +1,4 @@ -; RUN: %lli_mcjit -extra-module=%p/multi-module-eh-b.ir %s +; RUN: %lli_mcjit -extra-module=%p/Inputs/multi-module-eh-b.ll %s ; XFAIL: arm, cygwin, win32, mingw declare i8* @__cxa_allocate_exception(i64) declare void @__cxa_throw(i8*, i8*, i8*) diff --git a/test/ExecutionEngine/MCJIT/multi-module-eh-b.ir b/test/ExecutionEngine/MCJIT/multi-module-eh-b.ir deleted file mode 100644 index d7dbb03..0000000 --- a/test/ExecutionEngine/MCJIT/multi-module-eh-b.ir +++ /dev/null @@ -1,30 +0,0 @@ -declare i8* @__cxa_allocate_exception(i64) -declare void @__cxa_throw(i8*, i8*, i8*) -declare i32 @__gxx_personality_v0(...) -declare void @__cxa_end_catch() -declare i8* @__cxa_begin_catch(i8*) - -@_ZTIi = external constant i8* - -define void @throwException_B() { - %exception = tail call i8* @__cxa_allocate_exception(i64 4) - call void @__cxa_throw(i8* %exception, i8* bitcast (i8** @_ZTIi to i8*), i8* null) - unreachable -} - -define i32 @FB() { -entry: - invoke void @throwException_B() - to label %try.cont unwind label %lpad - -lpad: - %p = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) - catch i8* bitcast (i8** @_ZTIi to i8*) - %e = extractvalue { i8*, i32 } %p, 0 - call i8* @__cxa_begin_catch(i8* %e) - call void @__cxa_end_catch() - br label %try.cont - -try.cont: - ret i32 0 -} diff --git a/test/ExecutionEngine/MCJIT/multi-module-sm-pic-a.ll b/test/ExecutionEngine/MCJIT/multi-module-sm-pic-a.ll index 423356f..8e270b1 100644 --- a/test/ExecutionEngine/MCJIT/multi-module-sm-pic-a.ll +++ b/test/ExecutionEngine/MCJIT/multi-module-sm-pic-a.ll @@ -1,4 +1,4 @@ -; 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 +; RUN: %lli_mcjit -extra-module=%p/Inputs/multi-module-b.ll -extra-module=%p/Inputs/multi-module-c.ll -relocation-model=pic -code-model=small %s > /dev/null ; XFAIL: mips, i686, i386, aarch64, arm declare i32 @FB() diff --git a/test/ExecutionEngine/MCJIT/remote/Inputs/cross-module-b.ll b/test/ExecutionEngine/MCJIT/remote/Inputs/cross-module-b.ll new file mode 100644 index 0000000..6870117 --- /dev/null +++ b/test/ExecutionEngine/MCJIT/remote/Inputs/cross-module-b.ll @@ -0,0 +1,7 @@ +declare i32 @FA() + +define i32 @FB() { + %r = call i32 @FA( ) ; [#uses=1] + ret i32 %r +} + diff --git a/test/ExecutionEngine/MCJIT/remote/Inputs/multi-module-b.ll b/test/ExecutionEngine/MCJIT/remote/Inputs/multi-module-b.ll new file mode 100644 index 0000000..103b601 --- /dev/null +++ b/test/ExecutionEngine/MCJIT/remote/Inputs/multi-module-b.ll @@ -0,0 +1,7 @@ +declare i32 @FC() + +define i32 @FB() { + %r = call i32 @FC( ) ; [#uses=1] + ret i32 %r +} + diff --git a/test/ExecutionEngine/MCJIT/remote/Inputs/multi-module-c.ll b/test/ExecutionEngine/MCJIT/remote/Inputs/multi-module-c.ll new file mode 100644 index 0000000..b39306b --- /dev/null +++ b/test/ExecutionEngine/MCJIT/remote/Inputs/multi-module-c.ll @@ -0,0 +1,4 @@ +define i32 @FC() { + ret i32 0 +} + diff --git a/test/ExecutionEngine/MCJIT/remote/cross-module-a.ll b/test/ExecutionEngine/MCJIT/remote/cross-module-a.ll index 69565a3..79efb3c 100644 --- a/test/ExecutionEngine/MCJIT/remote/cross-module-a.ll +++ b/test/ExecutionEngine/MCJIT/remote/cross-module-a.ll @@ -1,4 +1,4 @@ -; 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 +; RUN: %lli_mcjit -extra-module=%p/Inputs/cross-module-b.ll -disable-lazy-compilation=true -remote-mcjit -mcjit-remote-process=lli-child-target %s > /dev/null ; This fails because __main is not resolved in remote mcjit. ; XFAIL: cygwin,mingw32 diff --git a/test/ExecutionEngine/MCJIT/remote/cross-module-b.ir b/test/ExecutionEngine/MCJIT/remote/cross-module-b.ir deleted file mode 100644 index 6870117..0000000 --- a/test/ExecutionEngine/MCJIT/remote/cross-module-b.ir +++ /dev/null @@ -1,7 +0,0 @@ -declare i32 @FA() - -define i32 @FB() { - %r = call i32 @FA( ) ; [#uses=1] - ret i32 %r -} - diff --git a/test/ExecutionEngine/MCJIT/remote/cross-module-sm-pic-a.ll b/test/ExecutionEngine/MCJIT/remote/cross-module-sm-pic-a.ll index 75d9b6b..c77cbda 100644 --- a/test/ExecutionEngine/MCJIT/remote/cross-module-sm-pic-a.ll +++ b/test/ExecutionEngine/MCJIT/remote/cross-module-sm-pic-a.ll @@ -1,4 +1,4 @@ -; 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 +; RUN: %lli_mcjit -extra-module=%p/Inputs/cross-module-b.ll -disable-lazy-compilation=true -remote-mcjit -mcjit-remote-process=lli-child-target -relocation-model=pic -code-model=small %s > /dev/null ; XFAIL: mips, i686, i386, aarch64, arm declare i32 @FB() diff --git a/test/ExecutionEngine/MCJIT/remote/multi-module-a.ll b/test/ExecutionEngine/MCJIT/remote/multi-module-a.ll index 5cb4224..d7c2829 100644 --- a/test/ExecutionEngine/MCJIT/remote/multi-module-a.ll +++ b/test/ExecutionEngine/MCJIT/remote/multi-module-a.ll @@ -1,4 +1,4 @@ -; 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 +; RUN: %lli_mcjit -extra-module=%p/Inputs/multi-module-b.ll -extra-module=%p/Inputs/multi-module-c.ll -disable-lazy-compilation=true -remote-mcjit -mcjit-remote-process=lli-child-target %s > /dev/null ; This fails because __main is not resolved in remote mcjit. ; XFAIL: cygwin,mingw32 diff --git a/test/ExecutionEngine/MCJIT/remote/multi-module-b.ir b/test/ExecutionEngine/MCJIT/remote/multi-module-b.ir deleted file mode 100644 index 103b601..0000000 --- a/test/ExecutionEngine/MCJIT/remote/multi-module-b.ir +++ /dev/null @@ -1,7 +0,0 @@ -declare i32 @FC() - -define i32 @FB() { - %r = call i32 @FC( ) ; [#uses=1] - ret i32 %r -} - diff --git a/test/ExecutionEngine/MCJIT/remote/multi-module-c.ir b/test/ExecutionEngine/MCJIT/remote/multi-module-c.ir deleted file mode 100644 index b39306b..0000000 --- a/test/ExecutionEngine/MCJIT/remote/multi-module-c.ir +++ /dev/null @@ -1,4 +0,0 @@ -define i32 @FC() { - ret i32 0 -} - diff --git a/test/ExecutionEngine/MCJIT/remote/multi-module-sm-pic-a.ll b/test/ExecutionEngine/MCJIT/remote/multi-module-sm-pic-a.ll index a7fe627..74a6a6b 100644 --- a/test/ExecutionEngine/MCJIT/remote/multi-module-sm-pic-a.ll +++ b/test/ExecutionEngine/MCJIT/remote/multi-module-sm-pic-a.ll @@ -1,4 +1,4 @@ -; 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 +; RUN: %lli_mcjit -extra-module=%p/Inputs/multi-module-b.ll -extra-module=%p/Inputs/multi-module-c.ll -disable-lazy-compilation=true -remote-mcjit -mcjit-remote-process=lli-child-target -relocation-model=pic -code-model=small %s > /dev/null ; XFAIL: mips, i686, i386, aarch64, arm declare i32 @FB() -- cgit v1.1