From 8bed0cea131ec5e791b8a78ce1baf821aecdf0b2 Mon Sep 17 00:00:00 2001 From: David Neto Date: Tue, 29 Sep 2015 14:22:02 -0400 Subject: [PATCH] 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. --- test/operand-class-test-coverage.csv | 45 ++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 test/operand-class-test-coverage.csv diff --git a/test/operand-class-test-coverage.csv b/test/operand-class-test-coverage.csv new file mode 100644 index 00000000..0a4ca4f2 --- /dev/null +++ b/test/operand-class-test-coverage.csv @@ -0,0 +1,45 @@ +Operand type,Example instruction,Notes,example unit test +,,, +,,, +" OperandNone,",UNUSED,not in grammar, +" OperandId,",many,ID,too many to count +" OperandOptionalId,","Source, Variable",OPTIONAL_ID,OpSourceAcceptsOptionalFileId +" OperandOptionalImage,",ImageFetch,,ImageOperandsTest +" OperandVariableIds,",ExtInst,, +" OperandOptionalLiteral,",ExecutionMode,,AnyExecutionMode +" OperandOptionalLiteralString,",Source,,OpSourceAcceptsOptionalSourceText +" OperandVariableLiterals,",Decorate,,OpDecorateSimpleTest +" OperandVariableIdLiteral,",GroupMemberDecorate,,GroupMemberDecorate* +" OperandVariableLiteralId, // zero or more pairs of (Literal, Id)",Switch,,Switch* +" OperandLiteralNumber,","Source, Switch, ...",,Switch* +" OperandLiteralString,",SourceContinued,,OpSourceContinued +" OperandSource,",Source,,OpSource +" OperandExecutionModel,",EntryPoint,,OpEntryPointTest +" OperandAddressing,",OpMemoryModel,,OpMemoryModelTest +" OperandMemory,",OpMemoryModel,,OpMemoryModelTest +" OperandExecutionMode,",OpExecutionMode,,OpExecutionModeTest +" OperandStorage,","TypePointer, TypeForwardPointer, Variable",,StorageClassTest +" OperandDimensionality,",TypeImage,,DimTest/AnyDim +" OperandSamplerAddressingMode,",ConstantSampler,,SamplerAddressingModeTest +" OperandSamplerFilterMode,",ConstantSampler,,AnySamplerFilterMode +" OperandSamplerImageFormat,",TypeImage,SAMPLER_IMAGE_FORMAT,ImageFormatTest +" OperandImageChannelOrder,",UNUSED,returned as result value only, +" OperandImageChannelDataType,",UNUSED,returned as result value only, +" OperandImageOperands,",UNUSED,used to make a spec section, +" OperandFPFastMath,",OpDecorate,,CombinedFPFastMathMask +" OperandFPRoundingMode,",OpDecorate,,OpDecorateEnumTest +" OperandLinkageType,",OpDecorate,,OpDecorateLinkageTest +" OperandAccessQualifier,",OpTypePipe,,AnyAccessQualifier +" OperandFuncParamAttr,",OpDecorate,,TextToBinaryDecorateFuncParamAttr +" OperandDecoration,",OpDecorate,,AnyAccessQualifier +" OperandBuiltIn,",OpDecorate,,TextToBinaryDecorateBultIn +" OperandSelect,",SelectionMerge,,TextToBinarySelectionMerge +" OperandLoop,",LoopMerge,,CombinedLoopControlMask +" OperandFunction,",Function,,AnySingleFunctionControlMask +" OperandMemorySemantics,",OpMemoryBarrier,"it's an ID, not in grammar",OpMemoryBarrier* +" OperandMemoryAccess,",UNUSED,"should be on opstore, but hacked in opcode.cpp", +" OperandScope,",MemoryBarrier,"it's an ID, not in grammar",OpMemoryBarrier* +" OperandGroupOperation,",GroupIAdd,,GroupOperationTest +" OperandKernelEnqueueFlags,",OpEnqueueKernel,"it's an ID, not in grammar",should not have one +" OperandKernelProfilingInfo,",OpCaptureEventProfilingInfo,"it's an ID, not in grammar",should not have one +" OperandCapability,",Capability,,OpCapabilityTest \ No newline at end of file