summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Hexagon/memops-stack.ll
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2017-04-10 20:18:21 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2017-04-10 20:18:21 +0000
commitf10061ec708ef787398649f3eb073c6ca3acd73d (patch)
tree5949d7ce9679b7e663a7f4fad605cddae4c5199c /llvm/test/CodeGen/Hexagon/memops-stack.ll
parent324c99dee5096be095adc3972c4a512ca0f74090 (diff)
downloadbcm5719-llvm-f10061ec708ef787398649f3eb073c6ca3acd73d.tar.gz
bcm5719-llvm-f10061ec708ef787398649f3eb073c6ca3acd73d.zip
Add address space mangling to lifetime intrinsics
In preparation for allowing allocas to have non-0 addrspace. llvm-svn: 299876
Diffstat (limited to 'llvm/test/CodeGen/Hexagon/memops-stack.ll')
-rw-r--r--llvm/test/CodeGen/Hexagon/memops-stack.ll36
1 files changed, 18 insertions, 18 deletions
diff --git a/llvm/test/CodeGen/Hexagon/memops-stack.ll b/llvm/test/CodeGen/Hexagon/memops-stack.ll
index a8dc664591e..1aa2e30ea25 100644
--- a/llvm/test/CodeGen/Hexagon/memops-stack.ll
+++ b/llvm/test/CodeGen/Hexagon/memops-stack.ll
@@ -9,13 +9,13 @@ define void @test0() #0 {
entry:
%x = alloca i32, align 4
%0 = bitcast i32* %x to i8*
- call void @llvm.lifetime.start(i64 4, i8* %0) #3
+ call void @llvm.lifetime.start.p0i8(i64 4, i8* %0) #3
call void @foo(i32* nonnull %x) #3
%1 = load i32, i32* %x, align 4, !tbaa !1
%inc = add nsw i32 %1, 1
store i32 %inc, i32* %x, align 4, !tbaa !1
call void @foo(i32* nonnull %x) #3
- call void @llvm.lifetime.end(i64 4, i8* %0) #3
+ call void @llvm.lifetime.end.p0i8(i64 4, i8* %0) #3
ret void
}
@@ -25,13 +25,13 @@ define void @test1() #0 {
entry:
%x = alloca i32, align 4
%0 = bitcast i32* %x to i8*
- call void @llvm.lifetime.start(i64 4, i8* %0) #3
+ call void @llvm.lifetime.start.p0i8(i64 4, i8* %0) #3
call void @foo(i32* nonnull %x) #3
%1 = load i32, i32* %x, align 4, !tbaa !1
%inc = sub nsw i32 %1, 1
store i32 %inc, i32* %x, align 4, !tbaa !1
call void @foo(i32* nonnull %x) #3
- call void @llvm.lifetime.end(i64 4, i8* %0) #3
+ call void @llvm.lifetime.end.p0i8(i64 4, i8* %0) #3
ret void
}
@@ -41,13 +41,13 @@ define void @test2() #0 {
entry:
%x = alloca i32, align 4
%0 = bitcast i32* %x to i8*
- call void @llvm.lifetime.start(i64 4, i8* %0) #3
+ call void @llvm.lifetime.start.p0i8(i64 4, i8* %0) #3
call void @foo(i32* nonnull %x) #3
%1 = load i32, i32* %x, align 4, !tbaa !1
%inc = or i32 %1, 1
store i32 %inc, i32* %x, align 4, !tbaa !1
call void @foo(i32* nonnull %x) #3
- call void @llvm.lifetime.end(i64 4, i8* %0) #3
+ call void @llvm.lifetime.end.p0i8(i64 4, i8* %0) #3
ret void
}
@@ -57,13 +57,13 @@ define void @test3() #0 {
entry:
%x = alloca i32, align 4
%0 = bitcast i32* %x to i8*
- call void @llvm.lifetime.start(i64 4, i8* %0) #3
+ call void @llvm.lifetime.start.p0i8(i64 4, i8* %0) #3
call void @foo(i32* nonnull %x) #3
%1 = load i32, i32* %x, align 4, !tbaa !1
%inc = and i32 %1, -2
store i32 %inc, i32* %x, align 4, !tbaa !1
call void @foo(i32* nonnull %x) #3
- call void @llvm.lifetime.end(i64 4, i8* %0) #3
+ call void @llvm.lifetime.end.p0i8(i64 4, i8* %0) #3
ret void
}
@@ -73,13 +73,13 @@ define void @test4(i32 %a) #0 {
entry:
%x = alloca i32, align 4
%0 = bitcast i32* %x to i8*
- call void @llvm.lifetime.start(i64 4, i8* %0) #3
+ call void @llvm.lifetime.start.p0i8(i64 4, i8* %0) #3
call void @foo(i32* nonnull %x) #3
%1 = load i32, i32* %x, align 4, !tbaa !1
%inc = add nsw i32 %1, %a
store i32 %inc, i32* %x, align 4, !tbaa !1
call void @foo(i32* nonnull %x) #3
- call void @llvm.lifetime.end(i64 4, i8* %0) #3
+ call void @llvm.lifetime.end.p0i8(i64 4, i8* %0) #3
ret void
}
@@ -89,13 +89,13 @@ define void @test5(i32 %a) #0 {
entry:
%x = alloca i32, align 4
%0 = bitcast i32* %x to i8*
- call void @llvm.lifetime.start(i64 4, i8* %0) #3
+ call void @llvm.lifetime.start.p0i8(i64 4, i8* %0) #3
call void @foo(i32* nonnull %x) #3
%1 = load i32, i32* %x, align 4, !tbaa !1
%inc = sub nsw i32 %1, %a
store i32 %inc, i32* %x, align 4, !tbaa !1
call void @foo(i32* nonnull %x) #3
- call void @llvm.lifetime.end(i64 4, i8* %0) #3
+ call void @llvm.lifetime.end.p0i8(i64 4, i8* %0) #3
ret void
}
@@ -105,13 +105,13 @@ define void @test6(i32 %a) #0 {
entry:
%x = alloca i32, align 4
%0 = bitcast i32* %x to i8*
- call void @llvm.lifetime.start(i64 4, i8* %0) #3
+ call void @llvm.lifetime.start.p0i8(i64 4, i8* %0) #3
call void @foo(i32* nonnull %x) #3
%1 = load i32, i32* %x, align 4, !tbaa !1
%inc = or i32 %1, %a
store i32 %inc, i32* %x, align 4, !tbaa !1
call void @foo(i32* nonnull %x) #3
- call void @llvm.lifetime.end(i64 4, i8* %0) #3
+ call void @llvm.lifetime.end.p0i8(i64 4, i8* %0) #3
ret void
}
@@ -121,20 +121,20 @@ define void @test7(i32 %a) #0 {
entry:
%x = alloca i32, align 4
%0 = bitcast i32* %x to i8*
- call void @llvm.lifetime.start(i64 4, i8* %0) #3
+ call void @llvm.lifetime.start.p0i8(i64 4, i8* %0) #3
call void @foo(i32* nonnull %x) #3
%1 = load i32, i32* %x, align 4, !tbaa !1
%inc = and i32 %1, %a
store i32 %inc, i32* %x, align 4, !tbaa !1
call void @foo(i32* nonnull %x) #3
- call void @llvm.lifetime.end(i64 4, i8* %0) #3
+ call void @llvm.lifetime.end.p0i8(i64 4, i8* %0) #3
ret void
}
declare void @foo(i32*) #2
-declare void @llvm.lifetime.start(i64, i8* nocapture) #1
-declare void @llvm.lifetime.end(i64, i8* nocapture) #1
+declare void @llvm.lifetime.start.p0i8(i64, i8* nocapture) #1
+declare void @llvm.lifetime.end.p0i8(i64, i8* nocapture) #1
attributes #0 = { nounwind "disable-tail-calls"="false" "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" "target-cpu"="hexagonv60" "target-features"="+hvx,-hvx-double" "unsafe-fp-math"="false" "use-soft-float"="false" }
attributes #1 = { argmemonly nounwind }
OpenPOWER on IntegriCloud