• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llvm-as < %s | llvm-spirv -spirv-text -o %t
2; RUN: FileCheck < %t %s
3target 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"
4target triple = "spir-unknown-unknown"
5
6; CHECK: 4 Decorate [[GID:[0-9]*]] FuncParamAttr 5
7; CHECK: 2 DecorationGroup [[GID]]
8; CHECK: 4 Decorate [[GID2:[0-9]*]] FuncParamAttr 6
9; CHECK: 2 DecorationGroup [[GID2]]
10; CHECK: 5 GroupDecorate [[GID]]
11; CHECK: 4 GroupDecorate [[GID2]]
12
13; Function Attrs: nounwind readnone
14define spir_kernel void @test(<4 x i8> addrspace(1)* nocapture %src1, <4 x i8> addrspace(1)* nocapture %src2, <4 x i8> addrspace(1)* nocapture %dst) #0 {
15entry:
16  ret void
17}
18
19attributes #0 = { nounwind readnone }
20
21!opencl.kernels = !{!0}
22!opencl.enable.FP_CONTRACT = !{}
23!opencl.spir.version = !{!6}
24!opencl.ocl.version = !{!6}
25!opencl.used.extensions = !{!7}
26!opencl.used.optional.core.features = !{!7}
27!opencl.compiler.options = !{!8}
28
29!0 = !{void (<4 x i8> addrspace(1)*, <4 x i8> addrspace(1)*, <4 x i8> addrspace(1)*)* @test, !1, !2, !3, !4, !5}
30!1 = !{!"kernel_arg_addr_space", i32 1, i32 1, i32 1}
31!2 = !{!"kernel_arg_access_qual", !"none", !"none", !"none"}
32!3 = !{!"kernel_arg_type", !"char4*", !"char4*", !"char4*"}
33!4 = !{!"kernel_arg_type_qual", !"const", !"const", !""}
34!5 = !{!"kernel_arg_base_type", !"char4*", !"char4*", !"char4*"}
35!6 = !{i32 1, i32 2}
36!7 = !{}
37!8 = !{!""}
38