| /external/llvm/lib/Target/SystemZ/ |
| SystemZLongBranch.cpp | 273 MachineBasicBlock *MBB = MF->getBlockNumbered(I); 277 Block.Alignment = MBB->getAlignment(); 280 MachineBasicBlock::iterator MI = MBB->begin(); 281 MachineBasicBlock::iterator End = MBB->end(); 349 MachineBasicBlock *MBB = MI->getParent(); 351 BuildMI(*MBB, MI, DL, TII->get(AddOpcode)) 355 MachineInstr *BRCL = BuildMI(*MBB, MI, DL, TII->get(SystemZ::BRCL)) 368 MachineBasicBlock *MBB = MI->getParent(); 370 BuildMI(*MBB, MI, DL, TII->get(CompareOpcode)) 373 MachineInstr *BRCL = BuildMI(*MBB, MI, DL, TII->get(SystemZ::BRCL) [all...] |
| SystemZShortenInst.cpp | 36 bool processBlock(MachineBasicBlock &MBB); 174 // Process all instructions in MBB. Return true if something changed. 175 bool SystemZShortenInst::processBlock(MachineBasicBlock &MBB) { 178 // Set up the set of live registers at the end of MBB (live out) 180 LiveRegs.addLiveOuts(&MBB); 183 for (auto MBBI = MBB.rbegin(), MBBE = MBB.rend(); MBBI != MBBE; ++MBBI) { 273 for (auto &MBB : F) 274 Changed |= processBlock(MBB);
|
| SystemZISelLowering.cpp | [all...] |
| SystemZElimCompare.cpp | 66 bool processBlock(MachineBasicBlock &MBB); 92 // Return true if CC is live out of MBB. 93 static bool isCCLiveOut(MachineBasicBlock &MBB) { 94 for (auto SI = MBB.succ_begin(), SE = MBB.succ_end(); SI != SE; ++SI) 342 MachineBasicBlock &MBB = *Compare->getParent(); 343 MachineBasicBlock::iterator MBBI = Compare, MBBE = MBB.begin(); 436 // Process all comparison instructions in MBB. Return true if something 438 bool SystemZElimCompare::processBlock(MachineBasicBlock &MBB) { 444 bool CompleteCCUsers = !isCCLiveOut(MBB); [all...] |
| /external/llvm/lib/CodeGen/ |
| TailDuplication.cpp | 120 bool TailDuplicateAndUpdate(MachineBasicBlock *MBB, 124 void RemoveDeadBlock(MachineBasicBlock *MBB); 164 MachineBasicBlock *MBB = &*I; 165 SmallSetVector<MachineBasicBlock*, 8> Preds(MBB->pred_begin(), 166 MBB->pred_end()); 167 MachineBasicBlock::iterator MI = MBB->begin(); 168 while (MI != MBB->end()) { 183 dbgs() << "Malformed PHI in BB#" << MBB->getNumber() << ": " << *MI; 193 dbgs() << "Warning: malformed PHI in BB#" << MBB->getNumber() 200 dbgs() << "Malformed PHI in BB#" << MBB->getNumber() << ": " << *MI [all...] |
| Analysis.cpp | 651 const MachineBasicBlock *MBB) { 652 // Add this MBB to our funclet. 653 auto P = FuncletMembership.insert(std::make_pair(MBB, Funclet)); 657 assert(P.first->second == Funclet && "MBB is part of two funclets!"); 663 for (const MachineInstr &MI : MBB->terminators()) { 675 for (const MachineBasicBlock *SMBB : MBB->successors()) 697 for (const MachineBasicBlock &MBB : MF) { 698 if (MBB.isEHFuncletEntry()) { 699 FuncletBlocks.push_back(&MBB); 700 } else if (IsSEH && MBB.isEHPad()) [all...] |
| MIRPrinter.cpp | 111 void print(const MachineBasicBlock &MBB); 114 void printMBBReference(const MachineBasicBlock &MBB); 185 for (const auto &MBB : MF) { 189 .print(MBB); 402 for (const auto *MBB : Table.MBBs) { 405 .printMBBReference(*MBB); 420 void MIPrinter::print(const MachineBasicBlock &MBB) { 421 assert(MBB.getNumber() >= 0 && "Invalid MBB number"); 422 OS << "bb." << MBB.getNumber() [all...] |
| MachineCopyPropagation.cpp | 56 bool CopyPropagateBlock(MachineBasicBlock &MBB); 87 const MachineBasicBlock *MBB = CopyMI->getParent(); 88 if (MI->getParent() != MBB) 91 MachineBasicBlock::const_iterator E = MBB->end(); 129 bool MachineCopyPropagation::CopyPropagateBlock(MachineBasicBlock &MBB) { 135 DEBUG(dbgs() << "MCP: CopyPropagateBlock " << MBB.getName() << "\n"); 138 for (MachineBasicBlock::iterator I = MBB.begin(), E = MBB.end(); I != E; ) { 314 // If MBB doesn't have successors, delete the copies whose defs are not used. 315 // If MBB does have successors, then conservative assume the defs are live-ou [all...] |
| StackSlotColoring.cpp | 112 bool RemoveDeadStores(MachineBasicBlock* MBB); 145 MachineBasicBlock *MBB = &*MBBI; 146 for (MachineBasicBlock::iterator MII = MBB->begin(), EE = MBB->end(); 330 MachineBasicBlock *MBB = &*MBBI; 331 for (MachineBasicBlock::iterator MII = MBB->begin(), EE = MBB->end(); 334 RemoveDeadStores(MBB); 375 bool StackSlotColoring::RemoveDeadStores(MachineBasicBlock* MBB) { 382 for (MachineBasicBlock::iterator I = MBB->begin(), E = MBB->end() [all...] |
| /external/llvm/lib/Target/AMDGPU/ |
| SIInstrInfo.cpp | 312 SIInstrInfo::copyPhysReg(MachineBasicBlock &MBB, 368 BuildMI(MBB, MI, DL, get(AMDGPU::S_MOV_B32), DestReg) 375 BuildMI(MBB, MI, DL, get(AMDGPU::S_MOV_B64), AMDGPU::VCC) 380 BuildMI(MBB, MI, DL, get(AMDGPU::V_CMP_NE_I32_e32)) 389 BuildMI(MBB, MI, DL, get(AMDGPU::S_MOV_B64), DestReg) 411 BuildMI(MBB, MI, DL, get(AMDGPU::V_MOV_B32_e32), DestReg) 460 MachineInstrBuilder Builder = BuildMI(MBB, MI, DL, 539 void SIInstrInfo::storeRegToStackSlot(MachineBasicBlock &MBB, 545 MachineFunction *MF = MBB.getParent(); 548 DebugLoc DL = MBB.findDebugLoc(MI) [all...] |
| SILoadStoreOptimizer.cpp | 97 bool optimizeBlock(MachineBasicBlock &MBB); 211 MachineBasicBlock *MBB = I->getParent(); 250 = BuildMI(*MBB, I, DL, Read2Desc, DestReg) 264 MachineInstr *Copy0 = BuildMI(*MBB, I, DL, CopyDesc) 267 MachineInstr *Copy1 = BuildMI(*MBB, I, DL, CopyDesc) 306 MachineBasicBlock *MBB = I->getParent(); 349 = BuildMI(*MBB, I, DL, Write2Desc) 368 LIS->repairIntervalsInRange(MBB, Write2, Write2, OrigRegs); 382 bool SILoadStoreOptimizer::optimizeBlock(MachineBasicBlock &MBB) { 385 for (MachineBasicBlock::iterator I = MBB.begin(), E = MBB.end(); I != E;) [all...] |
| AMDGPUInstrInfo.cpp | 91 AMDGPUInstrInfo::storeRegToStackSlot(MachineBasicBlock &MBB, 101 AMDGPUInstrInfo::loadRegFromStackSlot(MachineBasicBlock &MBB, 110 MachineBasicBlock *MBB = MI->getParent(); 126 buildMovInstr(MBB, MI, MI->getOperand(DstOpIdx).getReg(), 129 buildIndirectRead(MBB, MI, MI->getOperand(DstOpIdx).getReg(), 140 buildMovInstr(MBB, MI, getIndirectAddrRegClass()->getRegister(Address), 143 buildIndirectWrite(MBB, MI, MI->getOperand(ValOpIdx).getReg(), 151 MBB->erase(MI); 223 void AMDGPUInstrInfo::insertNoop(MachineBasicBlock &MBB,
|
| /external/llvm/lib/Target/Hexagon/ |
| HexagonStoreWidening.cpp | 90 void createStoreGroups(MachineBasicBlock &MBB, 92 bool processBasicBlock(MachineBasicBlock &MBB); 209 void HexagonStoreWidening::createStoreGroups(MachineBasicBlock &MBB, 216 for (auto &I : MBB) 490 MachineBasicBlock *MBB = OG.back()->getParent(); 491 MachineBasicBlock::iterator InsertAt = MBB->end(); 505 for (auto &I : *MBB) { 512 assert((InsertAt != MBB->end()) && "Cannot locate any store from the group"); 520 if (InsertAt != MBB->begin()) 531 InsertAt = MBB->begin() [all...] |
| HexagonInstrInfo.cpp | 287 /// Cond[1] = MBB 293 bool HexagonInstrInfo::AnalyzeBranch(MachineBasicBlock &MBB, 303 MachineBasicBlock::instr_iterator I = MBB.instr_end(); 304 if (I == MBB.instr_begin()) 324 } while (I != MBB.instr_begin()); 326 I = MBB.instr_end(); 330 if (I == MBB.instr_begin()) 339 MBB.isLayoutSuccessor(I->getOperand(0).getMBB())) { 342 I = MBB.instr_end(); 343 if (I == MBB.instr_begin() [all...] |
| HexagonNewValueJump.cpp | 414 MachineBasicBlock *MBB = &*MBBb; 417 << MBB->getNumber() << "\n"); 418 DEBUG(MBB->dump()); 436 for (MachineBasicBlock::iterator MII = MBB->end(), E = MBB->begin(); 470 //if(LVs.isLiveOut(predReg, *MBB)) break; 478 for (MachineBasicBlock::const_succ_iterator SI = MBB->succ_begin(), 479 SIE = MBB->succ_end(); SI != SIE; ++SI) { 628 MBB->splice(jmpPos, MI->getParent(), MI); 629 MBB->splice(jmpPos, MI->getParent(), cmpInstr) [all...] |
| /external/llvm/lib/Target/X86/ |
| X86CallFrameOptimization.cpp | 88 void collectCallInfo(MachineFunction &MF, MachineBasicBlock &MBB, 98 InstClassification classifyInstruction(MachineBasicBlock &MBB, 256 MachineBasicBlock &MBB, MachineBasicBlock::iterator MI, 258 if (MI == MBB.end()) 313 MachineBasicBlock &MBB, 363 while ((Classification = classifyInstruction(MBB, I, RegInfo, UsedRegs)) != 418 if (I == MBB.end() || !I->isCall()) 452 MachineBasicBlock &MBB = *(FrameSetup->getParent()); 474 Push = BuildMI(MBB, Context.Call, DL, TII->get(PushOpcode)) 487 Push = BuildMI(MBB, Context.Call, DL, TII->get(X86::PUSH32rmm)) [all...] |
| X86InstrInfo.h | 170 bool AnalyzeBranchImpl(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, 218 void reMaterialize(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI, 310 bool AnalyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, 318 bool AnalyzeBranchPredicate(MachineBasicBlock &MBB, 322 unsigned RemoveBranch(MachineBasicBlock &MBB) const override; 323 unsigned InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB, 328 void insertSelect(MachineBasicBlock &MBB, 332 void copyPhysReg(MachineBasicBlock &MBB, 336 void storeRegToStackSlot(MachineBasicBlock &MBB, 349 void loadRegFromStackSlot(MachineBasicBlock &MBB, [all...] |
| /external/llvm/lib/Target/ARM/ |
| Thumb2InstrInfo.cpp | 51 MachineBasicBlock *MBB = Tail->getParent(); 52 ARMFunctionInfo *AFI = MBB->getParent()->getInfo<ARMFunctionInfo>(); 72 MachineBasicBlock::iterator E = MBB->begin(); 100 Thumb2InstrInfo::isLegalToSplitMBBAt(MachineBasicBlock &MBB, 104 if (MBBI == MBB.end()) 112 void Thumb2InstrInfo::copyPhysReg(MachineBasicBlock &MBB, 118 return ARMBaseInstrInfo::copyPhysReg(MBB, I, DL, DestReg, SrcReg, KillSrc); 120 AddDefaultPred(BuildMI(MBB, I, DL, get(ARM::tMOVr), DestReg) 125 storeRegToStackSlot(MachineBasicBlock &MBB, MachineBasicBlock::iterator I, 130 if (I != MBB.end()) DL = I->getDebugLoc() [all...] |
| ARMMachineFunctionInfo.h | 216 MachineBasicBlock* MBB) { 217 auto It = CoalescedWeights.find(MBB); 219 It = CoalescedWeights.insert(std::make_pair(MBB, 0)).first;
|
| /external/llvm/lib/Target/AArch64/ |
| AArch64InstrInfo.cpp | 38 const MachineBasicBlock &MBB = *MI->getParent(); 39 const MachineFunction *MF = MBB.getParent(); 92 bool AArch64InstrInfo::AnalyzeBranch(MachineBasicBlock &MBB, 98 MachineBasicBlock::iterator I = MBB.getLastNonDebugInstr(); 99 if (I == MBB.end()) 110 if (I == MBB.begin() || !isUnpredicatedTerminator(--I)) { 134 if (I == MBB.begin() || !isUnpredicatedTerminator(--I)) { 146 if (SecondLastInst && I != MBB.begin() && isUnpredicatedTerminator(--I)) 220 unsigned AArch64InstrInfo::RemoveBranch(MachineBasicBlock &MBB) const { 221 MachineBasicBlock::iterator I = MBB.getLastNonDebugInstr() [all...] |
| AArch64RegisterInfo.cpp | 316 void AArch64RegisterInfo::materializeFrameBaseRegister(MachineBasicBlock *MBB, 320 MachineBasicBlock::iterator Ins = MBB->begin(); 322 if (Ins != MBB->end()) 324 const MachineFunction &MF = *MBB->getParent(); 328 MachineRegisterInfo &MRI = MBB->getParent()->getRegInfo(); 332 BuildMI(*MBB, Ins, DL, MCID, BaseReg) 361 MachineBasicBlock &MBB = *MI.getParent(); 362 MachineFunction &MF = *MBB.getParent(); 395 emitFrameOffset(MBB, II, MI.getDebugLoc(), ScratchReg, FrameReg, Offset, TII);
|
| /external/llvm/lib/Target/Mips/ |
| MipsOptimizePICCall.cpp | 74 /// \brief Visit MBB. 130 static void setCallTargetReg(MachineBasicBlock *MBB, 132 MachineFunction &MF = *MBB->getParent(); 136 BuildMI(*MBB, I, I->getDebugLoc(), TII.get(TargetOpcode::COPY), DstReg) 189 // If this MBB has already been visited, destroy the scope for the MBB and 197 // Visit the MBB and add its children to the work list. 210 MachineBasicBlock *MBB = MBBI.getNode()->getBlock(); 212 for (MachineBasicBlock::iterator I = MBB->begin(), E = MBB->end(); I != E [all...] |
| Mips16ISelDAGToDAG.cpp | 72 MachineBasicBlock &MBB = MF.front(); 73 MachineBasicBlock::iterator I = MBB.begin(); 84 BuildMI(MBB, I, DL, TII.get(Mips::GotPrologue16), V0). 89 BuildMI(MBB, I, DL, TII.get(Mips::SllX16), V2).addReg(V0).addImm(16); 90 BuildMI(MBB, I, DL, TII.get(Mips::AdduRxRyRz16), GlobalBaseReg) 95 // first MBB of the function. 103 MachineBasicBlock &MBB = MF.front(); 104 MachineBasicBlock::iterator I = MBB.begin(); 106 DebugLoc DL = I != MBB.end() ? I->getDebugLoc() : DebugLoc(); 109 BuildMI(MBB, I, DL, TII.get(Mips::MoveR3216), Mips16SPAliasReg [all...] |
| MipsFrameLowering.cpp | 148 eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB, 157 STI.getInstrInfo()->adjustStackPtr(SP, Amount, MBB, I); 160 MBB.erase(I);
|
| /external/llvm/include/llvm/CodeGen/ |
| RegisterScavenging.h | 35 MachineBasicBlock *MBB; 72 : MBB(nullptr), NumRegUnits(0), Tracking(false) {} 75 void enterBasicBlock(MachineBasicBlock *mbb); 77 /// Move the internal MBB iterator and update register states. 80 /// Move the internal MBB iterator and update register states until 83 if (!Tracking && MBB->begin() != I) forward(); 96 /// Move the internal MBB iterator but do not update register states.
|