Lines Matching refs:inst
298 pub fn update_encoding(&mut self, inst: ir::Inst, isa: &dyn TargetIsa) -> Result<(), Legalize> { in update_encoding()
302 self.encode(inst, isa).map(|e| self.encodings[inst] = e) in update_encoding()
308 pub fn encode(&self, inst: ir::Inst, isa: &dyn TargetIsa) -> Result<Encoding, Legalize> { in encode()
312 isa.encode(&self, &self.dfg[inst], self.dfg.ctrl_typevar(inst)) in encode()
325 pub fn change_branch_destination(&mut self, inst: Inst, new_dest: Block) { in change_branch_destination()
326 match self.dfg[inst].branch_destination_mut() { in change_branch_destination()
337 pub fn rewrite_branch_destination(&mut self, inst: Inst, old_dest: Block, new_dest: Block) { in rewrite_branch_destination()
338 match self.dfg.analyze_branch(inst) { in rewrite_branch_destination()
341 self.change_branch_destination(inst, new_dest); in rewrite_branch_destination()
353 match &mut self.dfg[inst] { in rewrite_branch_destination()
359 self.dfg.display_inst(inst, None) in rewrite_branch_destination()
377 let mut inst_iter = inst_iter.skip_while(|&inst| !dfg[inst].opcode().is_branch()); in is_block_basic()
480 self.iter.next().map(|inst| { in next()
481 self.divert.apply(&self.func.dfg[inst]); in next()
484 .byte_size(self.encodings[inst], inst, &self.divert, self.func); in next()
487 (offset, inst, byte_size) in next()