diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2017-04-10 20:18:21 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2017-04-10 20:18:21 +0000 |
commit | bdbe8280f25339054c5314e87e4ddfa844c71014 (patch) | |
tree | 46125a2d1740e7c041ad98f47ba7a6954f35b73d /test/CodeGen/Thumb2 | |
parent | a8b5a980c8179a1495423f56d8add29ee0112d21 (diff) |
Add address space mangling to lifetime intrinsics
In preparation for allowing allocas to have non-0 addrspace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299876 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Thumb2')
-rw-r--r-- | test/CodeGen/Thumb2/ifcvt-rescan-bug-2016-08-22.ll | 4 | ||||
-rw-r--r-- | test/CodeGen/Thumb2/stack_guard_remat.ll | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/test/CodeGen/Thumb2/ifcvt-rescan-bug-2016-08-22.ll b/test/CodeGen/Thumb2/ifcvt-rescan-bug-2016-08-22.ll index ae3084dcc62..65ee4283b3f 100644 --- a/test/CodeGen/Thumb2/ifcvt-rescan-bug-2016-08-22.ll +++ b/test/CodeGen/Thumb2/ifcvt-rescan-bug-2016-08-22.ll @@ -3,7 +3,7 @@ target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64" target triple = "thumbv7-unknown-linux-gnueabihf" ; Function Attrs: argmemonly nounwind -declare void @llvm.lifetime.start(i64, i8* nocapture) #0 +declare void @llvm.lifetime.start.p0i8(i64, i8* nocapture) #0 ; Function Attrs: nounwind declare void @_ZNSaIcEC2Ev() unnamed_addr #0 align 2 @@ -25,7 +25,7 @@ define hidden void @_ZN4llvm14DOTGraphTraitsIPNS_13ScheduleDAGMIEE17getEdgeAttri br label %3 ; <label>:2: ; preds = %0 - call void @llvm.lifetime.start(i64 1, i8* undef) #0 + call void @llvm.lifetime.start.p0i8(i64 1, i8* undef) #0 call void @_ZNSaIcEC2Ev() #0 br label %3 diff --git a/test/CodeGen/Thumb2/stack_guard_remat.ll b/test/CodeGen/Thumb2/stack_guard_remat.ll index cf34e8c0c2f..839a506b35e 100644 --- a/test/CodeGen/Thumb2/stack_guard_remat.ll +++ b/test/CodeGen/Thumb2/stack_guard_remat.ll @@ -24,20 +24,20 @@ define i32 @test_stack_guard_remat() #0 { %a1 = alloca [256 x i32], align 4 %1 = bitcast [256 x i32]* %a1 to i8* - call void @llvm.lifetime.start(i64 1024, i8* %1) + call void @llvm.lifetime.start.p0i8(i64 1024, i8* %1) %2 = getelementptr inbounds [256 x i32], [256 x i32]* %a1, i32 0, i32 0 call void @foo3(i32* %2) #3 call void asm sideeffect "foo2", "~{r0},~{r1},~{r2},~{r3},~{r4},~{r5},~{r6},~{r7},~{r8},~{r9},~{r10},~{r11},~{r12},~{sp},~{lr}"() - call void @llvm.lifetime.end(i64 1024, i8* %1) + call void @llvm.lifetime.end.p0i8(i64 1024, i8* %1) ret i32 0 } ; Function Attrs: nounwind -declare void @llvm.lifetime.start(i64, i8* nocapture) +declare void @llvm.lifetime.start.p0i8(i64, i8* nocapture) declare void @foo3(i32*) ; Function Attrs: nounwind -declare void @llvm.lifetime.end(i64, i8* nocapture) +declare void @llvm.lifetime.end.p0i8(i64, i8* nocapture) attributes #0 = { nounwind ssp "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" } |