mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
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:
@@ -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 }
|
||||
|
Reference in New Issue
Block a user