Debian Codegraph @

llvm-project/llvm/projects/llvm-spirv/test/ignore-builtin-linkage-name.spt

raw
1 119734787 65536 393230 25 0
2 2 Capability Addresses
3 2 Capability Linkage
4 2 Capability Kernel
5 2 Capability Int64
6 2 Capability GenericPointer
7 5 ExtInstImport 1 "OpenCL.std"
8 3 MemoryModel 2 2
9 4 EntryPoint 6 8 "foo"
10 3 Source 0 0
11 8 Name 5 "__spirv_WorkgroupSize"
12 4 Name 9 "entry"
13 4 Name 13 "GroupID"
14 3 Name 24 "mul"
15
16 4 Decorate 5 BuiltIn 25
17 3 Decorate 5 Constant
18 10 Decorate 5 LinkageAttributes "__spirv_WorkgroupSize" Import
19 4 Decorate 13 Alignment 8
20 4 Decorate 5 Alignment 32
21 4 TypeInt 2 64 0
22 5 Constant 2 10 3 0
23 5 Constant 2 16 0 0
24 5 Constant 2 20 2 0
25 4 TypeVector 3 2 3
26 4 TypePointer 4 5 3
27 2 TypeVoid 6
28 3 TypeFunction 7 6
29 4 TypeArray 11 2 10
30 4 TypePointer 12 7 11
31 4 TypePointer 14 8 3
32 4 TypePointer 17 8 2
33 4 Variable 4 5 5
34
35 5 Function 6 8 0 7
36
37 2 Label 9
38 4 Variable 12 13 7
39 4 PtrCastToGeneric 14 15 5
40 6 PtrAccessChain 17 18 15 16 16
41 4 PtrCastToGeneric 14 19 5
42 6 PtrAccessChain 17 21 19 16 20
43 6 Load 2 22 18 2 32
44 6 Load 2 23 21 2 8
45 5 IMul 2 24 22 23
46 1 Return
47
48 1 FunctionEnd
49
50 ; RUN: llvm-spirv %s -to-binary -o %t.spv
51 ; RUN: spirv-val %t.spv
52 ; RUN: llvm-spirv -r -emit-opaque-pointers %t.spv -spirv-target-env=SPV-IR -o - | llvm-dis | FileCheck %s -check-prefix=CHECK-LLVM
53
54 ; CHECK-LLVM-NOT: __spirv_WorkgroupSize
55 ; CHECK-LLVM: __spirv_BuiltInWorkgroupSize