1; RUN: llvm-as %s -o %t.bc
2; RUN: llvm-spirv %t.bc -spirv-text -o %t
3; RUN: FileCheck < %t %s --check-prefix=CHECK-SPIRV
4; RUN: llvm-spirv %t.bc -o %t.spv
5; RUN: spirv-val %t.spv
6
7; CHECK-SPIRV: Capability DeviceEnqueue
8; CHECK-SPIRV: 2 TypeQueue
9
10target 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-n8:16:32:64"
11target triple = "spir"
12
13%opencl.queue_t = type opaque
14
15; Function Attrs: nounwind readnone
16define spir_func void @enqueue_simple_block(%opencl.queue_t* addrspace(3)* nocapture %q) #0 {
17entry:
18  ret void
19}
20
21attributes #0 = { nounwind readnone "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-realign-stack" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
22
23!opencl.enable.FP_CONTRACT = !{}
24!opencl.spir.version = !{!0}
25!opencl.ocl.version = !{!1}
26!opencl.used.extensions = !{!2}
27!opencl.used.optional.core.features = !{!2}
28!opencl.compiler.options = !{!2}
29
30!0 = !{i32 1, i32 2}
31!1 = !{i32 2, i32 0}
32!2 = !{}
33