Debian Codegraph @

llvm-project/llvm/projects/llvm-spirv/test/customized_func_with_underscore.ll

raw
1 ; RUN: llvm-as %s -o - | llvm-spirv -o %t.spv
2 ; RUN: llvm-spirv -r -emit-opaque-pointers %t.spv -o - | llvm-dis -o - | FileCheck %s
3
4 target datalayout = "e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024"
5 target triple = "spir-unknown-unknown"
6
7 ; Function Attrs: nounwind readnone
8 define spir_kernel void @f() #0 !kernel_arg_addr_space !0 !kernel_arg_access_qual !0 !kernel_arg_type !0 !kernel_arg_base_type !0 !kernel_arg_type_qual !0 {
9 entry:
10 %0 = call spir_func i32 @_Z32__spirv_somefunc_with_underscorev()
11 ; CHECK: call spir_func i32 @_Z32__spirv_somefunc_with_underscorev()
12 %1 = call spir_func i64 @_Z28__spirv_GlobalInvocationId_xv()
13 ; CHECK: call spir_func i64 @_Z28__spirv_GlobalInvocationId_xv()
14 ret void
15 }
16
17 declare spir_func i32 @_Z32__spirv_somefunc_with_underscorev()
18 declare spir_func i64 @_Z28__spirv_GlobalInvocationId_xv()
19
20 attributes #0 = { nounwind readnone }
21
22 !0 = !{}