Home
last modified time | relevance | path

Searched refs:composite_type (Results 1 – 25 of 25) sorted by relevance

/external/angle/third_party/spirv-tools/src/source/fuzz/
Dtransformation_composite_construct.cpp57 auto composite_type = in IsApplicable() local
60 if (!fuzzerutil::IsCompositeType(composite_type)) { in IsApplicable()
67 if (composite_type->AsArray() && in IsApplicable()
69 *composite_type->AsArray())) { in IsApplicable()
72 if (composite_type->AsMatrix() && in IsApplicable()
74 *composite_type->AsMatrix())) { in IsApplicable()
77 if (composite_type->AsStruct() && in IsApplicable()
79 *composite_type->AsStruct())) { in IsApplicable()
82 if (composite_type->AsVector() && in IsApplicable()
84 *composite_type->AsVector())) { in IsApplicable()
[all …]
Dfuzzer_pass.cpp455 opt::analysis::Type* composite_type = GetIRContext()->get_type_mgr()->GetType( in FindOrCreateCompositeConstant() local
458 if (composite_type->AsArray()) { in FindOrCreateCompositeConstant()
460 composite_type->AsArray(), constants); in FindOrCreateCompositeConstant()
461 } else if (composite_type->AsMatrix()) { in FindOrCreateCompositeConstant()
463 composite_type->AsMatrix(), constants); in FindOrCreateCompositeConstant()
464 } else if (composite_type->AsStruct()) { in FindOrCreateCompositeConstant()
466 composite_type->AsStruct(), constants); in FindOrCreateCompositeConstant()
467 } else if (composite_type->AsVector()) { in FindOrCreateCompositeConstant()
469 composite_type->AsVector(), constants); in FindOrCreateCompositeConstant()
Dtransformation_composite_extract.cpp67 auto composite_type = in IsApplicable() local
69 if (!composite_type) { in IsApplicable()
Dfact_manager.cpp308 auto composite_type = in AddFact() local
312 context, composite_type, in AddFact()
975 auto composite_type = in ComputeClosureOfFacts() local
979 if (composite_type->AsArray()) { in ComputeClosureOfFacts()
988 } else if (composite_type->AsMatrix()) { in ComputeClosureOfFacts()
990 composite_type->AsMatrix()->element_count(); in ComputeClosureOfFacts()
991 } else if (composite_type->AsStruct()) { in ComputeClosureOfFacts()
995 assert(composite_type->AsVector()); in ComputeClosureOfFacts()
997 composite_type->AsVector()->element_count(); in ComputeClosureOfFacts()
/external/swiftshader/third_party/SPIRV-Tools/source/fuzz/
Dtransformation_composite_construct.cpp57 auto composite_type = in IsApplicable() local
60 if (!fuzzerutil::IsCompositeType(composite_type)) { in IsApplicable()
67 if (composite_type->AsArray() && !ComponentsForArrayConstructionAreOK( in IsApplicable()
68 context, *composite_type->AsArray())) { in IsApplicable()
71 if (composite_type->AsMatrix() && !ComponentsForMatrixConstructionAreOK( in IsApplicable()
72 context, *composite_type->AsMatrix())) { in IsApplicable()
75 if (composite_type->AsStruct() && !ComponentsForStructConstructionAreOK( in IsApplicable()
76 context, *composite_type->AsStruct())) { in IsApplicable()
79 if (composite_type->AsVector() && !ComponentsForVectorConstructionAreOK( in IsApplicable()
80 context, *composite_type->AsVector())) { in IsApplicable()
[all …]
Dfuzzer_pass.cpp403 opt::analysis::Type* composite_type = GetIRContext()->get_type_mgr()->GetType( in FindOrCreateCompositeConstant() local
406 if (composite_type->AsArray()) { in FindOrCreateCompositeConstant()
408 composite_type->AsArray(), constants); in FindOrCreateCompositeConstant()
409 } else if (composite_type->AsMatrix()) { in FindOrCreateCompositeConstant()
411 composite_type->AsMatrix(), constants); in FindOrCreateCompositeConstant()
412 } else if (composite_type->AsStruct()) { in FindOrCreateCompositeConstant()
414 composite_type->AsStruct(), constants); in FindOrCreateCompositeConstant()
415 } else if (composite_type->AsVector()) { in FindOrCreateCompositeConstant()
417 composite_type->AsVector(), constants); in FindOrCreateCompositeConstant()
Dfuzzer_pass_construct_composites.cpp107 auto composite_type = GetIRContext()->get_type_mgr()->GetType( in Apply() local
109 if (auto array_type = composite_type->AsArray()) { in Apply()
112 } else if (auto matrix_type = composite_type->AsMatrix()) { in Apply()
115 } else if (auto struct_type = composite_type->AsStruct()) { in Apply()
119 auto vector_type = composite_type->AsVector(); in Apply()
Dfact_manager.cpp289 auto composite_type = in AddFact() local
293 context, composite_type, in AddFact()
666 auto composite_type = in ComputeClosureOfFacts() local
670 if (composite_type->AsArray()) { in ComputeClosureOfFacts()
679 } else if (composite_type->AsMatrix()) { in ComputeClosureOfFacts()
681 composite_type->AsMatrix()->element_count(); in ComputeClosureOfFacts()
682 } else if (composite_type->AsStruct()) { in ComputeClosureOfFacts()
686 assert(composite_type->AsVector()); in ComputeClosureOfFacts()
688 composite_type->AsVector()->element_count(); in ComputeClosureOfFacts()
Dtransformation_composite_extract.cpp68 auto composite_type = in IsApplicable() local
70 if (!composite_type) { in IsApplicable()
/external/deqp-deps/SPIRV-Tools/source/fuzz/
Dtransformation_composite_construct.cpp57 auto composite_type = in IsApplicable() local
60 if (!fuzzerutil::IsCompositeType(composite_type)) { in IsApplicable()
67 if (composite_type->AsArray() && in IsApplicable()
69 *composite_type->AsArray())) { in IsApplicable()
72 if (composite_type->AsMatrix() && in IsApplicable()
74 *composite_type->AsMatrix())) { in IsApplicable()
77 if (composite_type->AsStruct() && in IsApplicable()
79 *composite_type->AsStruct())) { in IsApplicable()
82 if (composite_type->AsVector() && in IsApplicable()
84 *composite_type->AsVector())) { in IsApplicable()
[all …]
Dfuzzer_pass.cpp455 opt::analysis::Type* composite_type = GetIRContext()->get_type_mgr()->GetType( in FindOrCreateCompositeConstant() local
458 if (composite_type->AsArray()) { in FindOrCreateCompositeConstant()
460 composite_type->AsArray(), constants); in FindOrCreateCompositeConstant()
461 } else if (composite_type->AsMatrix()) { in FindOrCreateCompositeConstant()
463 composite_type->AsMatrix(), constants); in FindOrCreateCompositeConstant()
464 } else if (composite_type->AsStruct()) { in FindOrCreateCompositeConstant()
466 composite_type->AsStruct(), constants); in FindOrCreateCompositeConstant()
467 } else if (composite_type->AsVector()) { in FindOrCreateCompositeConstant()
469 composite_type->AsVector(), constants); in FindOrCreateCompositeConstant()
Dtransformation_composite_extract.cpp67 auto composite_type = in IsApplicable() local
69 if (!composite_type) { in IsApplicable()
Dfact_manager.cpp308 auto composite_type = in AddFact() local
312 context, composite_type, in AddFact()
976 auto composite_type = in ComputeClosureOfFacts() local
980 if (composite_type->AsArray()) { in ComputeClosureOfFacts()
989 } else if (composite_type->AsMatrix()) { in ComputeClosureOfFacts()
991 composite_type->AsMatrix()->element_count(); in ComputeClosureOfFacts()
992 } else if (composite_type->AsStruct()) { in ComputeClosureOfFacts()
996 assert(composite_type->AsVector()); in ComputeClosureOfFacts()
998 composite_type->AsVector()->element_count(); in ComputeClosureOfFacts()
/external/angle/third_party/spirv-tools/src/source/opt/
Dreduce_load_size.cpp68 analysis::Type* composite_type = type_mgr->GetType(composite_inst->type_id()); in ReplaceExtract() local
69 if (composite_type->kind() == analysis::Type::kVector || in ReplaceExtract()
70 composite_type->kind() == analysis::Type::kMatrix) { in ReplaceExtract()
Dfolding_rules.cpp1441 analysis::Type* composite_type = type_mgr->GetType(cinst->type_id()); in CompositeConstructFeedingExtract() local
1442 if (composite_type->AsVector() == nullptr) { in CompositeConstructFeedingExtract()
/external/deqp-deps/SPIRV-Tools/source/opt/
Dreduce_load_size.cpp68 analysis::Type* composite_type = type_mgr->GetType(composite_inst->type_id()); in ReplaceExtract() local
69 if (composite_type->kind() == analysis::Type::kVector || in ReplaceExtract()
70 composite_type->kind() == analysis::Type::kMatrix) { in ReplaceExtract()
Dfolding_rules.cpp1441 analysis::Type* composite_type = type_mgr->GetType(cinst->type_id()); in CompositeConstructFeedingExtract() local
1442 if (composite_type->AsVector() == nullptr) { in CompositeConstructFeedingExtract()
/external/swiftshader/third_party/SPIRV-Tools/source/opt/
Dreduce_load_size.cpp68 analysis::Type* composite_type = type_mgr->GetType(composite_inst->type_id()); in ReplaceExtract() local
69 if (composite_type->kind() == analysis::Type::kVector || in ReplaceExtract()
70 composite_type->kind() == analysis::Type::kMatrix) { in ReplaceExtract()
Dfolding_rules.cpp1441 analysis::Type* composite_type = type_mgr->GetType(cinst->type_id()); in CompositeConstructFeedingExtract() local
1442 if (composite_type->AsVector() == nullptr) { in CompositeConstructFeedingExtract()
/external/swiftshader/third_party/SPIRV-Tools/source/val/
Dvalidate_composites.cpp401 const uint32_t composite_type = _.GetOperandTypeId(inst, 3); in ValidateCompositeInsert() local
403 if (result_type != composite_type) { in ValidateCompositeInsert()
/external/deqp-deps/SPIRV-Tools/source/val/
Dvalidate_composites.cpp401 const uint32_t composite_type = _.GetOperandTypeId(inst, 3); in ValidateCompositeInsert() local
403 if (result_type != composite_type) { in ValidateCompositeInsert()
Dvalidate_extensions.cpp2337 auto composite_type = in ValidateExtInst() local
2339 if (composite_type != OpenCLDebugInfo100Class && in ValidateExtInst()
2340 composite_type != OpenCLDebugInfo100Structure) { in ValidateExtInst()
2347 composite_type = in ValidateExtInst()
2349 if (composite_type != OpenCLDebugInfo100Class && in ValidateExtInst()
2350 composite_type != OpenCLDebugInfo100Structure) { in ValidateExtInst()
/external/angle/third_party/spirv-tools/src/source/val/
Dvalidate_composites.cpp401 const uint32_t composite_type = _.GetOperandTypeId(inst, 3); in ValidateCompositeInsert() local
403 if (result_type != composite_type) { in ValidateCompositeInsert()
Dvalidate_extensions.cpp2337 auto composite_type = in ValidateExtInst() local
2339 if (composite_type != OpenCLDebugInfo100Class && in ValidateExtInst()
2340 composite_type != OpenCLDebugInfo100Structure) { in ValidateExtInst()
2347 composite_type = in ValidateExtInst()
2349 if (composite_type != OpenCLDebugInfo100Class && in ValidateExtInst()
2350 composite_type != OpenCLDebugInfo100Structure) { in ValidateExtInst()
/external/deqp/external/vulkancts/modules/vulkan/spirv_assembly/
DvktSpvAsmInstructionTests.cpp18465 const string composite_type = "${customType}vec" + widthStr; in createVectorCompositeCases() local
18470 params["compositeDecl"] = composite_type + " = OpTypeVector ${customType} " + widthStr +"\n"; in createVectorCompositeCases()
18471 params["compositeType"] = composite_type; in createVectorCompositeCases()
18473 …params["compositeConstruct"] = "%instance = OpCompositeConstruct " + composite_type + repeatStrin… in createVectorCompositeCases()