diff options
| author | David Blaikie <dblaikie@gmail.com> | 2015-03-13 18:20:45 +0000 |
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2015-03-13 18:20:45 +0000 |
| commit | f72d05bc7bd83d8a808c2c8662873a0840f39b4d (patch) | |
| tree | e791af176cc30d8c637cfeeaab5210b08ea7c1ed /llvm/test/ExecutionEngine | |
| parent | 84f613532fb33fa0894c5836e7b5619f15f6c321 (diff) | |
| download | bcm5719-llvm-f72d05bc7bd83d8a808c2c8662873a0840f39b4d.tar.gz bcm5719-llvm-f72d05bc7bd83d8a808c2c8662873a0840f39b4d.zip | |
[opaque pointer type] Add textual IR support for explicit type parameter to gep operator
Similar to gep (r230786) and load (r230794) changes.
Similar migration script can be used to update test cases, which
successfully migrated all of LLVM and Polly, but about 4 test cases
needed manually changes in Clang.
(this script will read the contents of stdin and massage it into stdout
- wrap it in the 'apply.sh' script shown in previous commits + xargs to
apply it over a large set of test cases)
import fileinput
import sys
import re
rep = re.compile(r"(getelementptr(?:\s+inbounds)?\s*\()((<\d*\s+x\s+)?([^@]*?)(|\s*addrspace\(\d+\))\s*\*(?(3)>)\s*)(?=$|%|@|null|undef|blockaddress|getelementptr|addrspacecast|bitcast|inttoptr|zeroinitializer|<|\[\[[a-zA-Z]|\{\{)", re.MULTILINE | re.DOTALL)
def conv(match):
line = match.group(1)
line += match.group(4)
line += ", "
line += match.group(2)
return line
line = sys.stdin.read()
off = 0
for match in re.finditer(rep, line):
sys.stdout.write(line[off:match.start()])
sys.stdout.write(conv(match))
off = match.end()
sys.stdout.write(line[off:])
llvm-svn: 232184
Diffstat (limited to 'llvm/test/ExecutionEngine')
31 files changed, 39 insertions, 39 deletions
diff --git a/llvm/test/ExecutionEngine/MCJIT/2002-12-16-ArgTest.ll b/llvm/test/ExecutionEngine/MCJIT/2002-12-16-ArgTest.ll index 52b04a0fe36..1ddc5cefad7 100644 --- a/llvm/test/ExecutionEngine/MCJIT/2002-12-16-ArgTest.ll +++ b/llvm/test/ExecutionEngine/MCJIT/2002-12-16-ArgTest.ll @@ -13,7 +13,7 @@ declare i32 @printf(i8*, ...) define i32 @main(i32 %argc, i8** %argv) { bb0: - call i32 (i8*, ...)* @printf( i8* getelementptr ([10 x i8]* @.LC0, i64 0, i64 0), i32 %argc ) ; <i32>:0 [#uses=0] + call i32 (i8*, ...)* @printf( i8* getelementptr ([10 x i8], [10 x i8]* @.LC0, i64 0, i64 0), i32 %argc ) ; <i32>:0 [#uses=0] %cast224 = bitcast i8** %argv to i8* ; <i8*> [#uses=1] %local = alloca i8* ; <i8**> [#uses=3] store i8* %cast224, i8** %local diff --git a/llvm/test/ExecutionEngine/MCJIT/2013-04-04-RelocAddend.ll b/llvm/test/ExecutionEngine/MCJIT/2013-04-04-RelocAddend.ll index a329e986a39..631cb2f67af 100644 --- a/llvm/test/ExecutionEngine/MCJIT/2013-04-04-RelocAddend.ll +++ b/llvm/test/ExecutionEngine/MCJIT/2013-04-04-RelocAddend.ll @@ -14,7 +14,7 @@ ; @test = global [2 x i32] [i32 -1, i32 0], align 4 -@p = global i32* getelementptr inbounds ([2 x i32]* @test, i64 0, i64 1), align 8 +@p = global i32* getelementptr inbounds ([2 x i32], [2 x i32]* @test, i64 0, i64 1), align 8 define i32 @main() { entry: diff --git a/llvm/test/ExecutionEngine/MCJIT/hello-sm-pic.ll b/llvm/test/ExecutionEngine/MCJIT/hello-sm-pic.ll index 7db60f7aeeb..4843f4e247d 100644 --- a/llvm/test/ExecutionEngine/MCJIT/hello-sm-pic.ll +++ b/llvm/test/ExecutionEngine/MCJIT/hello-sm-pic.ll @@ -6,7 +6,7 @@ declare i32 @puts(i8*) define i32 @main() { - %reg210 = call i32 @puts( i8* getelementptr ([12 x i8]* @.LC0, i64 0, i64 0) ) ; <i32> [#uses=0] + %reg210 = call i32 @puts( i8* getelementptr ([12 x i8], [12 x i8]* @.LC0, i64 0, i64 0) ) ; <i32> [#uses=0] ret i32 0 } diff --git a/llvm/test/ExecutionEngine/MCJIT/hello.ll b/llvm/test/ExecutionEngine/MCJIT/hello.ll index 47e36a58956..516f57a81cd 100644 --- a/llvm/test/ExecutionEngine/MCJIT/hello.ll +++ b/llvm/test/ExecutionEngine/MCJIT/hello.ll @@ -5,7 +5,7 @@ declare i32 @puts(i8*) define i32 @main() { - %reg210 = call i32 @puts( i8* getelementptr ([12 x i8]* @.LC0, i64 0, i64 0) ) ; <i32> [#uses=0] + %reg210 = call i32 @puts( i8* getelementptr ([12 x i8], [12 x i8]* @.LC0, i64 0, i64 0) ) ; <i32> [#uses=0] ret i32 0 } diff --git a/llvm/test/ExecutionEngine/MCJIT/pr13727.ll b/llvm/test/ExecutionEngine/MCJIT/pr13727.ll index df57759bcce..79dd9b4ccc0 100644 --- a/llvm/test/ExecutionEngine/MCJIT/pr13727.ll +++ b/llvm/test/ExecutionEngine/MCJIT/pr13727.ll @@ -81,7 +81,7 @@ for.inc: ; preds = %for.body br label %for.cond for.end: ; preds = %for.cond - %10 = load i32, i32* getelementptr inbounds ([10 x i32]* @zero_arr, i32 0, i64 9), align 4 + %10 = load i32, i32* getelementptr inbounds ([10 x i32], [10 x i32]* @zero_arr, i32 0, i64 9), align 4 %cmp12 = icmp eq i32 %10, 110 %cond = select i1 %cmp12, i32 0, i32 -1 ret i32 %cond diff --git a/llvm/test/ExecutionEngine/MCJIT/remote/stubs-remote.ll b/llvm/test/ExecutionEngine/MCJIT/remote/stubs-remote.ll index 03e6bb398b6..a834ac5c985 100644 --- a/llvm/test/ExecutionEngine/MCJIT/remote/stubs-remote.ll +++ b/llvm/test/ExecutionEngine/MCJIT/remote/stubs-remote.ll @@ -21,7 +21,7 @@ entry: pass_block: ret void fail_block: - call i32 @puts(i8* getelementptr([46 x i8]* @lcaic_failure, i32 0, i32 0)) + call i32 @puts(i8* getelementptr([46 x i8], [46 x i8]* @lcaic_failure, i32 0, i32 0)) call void @exit(i32 1) unreachable } diff --git a/llvm/test/ExecutionEngine/MCJIT/remote/stubs-sm-pic.ll b/llvm/test/ExecutionEngine/MCJIT/remote/stubs-sm-pic.ll index 8f9b05b9c3f..62e89cad332 100644 --- a/llvm/test/ExecutionEngine/MCJIT/remote/stubs-sm-pic.ll +++ b/llvm/test/ExecutionEngine/MCJIT/remote/stubs-sm-pic.ll @@ -21,7 +21,7 @@ entry: pass_block: ret void fail_block: - call i32 @puts(i8* getelementptr([46 x i8]* @lcaic_failure, i32 0, i32 0)) + call i32 @puts(i8* getelementptr([46 x i8], [46 x i8]* @lcaic_failure, i32 0, i32 0)) call void @exit(i32 1) unreachable } diff --git a/llvm/test/ExecutionEngine/MCJIT/remote/test-common-symbols-remote.ll b/llvm/test/ExecutionEngine/MCJIT/remote/test-common-symbols-remote.ll index 5cc304aef24..fb7750adf49 100644 --- a/llvm/test/ExecutionEngine/MCJIT/remote/test-common-symbols-remote.ll +++ b/llvm/test/ExecutionEngine/MCJIT/remote/test-common-symbols-remote.ll @@ -81,7 +81,7 @@ for.inc: ; preds = %for.body br label %for.cond for.end: ; preds = %for.cond - %10 = load i32, i32* getelementptr inbounds ([10 x i32]* @zero_arr, i32 0, i64 9), align 4 + %10 = load i32, i32* getelementptr inbounds ([10 x i32], [10 x i32]* @zero_arr, i32 0, i64 9), align 4 %cmp12 = icmp eq i32 %10, 110 %cond = select i1 %cmp12, i32 0, i32 -1 ret i32 %cond diff --git a/llvm/test/ExecutionEngine/MCJIT/remote/test-ptr-reloc-remote.ll b/llvm/test/ExecutionEngine/MCJIT/remote/test-ptr-reloc-remote.ll index 19303ccfb95..ad1af93ffde 100644 --- a/llvm/test/ExecutionEngine/MCJIT/remote/test-ptr-reloc-remote.ll +++ b/llvm/test/ExecutionEngine/MCJIT/remote/test-ptr-reloc-remote.ll @@ -1,9 +1,9 @@ ; RUN: %lli -remote-mcjit -O0 -mcjit-remote-process=lli-child-target%exeext %s @.str = private unnamed_addr constant [6 x i8] c"data1\00", align 1 -@ptr = global i8* getelementptr inbounds ([6 x i8]* @.str, i32 0, i32 0), align 4 +@ptr = global i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i32 0, i32 0), align 4 @.str1 = private unnamed_addr constant [6 x i8] c"data2\00", align 1 -@ptr2 = global i8* getelementptr inbounds ([6 x i8]* @.str1, i32 0, i32 0), align 4 +@ptr2 = global i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str1, i32 0, i32 0), align 4 define i32 @main(i32 %argc, i8** nocapture %argv) nounwind readonly { entry: diff --git a/llvm/test/ExecutionEngine/MCJIT/remote/test-ptr-reloc-sm-pic.ll b/llvm/test/ExecutionEngine/MCJIT/remote/test-ptr-reloc-sm-pic.ll index ac52e732cb3..d9a4faa8e6b 100644 --- a/llvm/test/ExecutionEngine/MCJIT/remote/test-ptr-reloc-sm-pic.ll +++ b/llvm/test/ExecutionEngine/MCJIT/remote/test-ptr-reloc-sm-pic.ll @@ -2,9 +2,9 @@ ; XFAIL: mips, aarch64, arm, i686, i386 @.str = private unnamed_addr constant [6 x i8] c"data1\00", align 1 -@ptr = global i8* getelementptr inbounds ([6 x i8]* @.str, i32 0, i32 0), align 4 +@ptr = global i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i32 0, i32 0), align 4 @.str1 = private unnamed_addr constant [6 x i8] c"data2\00", align 1 -@ptr2 = global i8* getelementptr inbounds ([6 x i8]* @.str1, i32 0, i32 0), align 4 +@ptr2 = global i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str1, i32 0, i32 0), align 4 define i32 @main(i32 %argc, i8** nocapture %argv) nounwind readonly { entry: diff --git a/llvm/test/ExecutionEngine/MCJIT/stubs-sm-pic.ll b/llvm/test/ExecutionEngine/MCJIT/stubs-sm-pic.ll index 134a0910876..6eebe44e3ff 100644 --- a/llvm/test/ExecutionEngine/MCJIT/stubs-sm-pic.ll +++ b/llvm/test/ExecutionEngine/MCJIT/stubs-sm-pic.ll @@ -20,7 +20,7 @@ entry: pass_block: ret void fail_block: - call i32 @puts(i8* getelementptr([46 x i8]* @lcaic_failure, i32 0, i32 0)) + call i32 @puts(i8* getelementptr([46 x i8], [46 x i8]* @lcaic_failure, i32 0, i32 0)) call void @exit(i32 1) unreachable } diff --git a/llvm/test/ExecutionEngine/MCJIT/stubs.ll b/llvm/test/ExecutionEngine/MCJIT/stubs.ll index a23e6bc1dea..5b7acc71d04 100644 --- a/llvm/test/ExecutionEngine/MCJIT/stubs.ll +++ b/llvm/test/ExecutionEngine/MCJIT/stubs.ll @@ -19,7 +19,7 @@ entry: pass_block: ret void fail_block: - call i32 @puts(i8* getelementptr([46 x i8]* @lcaic_failure, i32 0, i32 0)) + call i32 @puts(i8* getelementptr([46 x i8], [46 x i8]* @lcaic_failure, i32 0, i32 0)) call void @exit(i32 1) unreachable } diff --git a/llvm/test/ExecutionEngine/MCJIT/test-common-symbols.ll b/llvm/test/ExecutionEngine/MCJIT/test-common-symbols.ll index 62ada27bd52..b63c2fea675 100644 --- a/llvm/test/ExecutionEngine/MCJIT/test-common-symbols.ll +++ b/llvm/test/ExecutionEngine/MCJIT/test-common-symbols.ll @@ -81,7 +81,7 @@ for.inc: ; preds = %for.body br label %for.cond for.end: ; preds = %for.cond - %10 = load i32, i32* getelementptr inbounds ([10 x i32]* @zero_arr, i32 0, i64 9), align 4 + %10 = load i32, i32* getelementptr inbounds ([10 x i32], [10 x i32]* @zero_arr, i32 0, i64 9), align 4 %cmp12 = icmp eq i32 %10, 110 %cond = select i1 %cmp12, i32 0, i32 -1 ret i32 %cond diff --git a/llvm/test/ExecutionEngine/MCJIT/test-ptr-reloc-sm-pic.ll b/llvm/test/ExecutionEngine/MCJIT/test-ptr-reloc-sm-pic.ll index d198acf78d4..d50ba9dd5a0 100644 --- a/llvm/test/ExecutionEngine/MCJIT/test-ptr-reloc-sm-pic.ll +++ b/llvm/test/ExecutionEngine/MCJIT/test-ptr-reloc-sm-pic.ll @@ -2,9 +2,9 @@ ; XFAIL: mips, aarch64, arm, i686, i386 @.str = private unnamed_addr constant [6 x i8] c"data1\00", align 1 -@ptr = global i8* getelementptr inbounds ([6 x i8]* @.str, i32 0, i32 0), align 4 +@ptr = global i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i32 0, i32 0), align 4 @.str1 = private unnamed_addr constant [6 x i8] c"data2\00", align 1 -@ptr2 = global i8* getelementptr inbounds ([6 x i8]* @.str1, i32 0, i32 0), align 4 +@ptr2 = global i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str1, i32 0, i32 0), align 4 define i32 @main(i32 %argc, i8** nocapture %argv) nounwind readonly { entry: diff --git a/llvm/test/ExecutionEngine/MCJIT/test-ptr-reloc.ll b/llvm/test/ExecutionEngine/MCJIT/test-ptr-reloc.ll index dc9aaf2c75f..9cb427414ec 100644 --- a/llvm/test/ExecutionEngine/MCJIT/test-ptr-reloc.ll +++ b/llvm/test/ExecutionEngine/MCJIT/test-ptr-reloc.ll @@ -1,9 +1,9 @@ ; RUN: %lli -O0 %s @.str = private unnamed_addr constant [6 x i8] c"data1\00", align 1 -@ptr = global i8* getelementptr inbounds ([6 x i8]* @.str, i32 0, i32 0), align 4 +@ptr = global i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i32 0, i32 0), align 4 @.str1 = private unnamed_addr constant [6 x i8] c"data2\00", align 1 -@ptr2 = global i8* getelementptr inbounds ([6 x i8]* @.str1, i32 0, i32 0), align 4 +@ptr2 = global i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str1, i32 0, i32 0), align 4 define i32 @main(i32 %argc, i8** nocapture %argv) nounwind readonly { entry: diff --git a/llvm/test/ExecutionEngine/OrcJIT/2002-12-16-ArgTest.ll b/llvm/test/ExecutionEngine/OrcJIT/2002-12-16-ArgTest.ll index 12236cf70c9..027085519b4 100644 --- a/llvm/test/ExecutionEngine/OrcJIT/2002-12-16-ArgTest.ll +++ b/llvm/test/ExecutionEngine/OrcJIT/2002-12-16-ArgTest.ll @@ -13,7 +13,7 @@ declare i32 @printf(i8*, ...) define i32 @main(i32 %argc, i8** %argv) { bb0: - call i32 (i8*, ...)* @printf( i8* getelementptr ([10 x i8]* @.LC0, i64 0, i64 0), i32 %argc ) ; <i32>:0 [#uses=0] + call i32 (i8*, ...)* @printf( i8* getelementptr ([10 x i8], [10 x i8]* @.LC0, i64 0, i64 0), i32 %argc ) ; <i32>:0 [#uses=0] %cast224 = bitcast i8** %argv to i8* ; <i8*> [#uses=1] %local = alloca i8* ; <i8**> [#uses=3] store i8* %cast224, i8** %local diff --git a/llvm/test/ExecutionEngine/OrcJIT/2013-04-04-RelocAddend.ll b/llvm/test/ExecutionEngine/OrcJIT/2013-04-04-RelocAddend.ll index 0df5f1ad7ba..140fbed4c20 100644 --- a/llvm/test/ExecutionEngine/OrcJIT/2013-04-04-RelocAddend.ll +++ b/llvm/test/ExecutionEngine/OrcJIT/2013-04-04-RelocAddend.ll @@ -14,7 +14,7 @@ ; @test = global [2 x i32] [i32 -1, i32 0], align 4 -@p = global i32* getelementptr inbounds ([2 x i32]* @test, i64 0, i64 1), align 8 +@p = global i32* getelementptr inbounds ([2 x i32], [2 x i32]* @test, i64 0, i64 1), align 8 define i32 @main() { entry: diff --git a/llvm/test/ExecutionEngine/OrcJIT/hello-sm-pic.ll b/llvm/test/ExecutionEngine/OrcJIT/hello-sm-pic.ll index ae98ae4298a..52c91d5dcc4 100644 --- a/llvm/test/ExecutionEngine/OrcJIT/hello-sm-pic.ll +++ b/llvm/test/ExecutionEngine/OrcJIT/hello-sm-pic.ll @@ -6,7 +6,7 @@ declare i32 @puts(i8*) define i32 @main() { - %reg210 = call i32 @puts( i8* getelementptr ([12 x i8]* @.LC0, i64 0, i64 0) ) ; <i32> [#uses=0] + %reg210 = call i32 @puts( i8* getelementptr ([12 x i8], [12 x i8]* @.LC0, i64 0, i64 0) ) ; <i32> [#uses=0] ret i32 0 } diff --git a/llvm/test/ExecutionEngine/OrcJIT/hello.ll b/llvm/test/ExecutionEngine/OrcJIT/hello.ll index f96e3ee7276..c315a157a0c 100644 --- a/llvm/test/ExecutionEngine/OrcJIT/hello.ll +++ b/llvm/test/ExecutionEngine/OrcJIT/hello.ll @@ -5,7 +5,7 @@ declare i32 @puts(i8*) define i32 @main() { - %reg210 = call i32 @puts( i8* getelementptr ([12 x i8]* @.LC0, i64 0, i64 0) ) ; <i32> [#uses=0] + %reg210 = call i32 @puts( i8* getelementptr ([12 x i8], [12 x i8]* @.LC0, i64 0, i64 0) ) ; <i32> [#uses=0] ret i32 0 } diff --git a/llvm/test/ExecutionEngine/OrcJIT/pr13727.ll b/llvm/test/ExecutionEngine/OrcJIT/pr13727.ll index 35d84e19fd1..163fa798ae3 100644 --- a/llvm/test/ExecutionEngine/OrcJIT/pr13727.ll +++ b/llvm/test/ExecutionEngine/OrcJIT/pr13727.ll @@ -81,7 +81,7 @@ for.inc: ; preds = %for.body br label %for.cond for.end: ; preds = %for.cond - %10 = load i32, i32* getelementptr inbounds ([10 x i32]* @zero_arr, i32 0, i64 9), align 4 + %10 = load i32, i32* getelementptr inbounds ([10 x i32], [10 x i32]* @zero_arr, i32 0, i64 9), align 4 %cmp12 = icmp eq i32 %10, 110 %cond = select i1 %cmp12, i32 0, i32 -1 ret i32 %cond diff --git a/llvm/test/ExecutionEngine/OrcJIT/remote/stubs-remote.ll b/llvm/test/ExecutionEngine/OrcJIT/remote/stubs-remote.ll index 03e6bb398b6..a834ac5c985 100644 --- a/llvm/test/ExecutionEngine/OrcJIT/remote/stubs-remote.ll +++ b/llvm/test/ExecutionEngine/OrcJIT/remote/stubs-remote.ll @@ -21,7 +21,7 @@ entry: pass_block: ret void fail_block: - call i32 @puts(i8* getelementptr([46 x i8]* @lcaic_failure, i32 0, i32 0)) + call i32 @puts(i8* getelementptr([46 x i8], [46 x i8]* @lcaic_failure, i32 0, i32 0)) call void @exit(i32 1) unreachable } diff --git a/llvm/test/ExecutionEngine/OrcJIT/remote/stubs-sm-pic.ll b/llvm/test/ExecutionEngine/OrcJIT/remote/stubs-sm-pic.ll index 8f9b05b9c3f..62e89cad332 100644 --- a/llvm/test/ExecutionEngine/OrcJIT/remote/stubs-sm-pic.ll +++ b/llvm/test/ExecutionEngine/OrcJIT/remote/stubs-sm-pic.ll @@ -21,7 +21,7 @@ entry: pass_block: ret void fail_block: - call i32 @puts(i8* getelementptr([46 x i8]* @lcaic_failure, i32 0, i32 0)) + call i32 @puts(i8* getelementptr([46 x i8], [46 x i8]* @lcaic_failure, i32 0, i32 0)) call void @exit(i32 1) unreachable } diff --git a/llvm/test/ExecutionEngine/OrcJIT/remote/test-common-symbols-remote.ll b/llvm/test/ExecutionEngine/OrcJIT/remote/test-common-symbols-remote.ll index 5cc304aef24..fb7750adf49 100644 --- a/llvm/test/ExecutionEngine/OrcJIT/remote/test-common-symbols-remote.ll +++ b/llvm/test/ExecutionEngine/OrcJIT/remote/test-common-symbols-remote.ll @@ -81,7 +81,7 @@ for.inc: ; preds = %for.body br label %for.cond for.end: ; preds = %for.cond - %10 = load i32, i32* getelementptr inbounds ([10 x i32]* @zero_arr, i32 0, i64 9), align 4 + %10 = load i32, i32* getelementptr inbounds ([10 x i32], [10 x i32]* @zero_arr, i32 0, i64 9), align 4 %cmp12 = icmp eq i32 %10, 110 %cond = select i1 %cmp12, i32 0, i32 -1 ret i32 %cond diff --git a/llvm/test/ExecutionEngine/OrcJIT/remote/test-ptr-reloc-remote.ll b/llvm/test/ExecutionEngine/OrcJIT/remote/test-ptr-reloc-remote.ll index 19303ccfb95..ad1af93ffde 100644 --- a/llvm/test/ExecutionEngine/OrcJIT/remote/test-ptr-reloc-remote.ll +++ b/llvm/test/ExecutionEngine/OrcJIT/remote/test-ptr-reloc-remote.ll @@ -1,9 +1,9 @@ ; RUN: %lli -remote-mcjit -O0 -mcjit-remote-process=lli-child-target%exeext %s @.str = private unnamed_addr constant [6 x i8] c"data1\00", align 1 -@ptr = global i8* getelementptr inbounds ([6 x i8]* @.str, i32 0, i32 0), align 4 +@ptr = global i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i32 0, i32 0), align 4 @.str1 = private unnamed_addr constant [6 x i8] c"data2\00", align 1 -@ptr2 = global i8* getelementptr inbounds ([6 x i8]* @.str1, i32 0, i32 0), align 4 +@ptr2 = global i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str1, i32 0, i32 0), align 4 define i32 @main(i32 %argc, i8** nocapture %argv) nounwind readonly { entry: diff --git a/llvm/test/ExecutionEngine/OrcJIT/remote/test-ptr-reloc-sm-pic.ll b/llvm/test/ExecutionEngine/OrcJIT/remote/test-ptr-reloc-sm-pic.ll index ac52e732cb3..d9a4faa8e6b 100644 --- a/llvm/test/ExecutionEngine/OrcJIT/remote/test-ptr-reloc-sm-pic.ll +++ b/llvm/test/ExecutionEngine/OrcJIT/remote/test-ptr-reloc-sm-pic.ll @@ -2,9 +2,9 @@ ; XFAIL: mips, aarch64, arm, i686, i386 @.str = private unnamed_addr constant [6 x i8] c"data1\00", align 1 -@ptr = global i8* getelementptr inbounds ([6 x i8]* @.str, i32 0, i32 0), align 4 +@ptr = global i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i32 0, i32 0), align 4 @.str1 = private unnamed_addr constant [6 x i8] c"data2\00", align 1 -@ptr2 = global i8* getelementptr inbounds ([6 x i8]* @.str1, i32 0, i32 0), align 4 +@ptr2 = global i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str1, i32 0, i32 0), align 4 define i32 @main(i32 %argc, i8** nocapture %argv) nounwind readonly { entry: diff --git a/llvm/test/ExecutionEngine/OrcJIT/stubs-sm-pic.ll b/llvm/test/ExecutionEngine/OrcJIT/stubs-sm-pic.ll index 81098cee4f6..73c265f35de 100644 --- a/llvm/test/ExecutionEngine/OrcJIT/stubs-sm-pic.ll +++ b/llvm/test/ExecutionEngine/OrcJIT/stubs-sm-pic.ll @@ -20,7 +20,7 @@ entry: pass_block: ret void fail_block: - call i32 @puts(i8* getelementptr([46 x i8]* @lcaic_failure, i32 0, i32 0)) + call i32 @puts(i8* getelementptr([46 x i8], [46 x i8]* @lcaic_failure, i32 0, i32 0)) call void @exit(i32 1) unreachable } diff --git a/llvm/test/ExecutionEngine/OrcJIT/stubs.ll b/llvm/test/ExecutionEngine/OrcJIT/stubs.ll index 5007c499555..66d0762b8fd 100644 --- a/llvm/test/ExecutionEngine/OrcJIT/stubs.ll +++ b/llvm/test/ExecutionEngine/OrcJIT/stubs.ll @@ -19,7 +19,7 @@ entry: pass_block: ret void fail_block: - call i32 @puts(i8* getelementptr([46 x i8]* @lcaic_failure, i32 0, i32 0)) + call i32 @puts(i8* getelementptr([46 x i8], [46 x i8]* @lcaic_failure, i32 0, i32 0)) call void @exit(i32 1) unreachable } diff --git a/llvm/test/ExecutionEngine/OrcJIT/test-common-symbols.ll b/llvm/test/ExecutionEngine/OrcJIT/test-common-symbols.ll index a6e7dde6663..5ebdd8d4fbc 100644 --- a/llvm/test/ExecutionEngine/OrcJIT/test-common-symbols.ll +++ b/llvm/test/ExecutionEngine/OrcJIT/test-common-symbols.ll @@ -81,7 +81,7 @@ for.inc: ; preds = %for.body br label %for.cond for.end: ; preds = %for.cond - %10 = load i32, i32* getelementptr inbounds ([10 x i32]* @zero_arr, i32 0, i64 9), align 4 + %10 = load i32, i32* getelementptr inbounds ([10 x i32], [10 x i32]* @zero_arr, i32 0, i64 9), align 4 %cmp12 = icmp eq i32 %10, 110 %cond = select i1 %cmp12, i32 0, i32 -1 ret i32 %cond diff --git a/llvm/test/ExecutionEngine/OrcJIT/test-ptr-reloc-sm-pic.ll b/llvm/test/ExecutionEngine/OrcJIT/test-ptr-reloc-sm-pic.ll index a7871161c5b..057fc0d620b 100644 --- a/llvm/test/ExecutionEngine/OrcJIT/test-ptr-reloc-sm-pic.ll +++ b/llvm/test/ExecutionEngine/OrcJIT/test-ptr-reloc-sm-pic.ll @@ -2,9 +2,9 @@ ; XFAIL: mips, aarch64, arm, i686, i386 @.str = private unnamed_addr constant [6 x i8] c"data1\00", align 1 -@ptr = global i8* getelementptr inbounds ([6 x i8]* @.str, i32 0, i32 0), align 4 +@ptr = global i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i32 0, i32 0), align 4 @.str1 = private unnamed_addr constant [6 x i8] c"data2\00", align 1 -@ptr2 = global i8* getelementptr inbounds ([6 x i8]* @.str1, i32 0, i32 0), align 4 +@ptr2 = global i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str1, i32 0, i32 0), align 4 define i32 @main(i32 %argc, i8** nocapture %argv) nounwind readonly { entry: diff --git a/llvm/test/ExecutionEngine/OrcJIT/test-ptr-reloc.ll b/llvm/test/ExecutionEngine/OrcJIT/test-ptr-reloc.ll index 1be6fed62a8..014fa9dcafb 100644 --- a/llvm/test/ExecutionEngine/OrcJIT/test-ptr-reloc.ll +++ b/llvm/test/ExecutionEngine/OrcJIT/test-ptr-reloc.ll @@ -1,9 +1,9 @@ ; RUN: %lli -use-orcmcjit -O0 %s @.str = private unnamed_addr constant [6 x i8] c"data1\00", align 1 -@ptr = global i8* getelementptr inbounds ([6 x i8]* @.str, i32 0, i32 0), align 4 +@ptr = global i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i32 0, i32 0), align 4 @.str1 = private unnamed_addr constant [6 x i8] c"data2\00", align 1 -@ptr2 = global i8* getelementptr inbounds ([6 x i8]* @.str1, i32 0, i32 0), align 4 +@ptr2 = global i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str1, i32 0, i32 0), align 4 define i32 @main(i32 %argc, i8** nocapture %argv) nounwind readonly { entry: diff --git a/llvm/test/ExecutionEngine/frem.ll b/llvm/test/ExecutionEngine/frem.ll index cde4e1b43d7..22766776aa4 100644 --- a/llvm/test/ExecutionEngine/frem.ll +++ b/llvm/test/ExecutionEngine/frem.ll @@ -14,7 +14,7 @@ define i32 @main() { %flt = load float, float* @flt %float2 = frem float %flt, 5.0 %double1 = fpext float %float2 to double - call i32 (i8*, ...)* @printf(i8* getelementptr ([18 x i8]* @str, i32 0, i64 0), double %double1) + call i32 (i8*, ...)* @printf(i8* getelementptr ([18 x i8], [18 x i8]* @str, i32 0, i64 0), double %double1) call i32 @fflush(i8* null) ret i32 0 } |

