/external/angle/third_party/vulkan-deps/spirv-tools/src/source/ |
D | opcode.cpp | 67 uint32_t spvOpcodeMake(uint16_t wordCount, spv::Op opcode) { in spvOpcodeMake() 128 const spv::Op opcode, in spvOpcodeTableValueLookup() 169 void spvInstructionCopy(const uint32_t* words, const spv::Op opcode, in spvInstructionCopy() 180 assert(opcode == static_cast<spv::Op>(thisOpcode) && in spvInstructionCopy() 189 spv_opcode_desc_t needle = {"", static_cast<spv::Op>(opcode), in spvOpcodeString() 199 if (it != end && it->opcode == spv::Op(opcode)) { in spvOpcodeString() 207 const char* spvOpcodeString(const spv::Op opcode) { in spvOpcodeString() 211 int32_t spvOpcodeIsScalarType(const spv::Op opcode) { in spvOpcodeIsScalarType() 213 case spv::Op::OpTypeInt: in spvOpcodeIsScalarType() 214 case spv::Op::OpTypeFloat: in spvOpcodeIsScalarType() [all …]
|
/external/swiftshader/third_party/SPIRV-Tools/source/ |
D | opcode.cpp | 67 uint32_t spvOpcodeMake(uint16_t wordCount, spv::Op opcode) { in spvOpcodeMake() 128 const spv::Op opcode, in spvOpcodeTableValueLookup() 169 void spvInstructionCopy(const uint32_t* words, const spv::Op opcode, in spvInstructionCopy() 180 assert(opcode == static_cast<spv::Op>(thisOpcode) && in spvInstructionCopy() 189 spv_opcode_desc_t needle = {"", static_cast<spv::Op>(opcode), in spvOpcodeString() 199 if (it != end && it->opcode == spv::Op(opcode)) { in spvOpcodeString() 207 const char* spvOpcodeString(const spv::Op opcode) { in spvOpcodeString() 211 int32_t spvOpcodeIsScalarType(const spv::Op opcode) { in spvOpcodeIsScalarType() 213 case spv::Op::OpTypeInt: in spvOpcodeIsScalarType() 214 case spv::Op::OpTypeFloat: in spvOpcodeIsScalarType() [all …]
|
/external/swiftshader/third_party/SPIRV-Tools/source/fuzz/ |
D | transformation_move_instruction_down.cpp | 29 assert(op_ext_inst.opcode() == spv::Op::OpExtInst && "Wrong opcode"); in GetExtensionSet() 145 case spv::Op::OpNop: in IsSimpleInstruction() 146 case spv::Op::OpUndef: in IsSimpleInstruction() 147 case spv::Op::OpAccessChain: in IsSimpleInstruction() 148 case spv::Op::OpInBoundsAccessChain: in IsSimpleInstruction() 152 case spv::Op::OpVectorExtractDynamic: in IsSimpleInstruction() 153 case spv::Op::OpVectorInsertDynamic: in IsSimpleInstruction() 154 case spv::Op::OpVectorShuffle: in IsSimpleInstruction() 155 case spv::Op::OpCompositeConstruct: in IsSimpleInstruction() 156 case spv::Op::OpCompositeExtract: in IsSimpleInstruction() [all …]
|
D | transformation_add_relaxed_decoration.cpp | 57 message_.result_id(), uint32_t(spv::Decoration::RelaxedPrecision)); in Apply() 67 bool TransformationAddRelaxedDecoration::IsNumeric(spv::Op opcode) { in IsNumeric() 69 case spv::Op::OpConvertFToU: in IsNumeric() 70 case spv::Op::OpConvertFToS: in IsNumeric() 71 case spv::Op::OpConvertSToF: in IsNumeric() 72 case spv::Op::OpConvertUToF: in IsNumeric() 73 case spv::Op::OpUConvert: in IsNumeric() 74 case spv::Op::OpSConvert: in IsNumeric() 75 case spv::Op::OpFConvert: in IsNumeric() 76 case spv::Op::OpConvertPtrToU: in IsNumeric() [all …]
|
D | transformation_invert_comparison_operator.cpp | 50 assert(fuzzerutil::CanInsertOpcodeBeforeInstruction(spv::Op::OpLogicalNot, in IsApplicable() 69 ir_context, spv::Op::OpLogicalNot, inst->type_id(), inst->result_id(), in Apply() 86 spv::Op opcode) { in IsInversionSupported() 88 case spv::Op::OpSGreaterThan: in IsInversionSupported() 89 case spv::Op::OpSGreaterThanEqual: in IsInversionSupported() 90 case spv::Op::OpSLessThan: in IsInversionSupported() 91 case spv::Op::OpSLessThanEqual: in IsInversionSupported() 92 case spv::Op::OpUGreaterThan: in IsInversionSupported() 93 case spv::Op::OpUGreaterThanEqual: in IsInversionSupported() 94 case spv::Op::OpULessThan: in IsInversionSupported() [all …]
|
D | transformation_propagate_instruction_up.cpp | 26 assert(phi_inst.opcode() == spv::Op::OpPhi && "|phi_inst| is not an OpPhi"); in GetResultIdFromLabelId() 69 dependency->opcode() != spv::Op::OpPhi) { in HasValidDependencies() 176 assert(dependency_inst->opcode() == spv::Op::OpPhi && in Apply() 194 MakeUnique<opt::Instruction>(ir_context, spv::Op::OpPhi, inst->type_id(), in Apply() 213 bool TransformationPropagateInstructionUp::IsOpcodeSupported(spv::Op opcode) { in IsOpcodeSupported() 219 case spv::Op::OpUndef: in IsOpcodeSupported() 220 case spv::Op::OpAccessChain: in IsOpcodeSupported() 221 case spv::Op::OpInBoundsAccessChain: in IsOpcodeSupported() 222 case spv::Op::OpArrayLength: in IsOpcodeSupported() 223 case spv::Op::OpVectorExtractDynamic: in IsOpcodeSupported() [all …]
|
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/fuzz/ |
D | transformation_move_instruction_down.cpp | 29 assert(op_ext_inst.opcode() == spv::Op::OpExtInst && "Wrong opcode"); in GetExtensionSet() 145 case spv::Op::OpNop: in IsSimpleInstruction() 146 case spv::Op::OpUndef: in IsSimpleInstruction() 147 case spv::Op::OpAccessChain: in IsSimpleInstruction() 148 case spv::Op::OpInBoundsAccessChain: in IsSimpleInstruction() 152 case spv::Op::OpVectorExtractDynamic: in IsSimpleInstruction() 153 case spv::Op::OpVectorInsertDynamic: in IsSimpleInstruction() 154 case spv::Op::OpVectorShuffle: in IsSimpleInstruction() 155 case spv::Op::OpCompositeConstruct: in IsSimpleInstruction() 156 case spv::Op::OpCompositeExtract: in IsSimpleInstruction() [all …]
|
D | transformation_add_relaxed_decoration.cpp | 57 message_.result_id(), uint32_t(spv::Decoration::RelaxedPrecision)); in Apply() 67 bool TransformationAddRelaxedDecoration::IsNumeric(spv::Op opcode) { in IsNumeric() 69 case spv::Op::OpConvertFToU: in IsNumeric() 70 case spv::Op::OpConvertFToS: in IsNumeric() 71 case spv::Op::OpConvertSToF: in IsNumeric() 72 case spv::Op::OpConvertUToF: in IsNumeric() 73 case spv::Op::OpUConvert: in IsNumeric() 74 case spv::Op::OpSConvert: in IsNumeric() 75 case spv::Op::OpFConvert: in IsNumeric() 76 case spv::Op::OpConvertPtrToU: in IsNumeric() [all …]
|
D | transformation_invert_comparison_operator.cpp | 50 assert(fuzzerutil::CanInsertOpcodeBeforeInstruction(spv::Op::OpLogicalNot, in IsApplicable() 69 ir_context, spv::Op::OpLogicalNot, inst->type_id(), inst->result_id(), in Apply() 86 spv::Op opcode) { in IsInversionSupported() 88 case spv::Op::OpSGreaterThan: in IsInversionSupported() 89 case spv::Op::OpSGreaterThanEqual: in IsInversionSupported() 90 case spv::Op::OpSLessThan: in IsInversionSupported() 91 case spv::Op::OpSLessThanEqual: in IsInversionSupported() 92 case spv::Op::OpUGreaterThan: in IsInversionSupported() 93 case spv::Op::OpUGreaterThanEqual: in IsInversionSupported() 94 case spv::Op::OpULessThan: in IsInversionSupported() [all …]
|
D | transformation_propagate_instruction_up.cpp | 26 assert(phi_inst.opcode() == spv::Op::OpPhi && "|phi_inst| is not an OpPhi"); in GetResultIdFromLabelId() 69 dependency->opcode() != spv::Op::OpPhi) { in HasValidDependencies() 176 assert(dependency_inst->opcode() == spv::Op::OpPhi && in Apply() 194 MakeUnique<opt::Instruction>(ir_context, spv::Op::OpPhi, inst->type_id(), in Apply() 213 bool TransformationPropagateInstructionUp::IsOpcodeSupported(spv::Op opcode) { in IsOpcodeSupported() 219 case spv::Op::OpUndef: in IsOpcodeSupported() 220 case spv::Op::OpAccessChain: in IsOpcodeSupported() 221 case spv::Op::OpInBoundsAccessChain: in IsOpcodeSupported() 222 case spv::Op::OpArrayLength: in IsOpcodeSupported() 223 case spv::Op::OpVectorExtractDynamic: in IsOpcodeSupported() [all …]
|
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/val/ |
D | validate_mode_setting.cpp | 30 if (!entry_point || spv::Op::OpFunction != entry_point->opcode()) { in ValidateEntryPoint() 37 const spv::ExecutionModel execution_model = in ValidateEntryPoint() 38 inst->GetOperandAs<spv::ExecutionModel>(0); in ValidateEntryPoint() 39 if (execution_model != spv::ExecutionModel::Kernel) { in ValidateEntryPoint() 51 if (!return_type || spv::Op::OpTypeVoid != return_type->opcode()) { in ValidateEntryPoint() 59 if (_.HasCapability(spv::Capability::Shader)) { in ValidateEntryPoint() 61 case spv::ExecutionModel::Fragment: in ValidateEntryPoint() 63 execution_modes->count(spv::ExecutionMode::OriginUpperLeft) && in ValidateEntryPoint() 64 execution_modes->count(spv::ExecutionMode::OriginLowerLeft)) { in ValidateEntryPoint() 71 (!execution_modes->count(spv::ExecutionMode::OriginUpperLeft) && in ValidateEntryPoint() [all …]
|
D | validate_capability.cpp | 30 switch (spv::Capability(capability)) { in IsSupportGuaranteedVulkan_1_0() 31 case spv::Capability::Matrix: in IsSupportGuaranteedVulkan_1_0() 32 case spv::Capability::Shader: in IsSupportGuaranteedVulkan_1_0() 33 case spv::Capability::InputAttachment: in IsSupportGuaranteedVulkan_1_0() 34 case spv::Capability::Sampled1D: in IsSupportGuaranteedVulkan_1_0() 35 case spv::Capability::Image1D: in IsSupportGuaranteedVulkan_1_0() 36 case spv::Capability::SampledBuffer: in IsSupportGuaranteedVulkan_1_0() 37 case spv::Capability::ImageBuffer: in IsSupportGuaranteedVulkan_1_0() 38 case spv::Capability::ImageQuery: in IsSupportGuaranteedVulkan_1_0() 39 case spv::Capability::DerivativeControl: in IsSupportGuaranteedVulkan_1_0() [all …]
|
D | validate_annotation.cpp | 27 bool DecorationTakesIdParameters(spv::Decoration type) { in DecorationTakesIdParameters() 29 case spv::Decoration::UniformId: in DecorationTakesIdParameters() 30 case spv::Decoration::AlignmentId: in DecorationTakesIdParameters() 31 case spv::Decoration::MaxByteOffsetId: in DecorationTakesIdParameters() 32 case spv::Decoration::HlslCounterBufferGOOGLE: in DecorationTakesIdParameters() 40 bool IsMemberDecorationOnly(spv::Decoration dec) { in IsMemberDecorationOnly() 42 case spv::Decoration::RowMajor: in IsMemberDecorationOnly() 43 case spv::Decoration::ColMajor: in IsMemberDecorationOnly() 44 case spv::Decoration::MatrixStride: in IsMemberDecorationOnly() 55 bool IsNotMemberDecoration(spv::Decoration dec) { in IsNotMemberDecoration() [all …]
|
/external/swiftshader/third_party/SPIRV-Tools/source/val/ |
D | validate_capability.cpp | 32 switch (spv::Capability(capability)) { in IsSupportGuaranteedVulkan_1_0() 33 case spv::Capability::Matrix: in IsSupportGuaranteedVulkan_1_0() 34 case spv::Capability::Shader: in IsSupportGuaranteedVulkan_1_0() 35 case spv::Capability::InputAttachment: in IsSupportGuaranteedVulkan_1_0() 36 case spv::Capability::Sampled1D: in IsSupportGuaranteedVulkan_1_0() 37 case spv::Capability::Image1D: in IsSupportGuaranteedVulkan_1_0() 38 case spv::Capability::SampledBuffer: in IsSupportGuaranteedVulkan_1_0() 39 case spv::Capability::ImageBuffer: in IsSupportGuaranteedVulkan_1_0() 40 case spv::Capability::ImageQuery: in IsSupportGuaranteedVulkan_1_0() 41 case spv::Capability::DerivativeControl: in IsSupportGuaranteedVulkan_1_0() [all …]
|
D | validate_mode_setting.cpp | 30 if (!entry_point || spv::Op::OpFunction != entry_point->opcode()) { in ValidateEntryPoint() 37 const spv::ExecutionModel execution_model = in ValidateEntryPoint() 38 inst->GetOperandAs<spv::ExecutionModel>(0); in ValidateEntryPoint() 39 if (execution_model != spv::ExecutionModel::Kernel) { in ValidateEntryPoint() 51 if (!return_type || spv::Op::OpTypeVoid != return_type->opcode()) { in ValidateEntryPoint() 59 if (_.HasCapability(spv::Capability::Shader)) { in ValidateEntryPoint() 61 case spv::ExecutionModel::Fragment: in ValidateEntryPoint() 63 execution_modes->count(spv::ExecutionMode::OriginUpperLeft) && in ValidateEntryPoint() 64 execution_modes->count(spv::ExecutionMode::OriginLowerLeft)) { in ValidateEntryPoint() 71 (!execution_modes->count(spv::ExecutionMode::OriginUpperLeft) && in ValidateEntryPoint() [all …]
|
D | validate_annotation.cpp | 27 bool DecorationTakesIdParameters(spv::Decoration type) { in DecorationTakesIdParameters() 29 case spv::Decoration::UniformId: in DecorationTakesIdParameters() 30 case spv::Decoration::AlignmentId: in DecorationTakesIdParameters() 31 case spv::Decoration::MaxByteOffsetId: in DecorationTakesIdParameters() 32 case spv::Decoration::HlslCounterBufferGOOGLE: in DecorationTakesIdParameters() 40 bool IsMemberDecorationOnly(spv::Decoration dec) { in IsMemberDecorationOnly() 42 case spv::Decoration::RowMajor: in IsMemberDecorationOnly() 43 case spv::Decoration::ColMajor: in IsMemberDecorationOnly() 44 case spv::Decoration::MatrixStride: in IsMemberDecorationOnly() 55 bool IsNotMemberDecoration(spv::Decoration dec) { in IsNotMemberDecoration() [all …]
|
/external/swiftshader/src/Pipeline/ |
D | SpirvShaderInstructions.cpp | 23 const char *Spirv::OpcodeName(spv::Op opcode) in OpcodeName() 29 bool Spirv::IsStatement(spv::Op opcode) in IsStatement() 39 spv::HasResultAndType(opcode, &hasResult, &hasResultType); in IsStatement() 46 case spv::OpNop: in IsStatement() 47 case spv::OpStore: in IsStatement() 48 case spv::OpCopyMemory: in IsStatement() 49 case spv::OpCopyMemorySized: in IsStatement() 50 case spv::OpImageWrite: in IsStatement() 51 case spv::OpEmitVertex: in IsStatement() 52 case spv::OpEndPrimitive: in IsStatement() [all …]
|
D | SpirvShader.cpp | 49 spv::Op opcode = insn.opcode(); 53 case spv::OpEntryPoint: 55 spv::ExecutionModel executionModel = spv::ExecutionModel(insn.word(1)); 75 case spv::OpExecutionMode: 76 case spv::OpExecutionModeId: 80 case spv::OpDecorate: 83 auto decoration = static_cast<spv::Decoration>(insn.word(2)); 90 case spv::DecorationDescriptorSet: 93 case spv::DecorationBinding: 96 case spv::DecorationInputAttachmentIndex: [all …]
|
/external/angle/third_party/vulkan-deps/spirv-tools/src/test/ |
D | enum_set_test.cpp | 55 spv::Capability::Matrix, 56 spv::Capability::Shader, 57 spv::Capability::Geometry, 58 spv::Capability::Tessellation, 59 spv::Capability::Addresses, 60 spv::Capability::Linkage, 61 spv::Capability::Kernel, 62 spv::Capability::Vector16, 63 spv::Capability::Float16Buffer, 64 spv::Capability::Float16, [all …]
|
D | text_to_binary.extension_test.cpp | 412 spv::Op::OpExtInstImport, {1}, in TEST_F() 414 MakeInstruction(spv::Op::OpExtInst, {2, 3, 1, 1, 4, 5})})}, in TEST_F() 431 {MakeInstruction(spv::Op::OpExtInstImport, {1}, in TEST_F() 433 MakeInstruction(spv::Op::OpExtInst, {2, 3, 1, 1, 4, 5, 6})})}, in TEST_F() 436 {MakeInstruction(spv::Op::OpExtInstImport, {1}, in TEST_F() 438 MakeInstruction(spv::Op::OpExtInst, {2, 3, 1, 2, 4, 5, 6})})}, in TEST_F() 441 {MakeInstruction(spv::Op::OpExtInstImport, {1}, in TEST_F() 443 MakeInstruction(spv::Op::OpExtInst, {2, 3, 1, 3, 4, 5, 6})})}, in TEST_F() 446 {MakeInstruction(spv::Op::OpExtInstImport, {1}, in TEST_F() 448 MakeInstruction(spv::Op::OpExtInst, {2, 3, 1, 4, 4, 5, 6})})}, in TEST_F() [all …]
|
D | enum_string_mapping_test.cpp | 37 ::testing::TestWithParam<std::pair<spv::Capability, std::string>>; 62 const std::pair<spv::Capability, std::string>& param = GetParam(); in TEST_P() 63 const spv::Capability capability = param.first; in TEST_P() 102 ValuesIn(std::vector<std::pair<spv::Capability, std::string>>( 103 {{spv::Capability::Matrix, "Matrix"}, 104 {spv::Capability::Shader, "Shader"}, 105 {spv::Capability::Geometry, "Geometry"}, 106 {spv::Capability::Tessellation, "Tessellation"}, 107 {spv::Capability::Addresses, "Addresses"}, 108 {spv::Capability::Linkage, "Linkage"}, [all …]
|
/external/swiftshader/third_party/SPIRV-Tools/test/ |
D | text_to_binary.extension_test.cpp | 412 spv::Op::OpExtInstImport, {1}, in TEST_F() 414 MakeInstruction(spv::Op::OpExtInst, {2, 3, 1, 1, 4, 5})})}, in TEST_F() 431 {MakeInstruction(spv::Op::OpExtInstImport, {1}, in TEST_F() 433 MakeInstruction(spv::Op::OpExtInst, {2, 3, 1, 1, 4, 5, 6})})}, in TEST_F() 436 {MakeInstruction(spv::Op::OpExtInstImport, {1}, in TEST_F() 438 MakeInstruction(spv::Op::OpExtInst, {2, 3, 1, 2, 4, 5, 6})})}, in TEST_F() 441 {MakeInstruction(spv::Op::OpExtInstImport, {1}, in TEST_F() 443 MakeInstruction(spv::Op::OpExtInst, {2, 3, 1, 3, 4, 5, 6})})}, in TEST_F() 446 {MakeInstruction(spv::Op::OpExtInstImport, {1}, in TEST_F() 448 MakeInstruction(spv::Op::OpExtInst, {2, 3, 1, 4, 4, 5, 6})})}, in TEST_F() [all …]
|
D | enum_string_mapping_test.cpp | 37 ::testing::TestWithParam<std::pair<spv::Capability, std::string>>; 62 const std::pair<spv::Capability, std::string>& param = GetParam(); in TEST_P() 63 const spv::Capability capability = param.first; in TEST_P() 102 ValuesIn(std::vector<std::pair<spv::Capability, std::string>>( 103 {{spv::Capability::Matrix, "Matrix"}, 104 {spv::Capability::Shader, "Shader"}, 105 {spv::Capability::Geometry, "Geometry"}, 106 {spv::Capability::Tessellation, "Tessellation"}, 107 {spv::Capability::Addresses, "Addresses"}, 108 {spv::Capability::Linkage, "Linkage"}, [all …]
|
/external/angle/third_party/vulkan-deps/glslang/src/SPIRV/ |
D | SPVRemapper.cpp | 43 namespace spv { namespace 60 const spv::Op opCode = asOpCode(word); in asOpCodeHash() 65 case spv::OpExtInst: in asOpCodeHash() 74 spirvbin_t::range_t spirvbin_t::literalRange(spv::Op opCode) const in literalRange() 79 case spv::OpTypeFloat: // fall through... in literalRange() 80 case spv::OpTypePointer: return range_t(2, 3); in literalRange() 81 case spv::OpTypeInt: return range_t(2, 4); in literalRange() 84 case spv::OpTypeSampler: return range_t(3, 8); in literalRange() 85 case spv::OpTypeVector: // fall through in literalRange() 86 case spv::OpTypeMatrix: // ... in literalRange() [all …]
|
/external/deqp-deps/glslang/SPIRV/ |
D | SPVRemapper.cpp | 43 namespace spv { namespace 60 const spv::Op opCode = asOpCode(word); in asOpCodeHash() 65 case spv::OpExtInst: in asOpCodeHash() 74 spirvbin_t::range_t spirvbin_t::literalRange(spv::Op opCode) const in literalRange() 79 case spv::OpTypeFloat: // fall through... in literalRange() 80 case spv::OpTypePointer: return range_t(2, 3); in literalRange() 81 case spv::OpTypeInt: return range_t(2, 4); in literalRange() 84 case spv::OpTypeSampler: return range_t(3, 8); in literalRange() 85 case spv::OpTypeVector: // fall through in literalRange() 86 case spv::OpTypeMatrix: // ... in literalRange() [all …]
|