Debian Codegraph @

llvm-project/llvm/projects/llvm-spirv/test/linked-list.ll

raw
1 ; RUN: llvm-as -opaque-pointers=0 %s -o %t.bc
2 ; RUN: llvm-spirv %t.bc -opaque-pointers=0 -spirv-text -o %t
3 ; RUN: FileCheck < %t %s
4 ; RUN: llvm-spirv %t.bc -opaque-pointers=0 -o %t.spv
5 ; RUN: spirv-val %t.spv
6 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"
7 target triple = "spir-unknown-unknown"
8
9 %struct.Node = type { %struct.Node.0 addrspace(1)* }
10 ; CHECK: 6 TypeOpaque {{[0-9]*}} "struct.Node.0"
11 %struct.Node.0 = type opaque
12
13 ; Function Attrs: nounwind readnone
14 define spir_kernel void @create_linked_lists(%struct.Node addrspace(1)* nocapture %pNodes, i32 addrspace(1)* nocapture %allocation_index, i32 %list_length) #0 !kernel_arg_addr_space !1 !kernel_arg_access_qual !2 !kernel_arg_type !3 !kernel_arg_base_type !5 !kernel_arg_type_qual !4 {
15 entry:
16 ret void
17 }
18
19 attributes #0 = { nounwind readnone }
20
21 !opencl.enable.FP_CONTRACT = !{}
22 !opencl.spir.version = !{!6}
23 !opencl.ocl.version = !{!6}
24 !opencl.used.extensions = !{!7}
25 !opencl.used.optional.core.features = !{!7}
26 !opencl.compiler.options = !{!8}
27
28 !1 = !{i32 1, i32 1, i32 0}
29 !2 = !{!"none", !"none", !"none"}
30 !3 = !{!"struct Node*", !"int*", !"int"}
31 !4 = !{!"", !"volatile ", !""}
32 !5 = !{!"struct Node*", !"int*", !"int"}
33 !6 = !{i32 2, i32 0}
34 !7 = !{}
35 !8 = !{!""}