Debian Codegraph @

vc-intrinsics/GenXIntrinsics/test/Adaptors/opaque_ptrs/non_global_ptr_reader.ll

raw
1 ;=========================== begin_copyright_notice ============================
2 ;
3 ; Copyright (C) 2024-2025 Intel Corporation
4 ;
5 ; SPDX-License-Identifier: MIT
6 ;
7 ;============================ end_copyright_notice =============================
8
9 ; Test that reader treats only global pointer as svmptr type
10 ; and ignores other address spaces.
11
12 ; REQUIRES: opaque-pointers
13 ; RUN: opt -passes=GenXSPIRVReaderAdaptor -S < %s | FileCheck %s
14
15 ; CHECK: define dllexport spir_kernel void @test(
16 ; CHECK-SAME: ptr [[PTR:%[^)]+]])
17 define spir_kernel void @test(ptr %ptr) #0 {
18 ; CHECK-NEXT: ret void
19 ret void
20 }
21
22 attributes #0 = { "VCFunction" }
23
24 ; CHECK: !genx.kernels = !{[[KERNEL:![0-9]+]]}
25 ; CHECK: [[KERNEL]] = !{ptr @test, !"test", ![[KINDS:[0-9]+]], i32 0, i32 0, !{{[0-9]+}}, !{{[0-9]+}}, i32 0}
26 ; CHECK: ![[KINDS]] = !{i32 0}