Debian Codegraph @

llvm-project/llvm/projects/llvm-spirv/test/SubgroupsPerWorkgroupId.spvasm

raw
1 ; REQUIRES: spirv-as
2
3 ; RUN: spirv-as %s --target-env spv1.2 -o %t.spv
4 ; RUN: spirv-val %t.spv
5 ; RUN: llvm-spirv -r -o %t.rev.bc %t.spv
6 ; RUN: llvm-dis %t.rev.bc -o - | FileCheck %s
7
8 OpCapability Addresses
9 OpCapability Linkage
10 OpCapability Kernel
11 OpCapability SubgroupDispatch
12 OpMemoryModel Physical64 OpenCL
13 OpEntryPoint Kernel %fn "testSubgroupsPerWorkgroupId"
14 OpExecutionModeId %fn SubgroupsPerWorkgroupId %uint_8
15 %void = OpTypeVoid
16 %uint = OpTypeInt 32 0
17 %uint_4 = OpConstant %uint 4
18 %uint_8 = OpSpecConstantOp %uint IAdd %uint_4 %uint_4
19 %fnTy = OpTypeFunction %void
20
21 ; CHECK: !spirv.ExecutionMode = !{![[MD:[0-9]+]]}
22 ; CHECK: ![[MD]] = !{ptr @testSubgroupsPerWorkgroupId, i32 37, i32 8}
23
24 %fn = OpFunction %void None %fnTy
25 %entry = OpLabel
26 OpReturn
27 OpFunctionEnd