Home
last modified time | relevance | path

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

/aosp_15_r20/external/swiftshader/third_party/SPIRV-Tools/source/val/
H A 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() == spv::Op::OpTypeArray); in ValidateCompositeConstruct()
285 auto size = _.FindDef(array_inst->word(3)); in ValidateCompositeConstruct()
292 if (!_.EvalConstantValUint64(array_inst->word(3), &array_size)) { in ValidateCompositeConstruct()
302 const uint32_t result_component_type = array_inst->word(2); in ValidateCompositeConstruct()
H A Dvalidate_decorations.cpp576 auto array_inst = inst; in checkLayout() local
578 while (array_inst->opcode() == spv::Op::OpTypeArray || in checkLayout()
579 array_inst->opcode() == spv::Op::OpTypeRuntimeArray) { in checkLayout()
580 const auto typeId = array_inst->word(2); in checkLayout()
584 for (auto& decoration : vstate.id_decorations(array_inst->id())) { in checkLayout()
600 if (array_inst->opcode() == spv::Op::OpTypeArray) { in checkLayout()
602 vstate.EvalInt32IfConst(array_inst->word(3)); in checkLayout()
629 array_inst = element_inst; in checkLayout()
631 ? getScalarAlignment(array_inst->id(), vstate) in checkLayout()
632 : getBaseAlignment(array_inst->id(), blockRules, in checkLayout()
/aosp_15_r20/external/angle/third_party/spirv-tools/src/source/val/
H A 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() == spv::Op::OpTypeArray); in ValidateCompositeConstruct()
285 auto size = _.FindDef(array_inst->word(3)); in ValidateCompositeConstruct()
292 if (!_.EvalConstantValUint64(array_inst->word(3), &array_size)) { in ValidateCompositeConstruct()
302 const uint32_t result_component_type = array_inst->word(2); in ValidateCompositeConstruct()
H A Dvalidate_decorations.cpp559 auto array_inst = inst; in checkLayout() local
561 while (array_inst->opcode() == spv::Op::OpTypeArray || in checkLayout()
562 array_inst->opcode() == spv::Op::OpTypeRuntimeArray) { in checkLayout()
563 const auto typeId = array_inst->word(2); in checkLayout()
567 for (auto& decoration : vstate.id_decorations(array_inst->id())) { in checkLayout()
583 if (array_inst->opcode() == spv::Op::OpTypeArray) { in checkLayout()
585 vstate.EvalInt32IfConst(array_inst->word(3)); in checkLayout()
620 array_inst = element_inst; in checkLayout()
622 ? getScalarAlignment(array_inst->id(), vstate) in checkLayout()
623 : getBaseAlignment(array_inst->id(), blockRules, in checkLayout()
/aosp_15_r20/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() == spv::Op::OpTypeArray); 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.cpp576 auto array_inst = inst; in checkLayout() local
578 while (array_inst->opcode() == spv::Op::OpTypeArray || in checkLayout()
579 array_inst->opcode() == spv::Op::OpTypeRuntimeArray) { in checkLayout()
580 const auto typeId = array_inst->word(2); in checkLayout()
584 for (auto& decoration : vstate.id_decorations(array_inst->id())) { in checkLayout()
600 if (array_inst->opcode() == spv::Op::OpTypeArray) { in checkLayout()
602 vstate.EvalInt32IfConst(array_inst->word(3)); in checkLayout()
629 array_inst = element_inst; in checkLayout()
631 ? getScalarAlignment(array_inst->id(), vstate) in checkLayout()
632 : getBaseAlignment(array_inst->id(), blockRules, in checkLayout()