Use references to attribute groups on the call/invoke instructions.

Listing all of the attributes for the callee of a call/invoke instruction is way
too much and makes the IR unreadable. Use references to attributes instead.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175877 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bill Wendling
2013-02-22 09:09:42 +00:00
parent 00ddc5a727
commit 351b7a10e2
40 changed files with 248 additions and 158 deletions

View File

@@ -4,11 +4,11 @@
; CHECK: @test
; CHECK: entry
; CHECK: %tmp0 = call i32 @TestConst(i32 5) readnone
; CHECK-NEXT: %tmp1 = call i32 @TestPure(i32 6) readonly
; CHECK: %tmp0 = call i32 @TestConst(i32 5) [[READNONE:#[0-9]+]]
; CHECK-NEXT: %tmp1 = call i32 @TestPure(i32 6) [[READONLY:#[0-9]+]]
; CHECK-NEXT: %tmp2 = call i32 @TestNone(i32 7)
; CHECK-NEXT: store i32 1, i32* @g
; CHECK-NEXT: %tmp5 = call i32 @TestPure(i32 6) readonly
; CHECK-NEXT: %tmp5 = call i32 @TestPure(i32 6) [[READONLY]]
; CHECK-NEXT: %tmp7 = call i32 @TestNone(i32 7)
; CHECK-NEXT: %tmp8 = call i32 @TestNone(i32 7)
; CHECK-NEXT: %sum0 = add i32 %tmp0, %tmp1
@@ -50,5 +50,5 @@ declare i32 @TestPure(i32) readonly
declare i32 @TestNone(i32)
; CHECK: attributes #0 = { readnone }
; CHECK: attributes #1 = { readonly }
; CHECK: attributes [[READNONE]] = { readnone }
; CHECK: attributes [[READONLY]] = { readonly }