| 1 |
119734787 65536 393230 15 0 |
| 2 |
2 Capability Addresses |
| 3 |
2 Capability Kernel |
| 4 |
2 Capability Int8 |
| 5 |
5 ExtInstImport 1 "OpenCL.std" |
| 6 |
3 MemoryModel 1 2 |
| 7 |
5 EntryPoint 6 7 "test" |
| 8 |
13 String 12 "kernel_arg_type.test.char4*,char4*,char4*," |
| 9 |
3 Source 3 102000 |
| 10 |
4 Name 8 "src1" |
| 11 |
4 Name 9 "src2" |
| 12 |
3 Name 10 "dst" |
| 13 |
4 Name 11 "entry" |
| 14 |
4 Decorate 13 FuncParamAttr 5 |
| 15 |
2 DecorationGroup 13 |
| 16 |
5 GroupDecorate 13 8 9 10 |
| 17 |
4 TypeInt 3 8 0 |
| 18 |
2 TypeVoid 2 |
| 19 |
4 TypeVector 4 3 4 |
| 20 |
4 TypePointer 5 5 4 |
| 21 |
6 TypeFunction 6 2 5 5 5 |
| 22 |
|
| 23 |
|
| 24 |
5 Function 2 7 4 6 |
| 25 |
3 FunctionParameter 5 8 |
| 26 |
3 FunctionParameter 5 9 |
| 27 |
3 FunctionParameter 5 10 |
| 28 |
|
| 29 |
2 Label 11 |
| 30 |
1 Return |
| 31 |
|
| 32 |
1 FunctionEnd |
| 33 |
|
| 34 |
; RUN: llvm-spirv %s -to-binary -o %t.spv |
| 35 |
; RUN: llvm-spirv -r -emit-opaque-pointers %t.spv -o %t.bc |
| 36 |
; RUN: llvm-dis < %t.bc | FileCheck %s --check-prefix=CHECK-LLVM |
| 37 |
|
| 38 |
; CHECK-LLVM: define spir_kernel void @test(ptr addrspace(1) nocapture %src1, ptr addrspace(1) nocapture %src2, ptr addrspace(1) nocapture %dst) {{.*}} |