| 1 |
; RUN: llvm-spirv -spirv-text -r %s -o %t.bc |
| 2 |
; RUN: llvm-dis < %t.bc | FileCheck %s --check-prefix=CHECK-LLVM |
| 3 |
|
| 4 |
; CHECK-LLVM: define spir_kernel void @test{{.*}} !kernel_arg_runtime_aligned ![[RTALIGN_MD:[0-9]+]] {{.*}} |
| 5 |
; CHECK-LLVM: ![[RTALIGN_MD]] = !{i1 true, i1 false, i1 true, i1 false, i1 false} |
| 6 |
|
| 7 |
119734787 65536 393230 22 0 |
| 8 |
2 Capability Addresses |
| 9 |
2 Capability Linkage |
| 10 |
2 Capability Kernel |
| 11 |
2 Capability Int8 |
| 12 |
2 Capability RuntimeAlignedAttributeINTEL |
| 13 |
8 Extension "SPV_INTEL_runtime_aligned" |
| 14 |
5 ExtInstImport 1 "OpenCL.std" |
| 15 |
3 MemoryModel 2 2 |
| 16 |
5 EntryPoint 6 14 "test" |
| 17 |
3 Source 0 0 |
| 18 |
4 Name 7 "test" |
| 19 |
3 Name 8 "a" |
| 20 |
3 Name 9 "b" |
| 21 |
3 Name 10 "c" |
| 22 |
3 Name 11 "d" |
| 23 |
3 Name 12 "e" |
| 24 |
4 Name 13 "entry" |
| 25 |
3 Name 15 "a" |
| 26 |
3 Name 16 "b" |
| 27 |
3 Name 17 "c" |
| 28 |
3 Name 18 "d" |
| 29 |
3 Name 19 "e" |
| 30 |
|
| 31 |
6 Decorate 7 LinkageAttributes "test" Export |
| 32 |
4 Decorate 8 FuncParamAttr 5940 |
| 33 |
4 Decorate 10 FuncParamAttr 5940 |
| 34 |
4 Decorate 15 FuncParamAttr 5940 |
| 35 |
4 Decorate 17 FuncParamAttr 5940 |
| 36 |
4 TypeInt 3 8 0 |
| 37 |
4 TypeInt 5 32 0 |
| 38 |
2 TypeVoid 2 |
| 39 |
4 TypePointer 4 5 3 |
| 40 |
8 TypeFunction 6 2 4 4 4 5 5 |
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
5 Function 2 7 0 6 |
| 45 |
3 FunctionParameter 4 8 |
| 46 |
3 FunctionParameter 4 9 |
| 47 |
3 FunctionParameter 4 10 |
| 48 |
3 FunctionParameter 5 11 |
| 49 |
3 FunctionParameter 5 12 |
| 50 |
|
| 51 |
2 Label 13 |
| 52 |
1 Return |
| 53 |
|
| 54 |
1 FunctionEnd |
| 55 |
|
| 56 |
5 Function 2 14 0 6 |
| 57 |
3 FunctionParameter 4 15 |
| 58 |
3 FunctionParameter 4 16 |
| 59 |
3 FunctionParameter 4 17 |
| 60 |
3 FunctionParameter 5 18 |
| 61 |
3 FunctionParameter 5 19 |
| 62 |
|
| 63 |
2 Label 20 |
| 64 |
9 FunctionCall 2 21 7 15 16 17 18 19 |
| 65 |
1 Return |
| 66 |
|
| 67 |
1 FunctionEnd |
| 68 |
|