forked from KhronosGroup/SPIRV-LLVM-Translator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kernel-arg-ext_int-ptr.spt
33 lines (28 loc) · 971 Bytes
/
kernel-arg-ext_int-ptr.spt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
119734787 65536 393230 10 0
2 Capability Addresses
2 Capability Kernel
2 Capability ArbitraryPrecisionIntegersINTEL
11 Extension "SPV_INTEL_arbitrary_precision_integers"
5 ExtInstImport 1 "OpenCL.std"
3 MemoryModel 2 2
7 EntryPoint 6 6 "kernel_func1"
13 String 9 "kernel_arg_type.kernel_func1._ExtInt(31)*,"
3 Source 4 100000
4 Name 7 "_arg_"
4 Name 8 "entry"
4 TypeInt 3 31 0
2 TypeVoid 2
4 TypePointer 4 5 3
4 TypeFunction 5 2 4
5 Function 2 6 0 5
3 FunctionParameter 4 7
2 Label 8
1 Return
1 FunctionEnd
; RUN: llvm-spirv %s -to-binary -o %t.spv
; Reverse translation shouldn't crash:
; RUN: llvm-spirv -r %t.spv -o %t.bc
; RUN: llvm-dis < %t.bc | FileCheck %s --check-prefix=CHECK-LLVM
; CHECK-LLVM: define spir_kernel void @kernel_func1(i31 addrspace(1)* %_arg_){{.*}} !kernel_arg_type ![[ArgTy:[0-9]+]]{{.*}} !kernel_arg_base_type ![[BaseArgTy:[0-9]+]]
; CHECK-LLVM: ![[ArgTy]] = !{!"_ExtInt(31)*"}
; CHECK-LLVM: ![[BaseArgTy]] = !{!"int31_t*"}