You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
438 B
13 lines
438 B
; RUN: opt < %s -S -forceattrs | FileCheck %s --check-prefix=CHECK-CONTROL
|
|
; RUN: opt < %s -S -forceattrs -force-attribute foo:noinline | FileCheck %s --check-prefix=CHECK-FOO
|
|
; RUN: opt < %s -S -passes=forceattrs -force-attribute foo:noinline | FileCheck %s --check-prefix=CHECK-FOO
|
|
|
|
; CHECK-CONTROL: define void @foo() {
|
|
; CHECK-FOO: define void @foo() #0 {
|
|
define void @foo() {
|
|
ret void
|
|
}
|
|
|
|
|
|
; CHECK-FOO: attributes #0 = { noinline }
|