summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/FunctionAttrs/forced.ll
blob: d0bdb155a20cc17c65c7676d68b500a39e09c9c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; RUN: opt < %s -S -functionattrs | FileCheck %s --check-prefix=CHECK-CONTROL
; RUN: opt < %s -S -functionattrs -force-attribute foo:noinline | FileCheck %s --check-prefix=CHECK-FOO

; CHECK-CONTROL: define void @foo() #0 {
; CHECK-FOO: define void @foo() #0 {
define void @foo() {
  ret void
}


; CHECK-CONTROL: attributes #0 = { norecurse readnone }
; CHECK-FOO: attributes #0 = { noinline norecurse readnone }
OpenPOWER on IntegriCloud