Debian Codegraph @

IGC/ocloc_tests/SPIRV-extenstions/SPV_INTEL_fpga_buffer_location/FPGABufferLocation.ll

raw
1 ; UNSUPPORTED: system-windows
2 ; REQUIRES: llvm-spirv, regkeys, dg2-supported
3
4 ; RUN: llvm-as %s -o %t.bc
5 ; RUN: llvm-spirv %t.bc --spirv-ext=+SPV_INTEL_fpga_buffer_location -o %t.spv
6 ; RUN: ocloc compile -spirv_input -file %t.spv -device dg2 -options " -igc_opts 'ShaderDumpTranslationOnly=1'" 2>&1 | FileCheck %s --check-prefixes=CHECK-LLVM
7
8 ; CHECK-LLVM: define spir_kernel void @test{{.*}} !kernel_arg_buffer_location ![[BUFLOC_MD:[0-9]+]] {{.*}}
9 ; CHECK-LLVM: ![[BUFLOC_MD]] = !{i32 1, i32 2, i32 -1, i32 -1, i32 -1}
10
11 ; ModuleID = 'buffer_location.cl'
12 source_filename = "buffer_location.cl"
13 target datalayout = "e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024"
14 target triple = "spir64-unknown-unknown"
15
16 ; Function Attrs: norecurse nounwind readnone
17 define spir_kernel void @test(i32 addrspace(1)* %a, float addrspace(1)* %b, i32 addrspace(1)* %c, i32 %d, i32 %e) local_unnamed_addr !kernel_arg_addr_space !3 !kernel_arg_access_qual !4 !kernel_arg_type !5 !kernel_arg_base_type !5 !kernel_arg_buffer_location !6 {
18 entry:
19 ret void
20 }
21
22 !opencl.enable.FP_CONTRACT = !{}
23 !opencl.ocl.version = !{!0}
24 !opencl.spir.version = !{!0}
25 !opencl.used.extensions = !{!1}
26 !opencl.used.optional.core.features = !{!1}
27 !opencl.compiler.options = !{!1}
28 !llvm.ident = !{!2}
29
30 !0 = !{i32 2, i32 0}
31 !1 = !{}
32 !2 = !{!""}
33 !3 = !{i32 1, i32 1, i32 1}
34 !4 = !{!"none", !"none", !"none"}
35 !5 = !{!"int*", !"float*", !"int*"}
36 !6 = !{i32 1, i32 2, i32 -1, i32 -1, i32 3}