Home
last modified time | relevance | path

Searched refs:array_inst (Results 1 – 4 of 4) sorted by relevance

/external/swiftshader/third_party/SPIRV-Tools/source/val/
Dvalidate_composites.cpp281 const Instruction* const array_inst = _.FindDef(result_type); in ValidateCompositeConstruct() local
282 assert(array_inst); in ValidateCompositeConstruct()
283 assert(array_inst->opcode() == SpvOpTypeArray); in ValidateCompositeConstruct()
285 auto size = _.FindDef(array_inst->word(3)); in ValidateCompositeConstruct()
292 if (!_.GetConstantValUint64(array_inst->word(3), &array_size)) { in ValidateCompositeConstruct()
302 const uint32_t result_component_type = array_inst->word(2); in ValidateCompositeConstruct()
Dvalidate_decorations.cpp518 auto array_inst = inst; in checkLayout() local
520 while (array_inst->opcode() == SpvOpTypeArray || in checkLayout()
521 array_inst->opcode() == SpvOpTypeRuntimeArray) { in checkLayout()
522 const auto typeId = array_inst->word(2); in checkLayout()
526 for (auto& decoration : vstate.id_decorations(array_inst->id())) { in checkLayout()
542 if (array_inst->opcode() == SpvOpTypeArray) { in checkLayout()
544 vstate.EvalInt32IfConst(array_inst->word(3)); in checkLayout()
564 array_inst = element_inst; in checkLayout()
566 ? getScalarAlignment(array_inst->id(), vstate) in checkLayout()
567 : getBaseAlignment(array_inst->id(), blockRules, in checkLayout()
/external/deqp-deps/SPIRV-Tools/source/val/
Dvalidate_composites.cpp281 const Instruction* const array_inst = _.FindDef(result_type); in ValidateCompositeConstruct() local
282 assert(array_inst); in ValidateCompositeConstruct()
283 assert(array_inst->opcode() == SpvOpTypeArray); in ValidateCompositeConstruct()
285 auto size = _.FindDef(array_inst->word(3)); in ValidateCompositeConstruct()
292 if (!_.GetConstantValUint64(array_inst->word(3), &array_size)) { in ValidateCompositeConstruct()
302 const uint32_t result_component_type = array_inst->word(2); in ValidateCompositeConstruct()
Dvalidate_decorations.cpp519 auto array_inst = inst; in checkLayout() local
521 while (array_inst->opcode() == SpvOpTypeArray || in checkLayout()
522 array_inst->opcode() == SpvOpTypeRuntimeArray) { in checkLayout()
523 const auto typeId = array_inst->word(2); in checkLayout()
527 for (auto& decoration : vstate.id_decorations(array_inst->id())) { in checkLayout()
543 if (array_inst->opcode() == SpvOpTypeArray) { in checkLayout()
545 vstate.EvalInt32IfConst(array_inst->word(3)); in checkLayout()
566 array_inst = element_inst; in checkLayout()
568 ? getScalarAlignment(array_inst->id(), vstate) in checkLayout()
569 : getBaseAlignment(array_inst->id(), blockRules, in checkLayout()