Debian Codegraph @

llvm-project/llvm/projects/llvm-spirv/test/copy_object.spt

raw
1 119734787 65536 458752 20 0
2 2 Capability Addresses
3 2 Capability Linkage
4 2 Capability Kernel
5 2 Capability Int64
6 2 Capability Int8
7 3 MemoryModel 2 2
8 6 EntryPoint 6 1 "copy_object"
9 3 Source 3 102000
10 3 Name 2 "in"
11 4 Decorate 3 BuiltIn 28
12 3 Decorate 3 Constant
13 4 Decorate 2 FuncParamAttr 5
14 11 Decorate 3 LinkageAttributes "__spirv_GlobalInvocationId" Import
15 4 TypeInt 4 64 0
16 4 TypeInt 8 8 0
17 5 Constant 4 11 32 0
18 4 Constant 8 12 236
19 4 TypeVector 5 4 3
20 4 TypePointer 6 0 5
21 2 TypeVoid 7
22 4 TypePointer 9 5 8
23 4 TypeFunction 10 7 9
24 4 Variable 6 3 0
25
26 5 Function 7 1 0 10
27 3 FunctionParameter 9 2
28
29 2 Label 13
30 4 Load 5 14 3
31 5 CompositeExtract 4 15 14 0
32 5 ShiftLeftLogical 4 16 15 11
33 5 ShiftRightArithmetic 4 17 16 11
34 5 InBoundsPtrAccessChain 9 18 2 17
35 4 CopyObject 8 19 12
36 3 Store 18 19
37 1 Return
38
39 1 FunctionEnd
40
41 ; RUN: llvm-spirv %s -to-binary -o %t.spv
42 ; RUN: spirv-val %t.spv
43 ; RUN: llvm-spirv -r -emit-opaque-pointers %t.spv -o %t.bc
44 ; RUN: llvm-dis < %t.bc | FileCheck %s --check-prefix=CHECK-LLVM
45
46 ; CHECK-LLVM-NOT: CopyObject
47 ; CHECK-LLVM: %[[char:[0-9]+]] = alloca i8
48 ; CHECK-LLVM: store i8 -20, ptr %[[char]]
49 ; CHECK-LLVM: %{{[0-9]*}} = load i8, ptr %[[char]]