| /external/llvm/lib/Target/AArch64/ |
| 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/AMDGPU/ |
| 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,
|
| R600OptimizeVectorRegisters.cpp | 183 MachineBasicBlock &MBB = *Pos->getParent(); 196 MachineInstr *Tmp = BuildMI(MBB, Pos, DL, TII->get(AMDGPU::INSERT_SUBREG), 213 Pos = BuildMI(MBB, Pos, DL, TII->get(AMDGPU::COPY), Reg) 319 for (MachineFunction::iterator MBB = Fn.begin(), MBBe = Fn.end(); 320 MBB != MBBe; ++MBB) { 321 MachineBasicBlock *MB = &*MBB;
|
| SIFoldOperands.cpp | 312 MachineBasicBlock &MBB = *BI; 314 for (I = MBB.begin(); I != MBB.end(); I = Next) {
|
| SIInsertWaits.cpp | 98 void pushInstruction(MachineBasicBlock &MBB, 102 bool insertWait(MachineBasicBlock &MBB, 113 void handleSendMsg(MachineBasicBlock &MBB, MachineBasicBlock::iterator I); 249 void SIInsertWaits::pushInstruction(MachineBasicBlock &MBB, 270 if (MBB.getParent()->getSubtarget<AMDGPUSubtarget>().getGeneration() >= 284 BuildMI(MBB, I, DebugLoc(), TII->get(AMDGPU::S_NOP)) 320 bool SIInsertWaits::insertWait(MachineBasicBlock &MBB, 325 if (I != MBB.end() && I->getOpcode() == AMDGPU::S_ENDPGM) 374 BuildMI(MBB, I, DebugLoc(), TII->get(AMDGPU::S_WAITCNT)) 428 void SIInsertWaits::handleSendMsg(MachineBasicBlock &MBB, [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...] |
| SILowerControlFlow.cpp | 125 for (MachineBasicBlock *MBB = From; MBB != To && !MBB->succ_empty(); 126 MBB = *MBB->succ_begin()) { 128 for (MachineBasicBlock::iterator I = MBB->begin(), E = MBB->end(); 152 MachineBasicBlock &MBB = *MI.getParent(); 155 if (MBB.getParent()->getInfo<SIMachineFunctionInfo>()->getShaderType() != 157 !shouldSkip(&MBB, &MBB.getParent()->back()) [all...] |
| SIRegisterInfo.cpp | 209 MachineBasicBlock *MBB = MI->getParent(); 229 BuildMI(*MBB, MI, DL, TII->get(AMDGPU::S_ADD_U32), SOffset) 243 BuildMI(*MBB, MI, DL, TII->get(LoadStoreOp)) 260 MachineBasicBlock *MBB = MI->getParent(); 290 BuildMI(*MBB, MI, DL, 323 BuildMI(*MBB, MI, DL, 385 BuildMI(*MBB, MI, MI->getDebugLoc(),
|
| /external/llvm/lib/Target/ARM/ |
| ARMConstantPoolValue.h | 221 const MachineBasicBlock *MBB; // Machine basic block. 223 ARMConstantPoolMBB(LLVMContext &C, const MachineBasicBlock *mbb, unsigned id, 229 const MachineBasicBlock *mbb, 232 const MachineBasicBlock *getMBB() const { return MBB; } 250 return MBB == A->MBB && ARMConstantPoolValue::equals(A);
|
| Thumb2ITBlockPass.cpp | 48 bool InsertITInstructions(MachineBasicBlock &MBB); 175 bool Thumb2ITBlockPass::InsertITInstructions(MachineBasicBlock &MBB) { 180 MachineBasicBlock::iterator MBBI = MBB.begin(), E = MBB.end(); 196 MachineInstrBuilder MIB = BuildMI(MBB, MBBI, dl, TII->get(ARM::t2IT)) 236 MBB.remove(NMI); 237 MBB.insert(InsertPos, NMI); 259 finalizeBundle(MBB, InsertPos.getInstrIterator(), 284 MachineBasicBlock &MBB = *MFI; 286 Modified |= InsertITInstructions(MBB); [all...] |
| /external/llvm/lib/Target/Hexagon/ |
| HexagonAsmPrinter.cpp | 121 isBlockOnlyReachableByFallthrough(const MachineBasicBlock *MBB) const { 122 if (MBB->hasAddressTaken()) 124 return AsmPrinter::isBlockOnlyReachableByFallthrough(MBB); 573 const MachineBasicBlock* MBB = MI->getParent(); 577 for (++MII; MII != MBB->instr_end() && MII->isInsideBundle(); ++MII)
|
| 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/Mips/ |
| Mips16InstrInfo.cpp | 61 void Mips16InstrInfo::copyPhysReg(MachineBasicBlock &MBB, 84 MachineInstrBuilder MIB = BuildMI(MBB, I, DL, get(Opc)); 93 void Mips16InstrInfo::storeRegToStack(MachineBasicBlock &MBB, 100 if (I != MBB.end()) DL = I->getDebugLoc(); 101 MachineMemOperand *MMO = GetMemOperand(MBB, FI, MachineMemOperand::MOStore); 106 BuildMI(MBB, I, DL, get(Opc)).addReg(SrcReg, getKillRegState(isKill)). 111 void Mips16InstrInfo::loadRegFromStack(MachineBasicBlock &MBB, 118 if (I != MBB.end()) DL = I->getDebugLoc(); 119 MachineMemOperand *MMO = GetMemOperand(MBB, FI, MachineMemOperand::MOLoad); 125 BuildMI(MBB, I, DL, get(Opc), DestReg).addFrameIndex(FI).addImm(Offset [all...] |
| MipsLongBranch.cpp | 77 void splitMBB(MachineBasicBlock *MBB); 80 void replaceBranch(MachineBasicBlock &MBB, Iter Br, DebugLoc DL, 111 llvm_unreachable("This instruction does not have an MBB operand."); 124 // Split MBB if it has two direct jumps/branches. 125 void MipsLongBranch::splitMBB(MachineBasicBlock *MBB) { 126 ReverseIter End = MBB->rend(); 127 ReverseIter LastBr = getNonDebugInstr(MBB->rbegin(), End); 129 // Return if MBB has no branch instructions. 136 // MBB has only one branch instruction if FirstBr is not a branch 144 // Create a new MBB. Move instructions in MBB to the newly created MBB [all...] |
| 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...] |
| /external/llvm/lib/Target/PowerPC/ |
| PPCCTRLoops.cpp | 605 static bool verifyCTRBranch(MachineBasicBlock *MBB, 612 if (I == MBB->begin()) { 613 Visited.insert(MBB); 619 Visited.insert(MBB); 620 if (I == MBB->end()) 624 for (MachineBasicBlock::iterator IE = MBB->begin();; --I) { 632 DEBUG(dbgs() << "BB#" << MBB->getNumber() << " (" << 633 MBB->getFullName() << ") instruction " << *I << 650 if (MachineFunction::iterator(MBB) == MBB->getParent()->begin()) [all...] |
| /external/llvm/lib/Target/SystemZ/ |
| 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...] |
| 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...] |
| /external/llvm/lib/Target/WebAssembly/ |
| WebAssemblyCFGStackify.cpp | 85 for (MachineBasicBlock *MBB : CurrentSCC) { 86 for (MachineBasicBlock *Pred : MBB->predecessors()) { 90 Header = MBB; 106 MachineBasicBlock *MBB; 109 POStackEntry(MachineBasicBlock *MBB, MachineFunction &MF, 115 const MachineBasicBlock *MBB) { 116 return Loop ? Loop->contains(MBB) : true; 119 POStackEntry::POStackEntry(MachineBasicBlock *MBB, MachineFunction &MF, 121 : MBB(MBB), Succs(MBB->successors()) [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...] |
| X86VZeroUpper.cpp | 45 void processBasicBlock(MachineBasicBlock &MBB); 47 MachineBasicBlock &MBB); 48 void addDirtySuccessor(MachineBasicBlock &MBB); 158 MachineBasicBlock &MBB) { 160 BuildMI(MBB, I, dl, TII->get(X86::VZEROUPPER)); 165 // Add MBB to the DirtySuccessors list if it hasn't already been added. 166 void VZeroUpperInserter::addDirtySuccessor(MachineBasicBlock &MBB) { 167 if (!BlockStates[MBB.getNumber()].AddedToDirtySuccessors) { 168 DirtySuccessors.push_back(&MBB); 169 BlockStates[MBB.getNumber()].AddedToDirtySuccessors = true [all...] |
| /external/llvm/include/llvm/CodeGen/ |
| MachineInstrBuilder.h | 98 const MachineInstrBuilder &addMBB(MachineBasicBlock *MBB, 100 MI->addOperand(*MF, MachineOperand::CreateMBB(MBB, TargetFlags)); 417 MachineBasicBlock &MBB; 426 : MBB(BB), Begin(Pos.getInstrIterator()), End(Begin) {} 432 : MBB(BB), Begin(B.getInstrIterator()), End(E.getInstrIterator()) { 445 : MBB(*MI->getParent()), Begin(MI), End(getBundleEnd(MI)) {} 448 MachineBasicBlock &getMBB() const { return MBB; } 464 MBB.insert(I, MI); 482 /// Insert MI into MBB by prepending it to the instructions in the bundle. 488 /// Insert MI into MBB by appending it to the instructions in the bundle [all...] |
| MachineOperand.h | 155 MachineBasicBlock *MBB; // For MO_MachineBasicBlock. 427 return Contents.MBB; 532 void setMBB(MachineBasicBlock *MBB) { 534 Contents.MBB = MBB; 622 static MachineOperand CreateMBB(MachineBasicBlock *MBB, 625 Op.setMBB(MBB);
|
| /external/llvm/lib/CodeGen/ |
| LiveVariables.cpp | 60 LiveVariables::VarInfo::findKill(const MachineBasicBlock *MBB) const { 62 if (Kills[i]->getParent() == MBB) 94 MachineBasicBlock *MBB, 96 unsigned BBNum = MBB->getNumber(); 101 if (VRInfo.Kills[i]->getParent() == MBB) { 106 if (MBB == DefBlock) return; // Terminate recursion 114 assert(MBB != &MF->front() && "Can't find reaching def for virtreg"); 115 WorkList.insert(WorkList.end(), MBB->pred_rbegin(), MBB->pred_rend()); 120 MachineBasicBlock *MBB) { [all...] |
| MachineCSE.cpp | 39 "Number of cross-MBB physreg referencing CS eliminated"); 84 MachineBasicBlock *MBB); 89 const MachineBasicBlock *MBB, 100 void EnterScope(MachineBasicBlock *MBB); 101 void ExitScope(MachineBasicBlock *MBB); 102 bool ProcessBlock(MachineBasicBlock *MBB); 123 MachineBasicBlock *MBB) { 218 const MachineBasicBlock *MBB, 233 if (!MRI->isConstantPhysReg(Reg, *MBB->getParent())) 257 if (!MO.isDead() && !isPhysDefTriviallyDead(Reg, I, MBB->end()) [all...] |