• Home
  • Raw
  • Download

Lines Matching refs:BBI

123       for (auto BBI = MBB.instr_begin(); BBI != MBB.instr_end(); ++BBI) {  in removeRedundantLIs()  local
126 if (InstrsToErase.find(&*BBI) != InstrsToErase.end()) in removeRedundantLIs()
129 unsigned Opc = BBI->getOpcode(); in removeRedundantLIs()
135 if (!BBI->getOperand(1).isImm()) in removeRedundantLIs()
137 assert(BBI->getOperand(0).isReg() && in removeRedundantLIs()
140 LLVM_DEBUG(dbgs() << "Scanning after load immediate: "; BBI->dump();); in removeRedundantLIs()
142 Register Reg = BBI->getOperand(0).getReg(); in removeRedundantLIs()
143 int64_t Imm = BBI->getOperand(1).getImm(); in removeRedundantLIs()
145 if (BBI->getOperand(0).isDead()) { in removeRedundantLIs()
146 DeadOrKillToUnset = &BBI->getOperand(0); in removeRedundantLIs()
148 << " from load immediate " << *BBI in removeRedundantLIs()
153 for (auto AfterBBI = std::next(BBI); AfterBBI != MBB.instr_end(); in removeRedundantLIs()
266 for (auto BBI = MBB.instr_begin(); BBI != MBB.instr_end(); ++BBI) { in addLinkerOpt() local
268 if (isGOTPLDpc(*BBI)) { in addLinkerOpt()
269 GOTDefUsePair CurrentPair{BBI, MachineBasicBlock::iterator(), in addLinkerOpt()
270 BBI->getOperand(0).getReg(), in addLinkerOpt()
287 if (!BBI->readsRegister(Pair.DefReg, TRI) && in addLinkerOpt()
288 !BBI->modifiesRegister(Pair.DefReg, TRI)) in addLinkerOpt()
294 hasPCRelativeForm(*BBI) ? &BBI->getOperand(2) : nullptr; in addLinkerOpt()
299 Pair.UseInst = BBI; in addLinkerOpt()
300 Pair.UseReg = BBI->getOperand(0).getReg(); in addLinkerOpt()
315 MachineBasicBlock::iterator BBI = Pair->DefInst; in addLinkerOpt() local
316 ++BBI; in addLinkerOpt()
317 for (; BBI != Pair->UseInst; ++BBI) { in addLinkerOpt()
318 if (BBI->readsRegister(Pair->UseReg, TRI) || in addLinkerOpt()
319 BBI->modifiesRegister(Pair->UseReg, TRI)) { in addLinkerOpt()
372 for (MachineInstr &BBI : MBB.instrs()) { in removeAccPrimeUnprime()
373 unsigned Opc = BBI.getOpcode(); in removeAccPrimeUnprime()
377 Register Acc = BBI.getOperand(0).getReg(); in removeAccPrimeUnprime()
380 Candidates[Acc - PPC::ACC0] = &BBI; in removeAccPrimeUnprime()
385 Register Acc = BBI.getOperand(0).getReg(); in removeAccPrimeUnprime()
390 InstrsToErase.insert(&BBI); in removeAccPrimeUnprime()
396 for (MachineOperand &Operand : BBI.operands()) { in removeAccPrimeUnprime()