SPIRV-Tools/test/operand-class-test-coverage.csv
David Neto 8bed0cea13 Add a .csv showing test coverage for operand class
It shows which spv::OperandClass values are used in
the syntax table in source/opcode.inc, and what tests
exercise those operand types.
2015-10-26 12:55:33 -04:00

2.8 KiB

1Operand typeExample instructionNotesexample unit test
2
3
4 OperandNone,UNUSEDnot in grammar
5 OperandId,manyIDtoo many to count
6 OperandOptionalId,Source, VariableOPTIONAL_IDOpSourceAcceptsOptionalFileId
7 OperandOptionalImage,ImageFetchImageOperandsTest
8 OperandVariableIds,ExtInst
9 OperandOptionalLiteral,ExecutionModeAnyExecutionMode
10 OperandOptionalLiteralString,SourceOpSourceAcceptsOptionalSourceText
11 OperandVariableLiterals,DecorateOpDecorateSimpleTest
12 OperandVariableIdLiteral,GroupMemberDecorateGroupMemberDecorate*
13 OperandVariableLiteralId, // zero or more pairs of (Literal, Id)SwitchSwitch*
14 OperandLiteralNumber,Source, Switch, ...Switch*
15 OperandLiteralString,SourceContinuedOpSourceContinued
16 OperandSource,SourceOpSource
17 OperandExecutionModel,EntryPointOpEntryPointTest
18 OperandAddressing,OpMemoryModelOpMemoryModelTest
19 OperandMemory,OpMemoryModelOpMemoryModelTest
20 OperandExecutionMode,OpExecutionModeOpExecutionModeTest
21 OperandStorage,TypePointer, TypeForwardPointer, VariableStorageClassTest
22 OperandDimensionality,TypeImageDimTest/AnyDim
23 OperandSamplerAddressingMode,ConstantSamplerSamplerAddressingModeTest
24 OperandSamplerFilterMode,ConstantSamplerAnySamplerFilterMode
25 OperandSamplerImageFormat,TypeImageSAMPLER_IMAGE_FORMATImageFormatTest
26 OperandImageChannelOrder,UNUSEDreturned as result value only
27 OperandImageChannelDataType,UNUSEDreturned as result value only
28 OperandImageOperands,UNUSEDused to make a spec section
29 OperandFPFastMath,OpDecorateCombinedFPFastMathMask
30 OperandFPRoundingMode,OpDecorateOpDecorateEnumTest
31 OperandLinkageType,OpDecorateOpDecorateLinkageTest
32 OperandAccessQualifier,OpTypePipeAnyAccessQualifier
33 OperandFuncParamAttr,OpDecorateTextToBinaryDecorateFuncParamAttr
34 OperandDecoration,OpDecorateAnyAccessQualifier
35 OperandBuiltIn,OpDecorateTextToBinaryDecorateBultIn
36 OperandSelect,SelectionMergeTextToBinarySelectionMerge
37 OperandLoop,LoopMergeCombinedLoopControlMask
38 OperandFunction,FunctionAnySingleFunctionControlMask
39 OperandMemorySemantics,OpMemoryBarrierit's an ID, not in grammarOpMemoryBarrier*
40 OperandMemoryAccess,UNUSEDshould be on opstore, but hacked in opcode.cpp
41 OperandScope,MemoryBarrierit's an ID, not in grammarOpMemoryBarrier*
42 OperandGroupOperation,GroupIAddGroupOperationTest
43 OperandKernelEnqueueFlags,OpEnqueueKernelit's an ID, not in grammarshould not have one
44 OperandKernelProfilingInfo,OpCaptureEventProfilingInfoit's an ID, not in grammarshould not have one
45 OperandCapability,CapabilityOpCapabilityTest