Searched refs:array_inst (Results 1 – 4 of 4) sorted by relevance
281 const Instruction* const array_inst = _.FindDef(result_type); in ValidateCompositeConstruct() local282 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()
518 auto array_inst = inst; in checkLayout() local520 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()
519 auto array_inst = inst; in checkLayout() local521 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()