Files
clang-p2996/llvm/test/Analysis/CallGraph/callback-calls.ll
Matt Arsenault 7cf5581712 Analysis: Update some tests for opaque pointers
StackSafetyAnalysis/lifetime.ll had one bitcast removed that may have
mattered. The concluded lifetime is longer based on the underlying
alloca, instead of the bitcasted pointer so left that as a pointless
cast.

local.ll memintrin.ll needed some manual fixes
2022-12-02 18:47:43 -05:00

21 lines
523 B
LLVM

; RUN: opt < %s -print-callgraph -disable-output 2>&1 | FileCheck %s
; RUN: opt < %s -passes=print-callgraph -disable-output 2>&1 | FileCheck %s
; CHECK: Call graph node for function: 'caller'
; CHECK-NEXT: CS<{{.*}}> calls function 'broker'
; CHECK-NEXT: CS<None> calls function 'callback'
define void @caller(ptr %arg) {
call void @broker(ptr @callback, ptr %arg)
ret void
}
define void @callback(ptr %arg) {
ret void
}
declare !callback !0 void @broker(ptr, ptr)
!0 = !{!1}
!1 = !{i64 0, i64 1, i1 false}