mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-11-23 12:10:06 +00:00
4.0 KiB
4.0 KiB
1 | Operand class | Example instruction | Notes | example unit test | negative-enum coverage location |
---|---|---|---|---|---|
2 | |||||
3 | |||||
4 | OperandNone, | UNUSED | not in grammar | not enum | |
5 | OperandId, | many | ID | too many to count | not enum |
6 | OperandOptionalId, | Source, Variable | OPTIONAL_ID | OpSourceAcceptsOptionalFileId | not enum |
7 | OperandOptionalImage, | ImageFetch | ImageOperandsTest | TEST_F(ImageOperandsTest, WrongOperand) | |
8 | OperandVariableIds, | ExtInst | not enum | ||
9 | OperandOptionalLiteral, | ExecutionMode | AnyExecutionMode | not enum | |
10 | OperandOptionalLiteralString, | Source | OpSourceAcceptsOptionalSourceText | not enum | |
11 | OperandVariableLiterals, | Decorate | OpDecorateSimpleTest | not enum | |
12 | OperandVariableIdLiteral, | GroupMemberDecorate | GroupMemberDecorate* | not enum | |
13 | OperandVariableLiteralId, // zero or more pairs of (Literal, Id) | Switch | Switch* | not enum | |
14 | OperandLiteralNumber, | Source, Switch, ... | Switch* | not enum | |
15 | OperandLiteralString, | SourceContinued | OpSourceContinued | not enum | |
16 | OperandSource, | Source | OpSource | not enum | |
17 | OperandExecutionModel, | EntryPoint | OpEntryPointTest | TEST_F(OpEntryPointTest, WrongModel) | |
18 | OperandAddressing, | OpMemoryModel | OpMemoryModelTest | TEST_F(OpMemoryModelTest, WrongModel) | |
19 | OperandMemory, | OpMemoryModel | OpMemoryModelTest | TEST_F(OpMemoryModelTest, WrongModel) | |
20 | OperandExecutionMode, | OpExecutionMode | OpExecutionModeTest | TEST_F(OpExecutionModeTest, WrongMode) | |
21 | OperandStorage, | TypePointer, TypeForwardPointer, Variable | StorageClassTest | TEST_F(OpTypeForwardPointerTest, WrongClass) | |
22 | OperandDimensionality, | TypeImage | DimTest/AnyDim | TEST_F(DimTest, WrongDim) | |
23 | OperandSamplerAddressingMode, | ConstantSampler | SamplerAddressingModeTest | TEST_F(SamplerAddressingModeTest, WrongMode) | |
24 | OperandSamplerFilterMode, | ConstantSampler | AnySamplerFilterMode | TEST_F(SamplerFilterModeTest, WrongMode) | |
25 | OperandSamplerImageFormat, | TypeImage | SAMPLER_IMAGE_FORMAT | ImageFormatTest | TEST_F(ImageFormatTest, WrongFormat) |
26 | OperandImageChannelOrder, | UNUSED | returned as result value only | ||
27 | OperandImageChannelDataType, | UNUSED | returned as result value only | ||
28 | OperandImageOperands, | UNUSED | used to make a spec section | see OperandOptionalImage | |
29 | OperandFPFastMath, | OpDecorate | CombinedFPFastMathMask | TEST_F(OpDecorateEnumTest, WrongFPFastMathMode) | |
30 | OperandLinkageType, | OpDecorate | OpDecorateLinkageTest | TEST_F(OpDecorateLinkageTest, WrongType) | |
31 | OperandAccessQualifier, | OpTypePipe | AnyAccessQualifier | TEST_F(OpTypePipeTest, WrongAccessQualifier) | |
32 | OperandFuncParamAttr, | OpDecorate | TextToBinaryDecorateFuncParamAttr | TEST_F(OpDecorateEnumTest, WrongFuncParamAttr) | |
33 | OperandDecoration, | OpDecorate | AnyAccessQualifier | TEST_F(OpTypePipeTest, WrongAccessQualifier) | |
34 | OperandBuiltIn, | OpDecorate | TextToBinaryDecorateBultIn | TEST_F(OpDecorateEnumTest, WrongBuiltIn) | |
35 | OperandSelect, | SelectionMerge | TextToBinarySelectionMerge | TEST_F(OpSelectionMergeTest, WrongSelectionControl) | |
36 | OperandLoop, | LoopMerge | CombinedLoopControlMask | TEST_F(OpLoopMergeTest, WrongLoopControl) | |
37 | OperandFunction, | Function | AnySingleFunctionControlMask | TEST_F(OpFunctionControlTest, WrongFunctionControl) | |
38 | OperandMemorySemantics, | OpMemoryBarrier | it's an ID, not in grammar | OpMemoryBarrier* | not enum |
39 | OperandMemoryAccess, | UNUSED | should be on opstore, but hacked in opcode.cpp | not enum | |
40 | OperandScope, | MemoryBarrier | it's an ID, not in grammar | OpMemoryBarrier* | not enum |
41 | OperandGroupOperation, | GroupIAdd | GroupOperationTest | TEST_F(GroupOperationTest, WrongGroupOperation) | |
42 | OperandKernelEnqueueFlags, | OpEnqueueKernel | it's an ID, not in grammar | should not have one | not enum |
43 | OperandKernelProfilingInfo, | OpCaptureEventProfilingInfo | it's an ID, not in grammar | should not have one | not enum |
44 | OperandCapability, | Capability | OpCapabilityTest | TEST_F(TextToBinaryCapability, BadInvalidCapability) |