Lines Matching refs:inst
34 // |inst| - the instruction to be simplified.
40 // A folding rule returns true if |inst| can be simplified using this rule. If
41 // the instruction can be simplified, then |inst| is changed to the simplified
42 // instruction. Otherwise, |inst| remains the same.
45 // important to note that if |inst| can be folded to the result of an
46 // instruction that feed it, then |inst| should be changed to an OpCopyObject
56 IRContext* context, Instruction* inst,
66 const FoldingRuleSet& GetRulesForInstruction(Instruction* inst) const {
67 if (inst->opcode() != spv::Op::OpExtInst) {
68 auto it = rules_.find(inst->opcode());
73 uint32_t ext_inst_id = inst->GetSingleWordInOperand(0);
74 uint32_t ext_opcode = inst->GetSingleWordInOperand(1);