29 lines · plain
1; REQUIRES: asserts2 3; RUN: llvm-split -o %t %s -j 2 -mtriple amdgcn-amd-amdhsa -amdgpu-module-splitting-no-externalize-address-taken -debug-only=amdgpu-split-module 2>&1 | FileCheck %s4 5; CHECK: [!] callgraph is incomplete for ptr @A - analyzing function6; CHECK-NEXT: found inline assembly7; CHECK-NOT: indirect call found8 9@addrthief = global [2 x ptr] [ptr @HelperA, ptr @HelperB]10 11define internal void @HelperA() {12 ret void13}14 15define internal void @HelperB() {16 ret void17}18 19define amdgpu_kernel void @A() {20 call void asm sideeffect "v_mov_b32 v0, 7", "~{v0}"()21 call void @HelperA()22 ret void23}24 25define amdgpu_kernel void @B(ptr %out) {26 call void @HelperB()27 ret void28}29