Debian Codegraph @

IGC/ocloc_tests/SPIRV-extenstions/SPV_INTEL_kernel_attributes/streaming_interface_attribute.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_kernel_attributes -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_1{{.*}} !ip_interface ![[#NOSTALLFREE:]]
9 ; CHECK-LLVM: define spir_kernel void @test_2{{.*}} !ip_interface ![[#STALLFREE:]]
10 ; CHECK-LLVM: ![[#NOSTALLFREE:]] = !{!"streaming"}
11 ; CHECK-LLVM: ![[#STALLFREE:]] = !{!"streaming", !"stall_free_return"}
12
13 ; ModuleID = 'test.bc'
14 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v16:16:16-v24:32:32-v32:32:32-v48:64:64-v64:64:64-v96:128:128-v128:128:128-v192:256:256-v256:256:256-v512:512:512-v1024:1024:1024"
15 target triple = "spir64-unknown-unknown"
16
17 ; Function Attrs: nounwind
18 define spir_kernel void @test_1() #0 !ip_interface !0
19 {
20 entry:
21 ret void
22 }
23
24 ; Function Attrs: nounwind
25 define spir_kernel void @test_2() #0 !ip_interface !1
26 {
27 entry:
28 ret void
29 }
30
31 attributes #0 = { nounwind }
32
33 !0 = !{!"streaming"}
34 !1 = !{!"streaming", !"stall_free_return"}