diff options
| author | David Blaikie <dblaikie@gmail.com> | 2015-02-27 21:17:42 +0000 |
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2015-02-27 21:17:42 +0000 |
| commit | a79ac14fa68297f9888bc70a10df5ed9b8864e38 (patch) | |
| tree | 8d8217a8928e3ee599bdde405e2e178b3a55b645 /llvm/test/Transforms/ScalarRepl/copy-aggregate.ll | |
| parent | 83687fb9e654c9d0086e7f6b728c26fa0b729e71 (diff) | |
| download | bcm5719-llvm-a79ac14fa68297f9888bc70a10df5ed9b8864e38.tar.gz bcm5719-llvm-a79ac14fa68297f9888bc70a10df5ed9b8864e38.zip | |
[opaque pointer type] Add textual IR support for explicit type parameter to load instruction
Essentially the same as the GEP change in r230786.
A similar migration script can be used to update test cases, though a few more
test case improvements/changes were required this time around: (r229269-r229278)
import fileinput
import sys
import re
pat = re.compile(r"((?:=|:|^)\s*load (?:atomic )?(?:volatile )?(.*?))(| addrspace\(\d+\) *)\*($| *(?:%|@|null|undef|blockaddress|getelementptr|addrspacecast|bitcast|inttoptr|\[\[[a-zA-Z]|\{\{).*$)")
for line in sys.stdin:
sys.stdout.write(re.sub(pat, r"\1, \2\3*\4", line))
Reviewers: rafael, dexonsmith, grosser
Differential Revision: http://reviews.llvm.org/D7649
llvm-svn: 230794
Diffstat (limited to 'llvm/test/Transforms/ScalarRepl/copy-aggregate.ll')
| -rw-r--r-- | llvm/test/Transforms/ScalarRepl/copy-aggregate.ll | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/test/Transforms/ScalarRepl/copy-aggregate.ll b/llvm/test/Transforms/ScalarRepl/copy-aggregate.ll index b464947cc3f..97977dbf11f 100644 --- a/llvm/test/Transforms/ScalarRepl/copy-aggregate.ll +++ b/llvm/test/Transforms/ScalarRepl/copy-aggregate.ll @@ -12,8 +12,8 @@ define i32 @test1(i64 %V) nounwind { %A = getelementptr {{i32,i32}}, {{i32,i32}}* %X, i32 0, i32 0, i32 0 %B = getelementptr {{i32,i32}}, {{i32,i32}}* %X, i32 0, i32 0, i32 1 - %a = load i32* %A - %b = load i32* %B + %a = load i32, i32* %A + %b = load i32, i32* %B %c = add i32 %a, %b ret i32 %c } @@ -28,8 +28,8 @@ define float @test2(i128 %V) nounwind { %A = getelementptr {[4 x float]}, {[4 x float]}* %X, i32 0, i32 0, i32 0 %B = getelementptr {[4 x float]}, {[4 x float]}* %X, i32 0, i32 0, i32 3 - %a = load float* %A - %b = load float* %B + %a = load float, float* %A + %b = load float, float* %B %c = fadd float %a, %b ret float %c } @@ -46,7 +46,7 @@ define i64 @test3(i32 %a, i32 %b) nounwind { store i32 %b, i32* %B %Y = bitcast {{i32,i32}}* %X to i64* - %Z = load i64* %Y + %Z = load i64, i64* %Y ret i64 %Z } @@ -61,7 +61,7 @@ define i128 @test4(float %a, float %b) nounwind { store float %b, float* %B %Y = bitcast {[4 x float]}* %X to i128* - %V = load i128* %Y + %V = load i128, i128* %Y ret i128 %V } |

