| 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 --check-prefix=CHECK-SPIRV |
| 4 |
; RUN: llvm-spirv %t.bc -opaque-pointers=0 -o %t.spv |
| 5 |
; RUN: spirv-val %t.spv |
| 6 |
|
| 7 |
; CHECK-SPIRV: Capability DeviceEnqueue |
| 8 |
; CHECK-SPIRV: 2 TypeQueue |
| 9 |
|
| 10 |
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-n8:16:32:64" |
| 11 |
target triple = "spir" |
| 12 |
|
| 13 |
%spirv.Queue = type opaque |
| 14 |
|
| 15 |
; Function Attrs: nounwind readnone |
| 16 |
define spir_func void @enqueue_simple_block(%spirv.Queue* addrspace(3)* nocapture %q) #0 { |
| 17 |
entry: |
| 18 |
ret void |
| 19 |
} |
| 20 |
|
| 21 |
attributes #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 = !{} |