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