File: customized_func_with_underscore.ll

package info (click to toggle)
spirv-llvm-translator-15 15.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 14,028 kB
  • sloc: cpp: 43,715; lisp: 3,497; sh: 153; python: 43; makefile: 26
file content (22 lines) | stat: -rw-r--r-- 917 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
; RUN: llvm-as %s -o - | llvm-spirv -o %t.spv
; RUN: llvm-spirv -r %t.spv -o - | llvm-dis -o - | FileCheck %s

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"
target triple = "spir-unknown-unknown"

; Function Attrs: nounwind readnone
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 {
entry:
  %0 = call spir_func i32 @_Z32__spirv_somefunc_with_underscorev()
  ; CHECK: call spir_func i32 @_Z32__spirv_somefunc_with_underscorev()
  %1 = call spir_func i64 @_Z28__spirv_GlobalInvocationId_xv()
  ; CHECK: call spir_func i64 @_Z28__spirv_GlobalInvocationId_xv()
  ret void
}

declare spir_func i32 @_Z32__spirv_somefunc_with_underscorev()
declare spir_func i64 @_Z28__spirv_GlobalInvocationId_xv()

attributes #0 = { nounwind readnone }

!0 = !{}