Searched refs:folded_inst (Results 1 – 6 of 6) sorted by relevance
115 Instruction* folded_inst = nullptr; in ProcessOpSpecConstantOp() local123 folded_inst = DoCompositeExtract(pos); in ProcessOpSpecConstantOp()126 folded_inst = DoVectorShuffle(pos); in ProcessOpSpecConstantOp()137 folded_inst = DoComponentWiseOperation(pos); in ProcessOpSpecConstantOp()140 if (!folded_inst) return false; in ProcessOpSpecConstantOp()144 uint32_t new_id = folded_inst->result_id(); in ProcessOpSpecConstantOp()
230 Instruction* folded_inst = FoldInstructionToConstant(inst, identity_map); in FoldInstructionInternal() local231 if (folded_inst != nullptr) { in FoldInstructionInternal()233 inst->SetInOperands({{SPV_OPERAND_TYPE_ID, {folded_inst->result_id()}}}); in FoldInstructionInternal()675 Instruction* folded_inst = in FoldInstructionToConstant() local677 return folded_inst; in FoldInstructionToConstant()697 Instruction* folded_inst(inst); in FoldInstruction() local698 while (folded_inst->opcode() != SpvOpCopyObject && in FoldInstruction()699 FoldInstructionInternal(&*folded_inst)) { in FoldInstruction()
138 Instruction* folded_inst = in VisitAssignment() local141 if (folded_inst != nullptr) { in VisitAssignment()144 assert(folded_inst->IsConstant() && "CCP is only interested in constant."); in VisitAssignment()145 values_[instr->result_id()] = folded_inst->result_id(); in VisitAssignment()
212 Instruction* folded_inst = FoldInstructionToConstant(inst, identity_map); in FoldInstructionInternal() local213 if (folded_inst != nullptr) { in FoldInstructionInternal()215 inst->SetInOperands({{SPV_OPERAND_TYPE_ID, {folded_inst->result_id()}}}); in FoldInstructionInternal()656 Instruction* folded_inst = in FoldInstructionToConstant() local658 return folded_inst; in FoldInstructionToConstant()678 Instruction* folded_inst(inst); in FoldInstruction() local679 while (folded_inst->opcode() != SpvOpCopyObject && in FoldInstruction()680 FoldInstructionInternal(&*folded_inst)) { in FoldInstruction()