summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/Inline/inline-probe-stack.ll
blob: bddee16d30b7b1ec3d7d6dd57b73ac4a4de5b3ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
; RUN: opt %s -inline -S | FileCheck %s

define internal void @inner() "probe-stack"="__probestackinner" {
  ret void
}

define void @outerNoAttribute() {
  call void @inner()
  ret void
}

define void @outerConflictingAttribute() "probe-stack"="__probestackouter" {
  call void @inner()
  ret void
}

; CHECK: define void @outerNoAttribute() #0
; CHECK: define void @outerConflictingAttribute() #1
; CHECK: attributes #0 = { "probe-stack"="__probestackinner" }
; CHECK: attributes #1 = { "probe-stack"="__probestackouter" }
OpenPOWER on IntegriCloud