mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
e5745c32fd
For consistency with normal instructions and clarity when reading IR, it's best to print the %0, %1, ... names of function arguments in definitions. Also modifies the parser to accept IR in that form for obvious reasons. llvm-svn: 367755
15 lines
364 B
LLVM
15 lines
364 B
LLVM
; RUN: opt < %s -functionattrs -S | FileCheck %s
|
|
; RUN: opt < %s -passes=function-attrs -S | FileCheck %s
|
|
|
|
; CHECK: define void @bar(i8* nocapture readnone %0)
|
|
define void @bar(i8* readonly %0) {
|
|
call void @foo(i8* %0)
|
|
ret void
|
|
}
|
|
|
|
; CHECK: define void @foo(i8* nocapture readnone %0)
|
|
define void @foo(i8* readonly %0) {
|
|
call void @bar(i8* %0)
|
|
ret void
|
|
}
|