Searched refs:type_instr (Results 1 – 6 of 6) sorted by relevance
1203 opt::Instruction* type_instr = ir_context->get_def_use_mgr()->GetDef(type_id); in CanCreateConstant() local1204 assert(type_instr != nullptr && "The type must exist."); in CanCreateConstant()1205 assert(spvOpcodeGeneratesType(type_instr->opcode()) && in CanCreateConstant()1207 switch (type_instr->opcode()) { in CanCreateConstant()1216 type_instr->GetSingleWordInOperand(0)); in CanCreateConstant()1221 for (uint32_t index = 0; index < type_instr->NumInOperands(); index++) { in CanCreateConstant()1223 type_instr->GetSingleWordInOperand(index))) { in CanCreateConstant()
1262 opt::Instruction* type_instr = ir_context->get_def_use_mgr()->GetDef(type_id); in CanCreateConstant() local1263 assert(type_instr != nullptr && "The type must exist."); in CanCreateConstant()1264 assert(spvOpcodeGeneratesType(type_instr->opcode()) && in CanCreateConstant()1266 switch (type_instr->opcode()) { in CanCreateConstant()1275 type_instr->GetSingleWordInOperand(0)); in CanCreateConstant()1280 for (uint32_t index = 0; index < type_instr->NumInOperands(); index++) { in CanCreateConstant()1282 type_instr->GetSingleWordInOperand(index))) { in CanCreateConstant()
750 Instruction* type_instr = vstate.FindDef(type_id); in CheckDecorationsOfEntryPoints() local751 if (type_instr && SpvOpTypeStruct == type_instr->opcode() && in CheckDecorationsOfEntryPoints()765 if (type_instr && SpvOpTypeStruct == type_instr->opcode()) { in CheckDecorationsOfEntryPoints()
745 Instruction* type_instr = vstate.FindDef(type_id); in CheckDecorationsOfEntryPoints() local746 if (type_instr && SpvOpTypeStruct == type_instr->opcode() && in CheckDecorationsOfEntryPoints()