bolt/deps/llvm-18.1.8/llvm/test/Transforms/Inline/inline-probe-stack.ll
2025-02-14 19:21:04 +01:00

20 lines
532 B
LLVM

; RUN: opt %s -passes=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" }