diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-01-31 23:16:25 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-01-31 23:16:25 +0000 |
commit | 1c7cc8ae90b05234329671db09f52f71b3e7dfa9 (patch) | |
tree | 93a04994c9e507f8c022a81d0771b0c2862a8538 /llvm/test | |
parent | 1a0cf805336fe4e0736d787bf522ed172e2d71e3 (diff) | |
download | bcm5719-llvm-1c7cc8ae90b05234329671db09f52f71b3e7dfa9.tar.gz bcm5719-llvm-1c7cc8ae90b05234329671db09f52f71b3e7dfa9.zip |
Remove the AttrBuilder form of the Attribute::get creators.
The AttrBuilder is for building a collection of attributes. The Attribute object
holds only one attribute. So it's not really useful for the Attribute object to
have a creator which takes an AttrBuilder.
This has two fallouts:
1. The AttrBuilder no longer holds its internal attributes in a bit-mask form.
2. The attributes are now ordered alphabetically (hence why the tests have changed).
llvm-svn: 174110
Diffstat (limited to 'llvm/test')
-rw-r--r-- | llvm/test/Transforms/Inline/inline_ssp.ll | 38 | ||||
-rw-r--r-- | llvm/test/Transforms/MemCpyOpt/memcpy.ll | 20 |
2 files changed, 29 insertions, 29 deletions
diff --git a/llvm/test/Transforms/Inline/inline_ssp.ll b/llvm/test/Transforms/Inline/inline_ssp.ll index ff0d5ce8917..e3835e0d945 100644 --- a/llvm/test/Transforms/Inline/inline_ssp.ll +++ b/llvm/test/Transforms/Inline/inline_ssp.ll @@ -11,19 +11,19 @@ ; propagated correctly. The caller should have its SSP attribute set as: ; strictest(caller-ssp-attr, callee-ssp-attr), where strictness is ordered as: ; sspreq > sspstrong > ssp > [no ssp] -define internal void @fun_sspreq() nounwind uwtable sspreq { +define internal void @fun_sspreq() nounwind sspreq uwtable { entry: %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([12 x i8]* @.str3, i32 0, i32 0)) ret void } -define internal void @fun_sspstrong() nounwind uwtable sspstrong { +define internal void @fun_sspstrong() nounwind sspstrong uwtable { entry: %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([15 x i8]* @.str2, i32 0, i32 0)) ret void } -define internal void @fun_ssp() nounwind uwtable ssp { +define internal void @fun_ssp() nounwind ssp uwtable { entry: %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([9 x i8]* @.str1, i32 0, i32 0)) ret void @@ -37,21 +37,21 @@ entry: ; Tests start below -define void @inline_req_req() nounwind uwtable sspreq { +define void @inline_req_req() nounwind sspreq uwtable { entry: ; CHECK: @inline_req_req() nounwind sspreq uwtable call void @fun_sspreq() ret void } -define void @inline_req_strong() nounwind uwtable sspstrong { +define void @inline_req_strong() nounwind sspstrong uwtable { entry: ; CHECK: @inline_req_strong() nounwind sspreq uwtable call void @fun_sspreq() ret void } -define void @inline_req_ssp() nounwind uwtable ssp { +define void @inline_req_ssp() nounwind ssp uwtable { entry: ; CHECK: @inline_req_ssp() nounwind sspreq uwtable call void @fun_sspreq() @@ -65,7 +65,7 @@ entry: ret void } -define void @inline_strong_req() nounwind uwtable sspreq { +define void @inline_strong_req() nounwind sspreq uwtable { entry: ; CHECK: @inline_strong_req() nounwind sspreq uwtable call void @fun_sspstrong() @@ -73,28 +73,28 @@ entry: } -define void @inline_strong_strong() nounwind uwtable sspstrong { +define void @inline_strong_strong() nounwind sspstrong uwtable { entry: -; CHECK: @inline_strong_strong() nounwind uwtable sspstrong +; CHECK: @inline_strong_strong() nounwind sspstrong uwtable call void @fun_sspstrong() ret void } -define void @inline_strong_ssp() nounwind uwtable ssp { +define void @inline_strong_ssp() nounwind ssp uwtable { entry: -; CHECK: @inline_strong_ssp() nounwind uwtable sspstrong +; CHECK: @inline_strong_ssp() nounwind sspstrong uwtable call void @fun_sspstrong() ret void } define void @inline_strong_nossp() nounwind uwtable { entry: -; CHECK: @inline_strong_nossp() nounwind uwtable sspstrong +; CHECK: @inline_strong_nossp() nounwind sspstrong uwtable call void @fun_sspstrong() ret void } -define void @inline_ssp_req() nounwind uwtable sspreq { +define void @inline_ssp_req() nounwind sspreq uwtable { entry: ; CHECK: @inline_ssp_req() nounwind sspreq uwtable call void @fun_ssp() @@ -102,14 +102,14 @@ entry: } -define void @inline_ssp_strong() nounwind uwtable sspstrong { +define void @inline_ssp_strong() nounwind sspstrong uwtable { entry: -; CHECK: @inline_ssp_strong() nounwind uwtable sspstrong +; CHECK: @inline_ssp_strong() nounwind sspstrong uwtable call void @fun_ssp() ret void } -define void @inline_ssp_ssp() nounwind uwtable ssp { +define void @inline_ssp_ssp() nounwind ssp uwtable { entry: ; CHECK: @inline_ssp_ssp() nounwind ssp uwtable call void @fun_ssp() @@ -131,14 +131,14 @@ entry: } -define void @inline_nossp_strong() nounwind uwtable sspstrong { +define void @inline_nossp_strong() nounwind sspstrong uwtable { entry: -; CHECK: @inline_nossp_strong() nounwind uwtable sspstrong +; CHECK: @inline_nossp_strong() nounwind sspstrong uwtable call void @fun_nossp() ret void } -define void @inline_nossp_ssp() nounwind uwtable ssp { +define void @inline_nossp_ssp() nounwind ssp uwtable { entry: ; CHECK: @inline_nossp_ssp() nounwind ssp uwtable call void @fun_nossp() diff --git a/llvm/test/Transforms/MemCpyOpt/memcpy.ll b/llvm/test/Transforms/MemCpyOpt/memcpy.ll index 3fa16288c21..c19a93a776c 100644 --- a/llvm/test/Transforms/MemCpyOpt/memcpy.ll +++ b/llvm/test/Transforms/MemCpyOpt/memcpy.ll @@ -70,20 +70,20 @@ define void @test4(i8 *%P) { %A = alloca %1 %a = bitcast %1* %A to i8* call void @llvm.memcpy.p0i8.p0i8.i64(i8* %a, i8* %P, i64 8, i32 4, i1 false) - call void @test4a(i8* byval align 1 %a) + call void @test4a(i8* align 1 byval %a) ret void ; CHECK: @test4 ; CHECK-NEXT: call void @test4a( } -declare void @test4a(i8* byval align 1) +declare void @test4a(i8* align 1 byval) declare void @llvm.memcpy.p0i8.p0i8.i64(i8* nocapture, i8* nocapture, i64, i32, i1) nounwind %struct.S = type { i128, [4 x i8]} @sS = external global %struct.S, align 16 -declare void @test5a(%struct.S* byval align 16) nounwind ssp +declare void @test5a(%struct.S* align 16 byval) nounwind ssp ; rdar://8713376 - This memcpy can't be eliminated. @@ -94,11 +94,11 @@ entry: call void @llvm.memcpy.p0i8.p0i8.i64(i8* %tmp, i8* bitcast (%struct.S* @sS to i8*), i64 32, i32 16, i1 false) %a = getelementptr %struct.S* %y, i64 0, i32 1, i64 0 store i8 4, i8* %a - call void @test5a(%struct.S* byval align 16 %y) + call void @test5a(%struct.S* align 16 byval %y) ret i32 0 ; CHECK: @test5( ; CHECK: store i8 4 - ; CHECK: call void @test5a(%struct.S* byval align 16 %y) + ; CHECK: call void @test5a(%struct.S* align 16 byval %y) } ;; Noop memcpy should be zapped. @@ -114,19 +114,19 @@ define void @test6(i8 *%P) { ; isn't itself 8 byte aligned. %struct.p = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 } -define i32 @test7(%struct.p* nocapture byval align 8 %q) nounwind ssp { +define i32 @test7(%struct.p* nocapture align 8 byval %q) nounwind ssp { entry: %agg.tmp = alloca %struct.p, align 4 %tmp = bitcast %struct.p* %agg.tmp to i8* %tmp1 = bitcast %struct.p* %q to i8* call void @llvm.memcpy.p0i8.p0i8.i64(i8* %tmp, i8* %tmp1, i64 48, i32 4, i1 false) - %call = call i32 @g(%struct.p* byval align 8 %agg.tmp) nounwind + %call = call i32 @g(%struct.p* align 8 byval %agg.tmp) nounwind ret i32 %call ; CHECK: @test7 -; CHECK: call i32 @g(%struct.p* byval align 8 %q) nounwind +; CHECK: call i32 @g(%struct.p* align 8 byval %q) nounwind } -declare i32 @g(%struct.p* byval align 8) +declare i32 @g(%struct.p* align 8 byval) declare void @llvm.memcpy.p0i8.p0i8.i32(i8* nocapture, i8* nocapture, i32, i32, i1) nounwind @@ -152,7 +152,7 @@ declare noalias i8* @malloc(i32) ; rdar://11341081 %struct.big = type { [50 x i32] } -define void @test9() nounwind uwtable ssp { +define void @test9() nounwind ssp uwtable { entry: ; CHECK: test9 ; CHECK: f1 |