mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-31 07:52:55 +01:00
74351693ea
This makes the LLVM assembly look better. E.g.: define void @foo() #0 { ret void } attributes #0 = { nounwind noinline ssp } llvm-svn: 175605
14 lines
248 B
LLVM
14 lines
248 B
LLVM
; RUN: opt < %s -basicaa -functionattrs -S | FileCheck %s
|
|
|
|
; CHECK: define i32 @f() #0
|
|
define i32 @f() {
|
|
entry:
|
|
%tmp = call i32 @e( )
|
|
ret i32 %tmp
|
|
}
|
|
|
|
; CHECK: declare i32 @e() #0
|
|
declare i32 @e() readonly
|
|
|
|
; CHECK: attributes #0 = { readonly }
|