Debian Codegraph @

llvm-project/llvm/projects/llvm-spirv/test/call-attribute.ll

raw
1 ; REQUIRES: pass-plugin
2 ; UNSUPPORTED: target={{.*windows.*}}
3
4 ; RUN: opt %load_spirv_lib -passes=spirv-to-ocl20 %s -S -o - | FileCheck %s
5
6 target datalayout = "e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-n8:16:32:64"
7 target triple = "spir64-unknown-unknown"
8
9 define spir_func ptr @_Z41__SYCL_GenericCastToPtrExplicit_ToPrivateIN4sycl3_V16marrayIdLm17EEEEPU3AS0T_Pv(ptr addrspace(4) %ptr) {
10 entry:
11 ; CHECK: tail call spir_func noundef ptr @__to_private(ptr addrspace(4) noundef %ptr)
12
13 %call = tail call spir_func noundef ptr @_Z42__spirv_GenericCastToPtrExplicit_ToPrivatePvi(ptr addrspace(4) noundef %ptr, i32 noundef 0)
14 ret ptr null
15 }
16
17 declare spir_func ptr @_Z42__spirv_GenericCastToPtrExplicit_ToPrivatePvi(ptr addrspace(4), i32)