Home
last modified time | relevance | path

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

/external/swiftshader/third_party/SPIRV-Tools/source/opt/
Dfold_spec_constant_op_and_composite_pass.cpp115 Instruction* folded_inst = nullptr; in ProcessOpSpecConstantOp() local
123 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()
Dfold.cpp230 Instruction* folded_inst = FoldInstructionToConstant(inst, identity_map); in FoldInstructionInternal() local
231 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() local
677 return folded_inst; in FoldInstructionToConstant()
697 Instruction* folded_inst(inst); in FoldInstruction() local
698 while (folded_inst->opcode() != SpvOpCopyObject && in FoldInstruction()
699 FoldInstructionInternal(&*folded_inst)) { in FoldInstruction()
Dccp_pass.cpp138 Instruction* folded_inst = in VisitAssignment() local
141 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()
/external/deqp-deps/SPIRV-Tools/source/opt/
Dfold_spec_constant_op_and_composite_pass.cpp115 Instruction* folded_inst = nullptr; in ProcessOpSpecConstantOp() local
123 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()
Dfold.cpp212 Instruction* folded_inst = FoldInstructionToConstant(inst, identity_map); in FoldInstructionInternal() local
213 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() local
658 return folded_inst; in FoldInstructionToConstant()
678 Instruction* folded_inst(inst); in FoldInstruction() local
679 while (folded_inst->opcode() != SpvOpCopyObject && in FoldInstruction()
680 FoldInstructionInternal(&*folded_inst)) { in FoldInstruction()
Dccp_pass.cpp138 Instruction* folded_inst = in VisitAssignment() local
141 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()