/external/llvm/lib/Target/PowerPC/ |
PPCBranchSelector.cpp | 72 // Measure each MBB and compute a size for the entire function. 76 MachineBasicBlock *MBB = MFI; 79 for (MachineBasicBlock::iterator MBBI = MBB->begin(), EE = MBB->end(); 83 BlockSizes[MBB->getNumber()] = BlockSize; 99 // bCC MBB 102 // b MBB 112 MachineBasicBlock &MBB = *MFI; 114 for (MachineBasicBlock::iterator I = MBB.begin(), E = MBB.end() [all...] |
/external/llvm/lib/Target/ARM/ |
Thumb1InstrInfo.h | 41 void copyPhysReg(MachineBasicBlock &MBB, 45 void storeRegToStackSlot(MachineBasicBlock &MBB, 51 void loadRegFromStackSlot(MachineBasicBlock &MBB,
|
Thumb2InstrInfo.h | 39 bool isLegalToSplitMBBAt(MachineBasicBlock &MBB, 42 void copyPhysReg(MachineBasicBlock &MBB, 47 void storeRegToStackSlot(MachineBasicBlock &MBB, 53 void loadRegFromStackSlot(MachineBasicBlock &MBB,
|
Thumb2RegisterInfo.h | 31 emitLoadConstPool(MachineBasicBlock &MBB, MachineBasicBlock::iterator &MBBI,
|
/external/llvm/lib/Target/Sparc/ |
SparcFrameLowering.h | 30 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override; 34 MachineBasicBlock &MBB, 52 MachineBasicBlock &MBB,
|
SparcInstrInfo.cpp | 128 bool SparcInstrInfo::AnalyzeBranch(MachineBasicBlock &MBB, 135 MachineBasicBlock::iterator I = MBB.end(); 136 MachineBasicBlock::iterator UnCondBrIter = MBB.end(); 137 while (I != MBB.begin()) { 160 while (std::next(I) != MBB.end()) 166 if (MBB.isLayoutSuccessor(I->getOperand(0).getMBB())) { 169 I = MBB.end(); 170 UnCondBrIter = MBB.end(); 186 if (AllowModify && UnCondBrIter != MBB.end() && 187 MBB.isLayoutSuccessor(TargetBB)) [all...] |
/external/llvm/lib/CodeGen/ |
MachineTraceMetrics.cpp | 84 /// Compute the resource usage in basic block MBB. 86 MachineTraceMetrics::getResources(const MachineBasicBlock *MBB) { 87 assert(MBB && "No basic block"); 88 FixedBlockInfo *FBI = &BlockInfo[MBB->getNumber()]; 100 for (const auto &MI : *MBB) { 124 unsigned PROffset = MBB->getNumber() * PRKinds; 159 MachineTraceMetrics::Ensemble::getLoopFor(const MachineBasicBlock *MBB) const { 160 return MTM.Loops->getLoopFor(MBB); 163 // Update resource-related information in the TraceBlockInfo for MBB. 164 // Only update resources related to the trace above MBB [all...] |
BranchFolding.h | 43 void setBlock(MachineBasicBlock *MBB) { 44 Block = MBB; 79 void setBlock(MachineBasicBlock *MBB) { 80 getMergePotentialsElt().setBlock(MBB); 116 bool OptimizeBlock(MachineBasicBlock *MBB); 117 void RemoveDeadBlock(MachineBasicBlock *MBB); 118 bool OptimizeImpDefsBlock(MachineBasicBlock *MBB); 121 bool HoistCommonCodeInSuccs(MachineBasicBlock *MBB);
|
PHIElimination.cpp | 68 bool EliminatePHINodes(MachineFunction &MF, MachineBasicBlock &MBB); 69 void LowerPHINode(MachineBasicBlock &MBB, 81 bool SplitPHIEdges(MachineFunction &MF, MachineBasicBlock &MBB, 86 bool isLiveIn(unsigned Reg, MachineBasicBlock *MBB); 87 bool isLiveOutPastPHIs(unsigned Reg, MachineBasicBlock *MBB); 183 MachineBasicBlock &MBB) { 184 if (MBB.empty() || !MBB.front().isPHI()) 190 std::prev(MBB.SkipPHIsAndLabels(MBB.begin())) [all...] |
MachineSink.cpp | 81 bool ProcessBlock(MachineBasicBlock &MBB); 90 bool AllUsesDominatedByBlock(unsigned Reg, MachineBasicBlock *MBB, 93 MachineBasicBlock *FindSuccToSinkTo(MachineInstr *MI, MachineBasicBlock *MBB, 96 MachineBasicBlock *MBB, 100 MachineBasicBlock *MBB); 115 MachineBasicBlock *MBB) { 148 MachineBasicBlock *MBB, 159 // BreakPHIEdge is true if all the uses are in the successor MBB being sunken 179 if (!(UseBlock == MBB && UseInst->isPHI() && 203 if (!DT->dominates(MBB, UseBlock) [all...] |
/external/llvm/include/llvm/CodeGen/ |
LivePhysRegs.h | 114 /// \brief Adds all live-in registers of basic block @p MBB. 115 void addLiveIns(const MachineBasicBlock *MBB) { 116 for (MachineBasicBlock::livein_iterator LI = MBB->livein_begin(), 117 LE = MBB->livein_end(); LI != LE; ++LI) 121 /// \brief Adds all live-out registers of basic block @p MBB. 122 void addLiveOuts(const MachineBasicBlock *MBB) { 123 for (MachineBasicBlock::const_succ_iterator SI = MBB->succ_begin(), 124 SE = MBB->succ_end(); SI != SE; ++SI)
|
MachineBlockFrequencyInfo.h | 1 //===- MachineBlockFrequencyInfo.h - MBB Frequency Analysis -*- C++ -*-----===// 51 BlockFrequency getBlockFreq(const MachineBasicBlock *MBB) const; 63 const MachineBasicBlock *MBB) const;
|
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/radeon/ |
AMDGPUInstrInfo.cpp | 86 MachineBasicBlock &MBB) const { 87 while (iter != MBB.end()) { 100 MachineBasicBlock::iterator skipFlowControl(MachineBasicBlock *MBB) { 101 MachineBasicBlock::iterator tmp = MBB->end(); 102 if (!MBB->size()) { 103 return MBB->end(); 109 if (tmp == MBB->begin()) { 118 return MBB->end(); 122 AMDGPUInstrInfo::storeRegToStackSlot(MachineBasicBlock &MBB, 132 AMDGPUInstrInfo::loadRegFromStackSlot(MachineBasicBlock &MBB, [all...] |
AMDILFrameLowering.h | 42 virtual void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const;
|
R600InstrInfo.cpp | 49 R600InstrInfo::copyPhysReg(MachineBasicBlock &MBB, 58 BuildMI(MBB, MI, DL, get(AMDGPU::MOV)) 71 BuildMI(MBB, MI, DL, get(AMDGPU::MOV), DestReg) 163 findFirstPredicateSetterFrom(MachineBasicBlock &MBB, 166 while (I != MBB.begin()) { 177 R600InstrInfo::AnalyzeBranch(MachineBasicBlock &MBB, 186 MachineBasicBlock::iterator I = MBB.end(); 187 if (I == MBB.begin()) 191 if (I == MBB.begin()) 204 if (I == MBB.begin() | [all...] |
/external/mesa3d/src/gallium/drivers/radeon/ |
AMDGPUInstrInfo.cpp | 86 MachineBasicBlock &MBB) const { 87 while (iter != MBB.end()) { 100 MachineBasicBlock::iterator skipFlowControl(MachineBasicBlock *MBB) { 101 MachineBasicBlock::iterator tmp = MBB->end(); 102 if (!MBB->size()) { 103 return MBB->end(); 109 if (tmp == MBB->begin()) { 118 return MBB->end(); 122 AMDGPUInstrInfo::storeRegToStackSlot(MachineBasicBlock &MBB, 132 AMDGPUInstrInfo::loadRegFromStackSlot(MachineBasicBlock &MBB, [all...] |
AMDILFrameLowering.h | 42 virtual void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const;
|
R600InstrInfo.cpp | 49 R600InstrInfo::copyPhysReg(MachineBasicBlock &MBB, 58 BuildMI(MBB, MI, DL, get(AMDGPU::MOV)) 71 BuildMI(MBB, MI, DL, get(AMDGPU::MOV), DestReg) 163 findFirstPredicateSetterFrom(MachineBasicBlock &MBB, 166 while (I != MBB.begin()) { 177 R600InstrInfo::AnalyzeBranch(MachineBasicBlock &MBB, 186 MachineBasicBlock::iterator I = MBB.end(); 187 if (I == MBB.begin()) 191 if (I == MBB.begin()) 204 if (I == MBB.begin() | [all...] |
/external/llvm/lib/Target/Mips/ |
Mips16FrameLowering.cpp | 36 MachineBasicBlock &MBB = MF.front(); 40 MachineBasicBlock::iterator MBBI = MBB.begin(); 41 DebugLoc dl = MBBI != MBB.end() ? MBBI->getDebugLoc() : DebugLoc(); 52 TII.makeFrame(Mips::SP, StackSize, MBB, MBBI); 57 BuildMI(MBB, MBBI, dl, TII.get(TargetOpcode::CFI_INSTRUCTION)) 72 BuildMI(MBB, MBBI, dl, TII.get(TargetOpcode::CFI_INSTRUCTION)) 77 BuildMI(MBB, MBBI, dl, TII.get(Mips::MoveR3216), Mips::S0) 83 MachineBasicBlock &MBB) const { 84 MachineBasicBlock::iterator MBBI = MBB.getLastNonDebugInstr(); 95 BuildMI(MBB, MBBI, dl, TII.get(Mips::Move32R16), Mips::SP [all...] |
MipsDelaySlotFiller.cpp | 81 /// Set bits in Uses corresponding to MBB's live-out registers except for 83 void addLiveOut(const MachineBasicBlock &MBB, 197 bool runOnMachineBasicBlock(MachineBasicBlock &MBB); 208 bool searchRange(MachineBasicBlock &MBB, IterTy Begin, IterTy End, 214 bool searchBackward(MachineBasicBlock &MBB, Iter Slot) const; 216 /// This function searches MBB in the forward direction for an instruction 218 bool searchForward(MachineBasicBlock &MBB, Iter Slot) const; 220 /// This function searches one of MBB's successor blocks for an instruction 223 bool searchSuccBBs(MachineBasicBlock &MBB, Iter Slot) const; 225 /// Pick a successor block of MBB. Return NULL if MBB doesn't have [all...] |
MipsSEInstrInfo.cpp | 82 void MipsSEInstrInfo::copyPhysReg(MachineBasicBlock &MBB, 110 BuildMI(MBB, I, DL, get(Mips::RDDSP), DestReg).addImm(1 << 4) 131 BuildMI(MBB, I, DL, get(Mips::WRDSP)) 170 MachineInstrBuilder MIB = BuildMI(MBB, I, DL, get(Opc)); 183 storeRegToStack(MachineBasicBlock &MBB, MachineBasicBlock::iterator I, 188 if (I != MBB.end()) DL = I->getDebugLoc(); 189 MachineMemOperand *MMO = GetMemOperand(MBB, FI, MachineMemOperand::MOStore); 221 BuildMI(MBB, I, DL, get(Opc)).addReg(SrcReg, getKillRegState(isKill)) 226 loadRegFromStack(MachineBasicBlock &MBB, MachineBasicBlock::iterator I, 230 if (I != MBB.end()) DL = I->getDebugLoc() [all...] |
MipsSEFrameLowering.cpp | 58 bool expandInstr(MachineBasicBlock &MBB, Iter I); 59 void expandLoadCCond(MachineBasicBlock &MBB, Iter I); 60 void expandStoreCCond(MachineBasicBlock &MBB, Iter I); 61 void expandLoadACC(MachineBasicBlock &MBB, Iter I, unsigned RegSize); 62 void expandStoreACC(MachineBasicBlock &MBB, Iter I, unsigned MFHiOpc, 64 bool expandCopy(MachineBasicBlock &MBB, Iter I); 65 bool expandCopyACC(MachineBasicBlock &MBB, Iter I, unsigned MFHiOpc, 87 bool ExpandPseudo::expandInstr(MachineBasicBlock &MBB, Iter I) { 90 expandLoadCCond(MBB, I); 93 expandStoreCCond(MBB, I) [all...] |
Mips16RegisterInfo.cpp | 62 (MachineBasicBlock &MBB, 68 const TargetInstrInfo &TII = *MBB.getParent()->getTarget().getInstrInfo(); 69 TII.copyPhysReg(MBB, I, DL, Mips::T0, Reg, true); 70 TII.copyPhysReg(MBB, UseMI, DL, Reg, Mips::T0, true); 139 MachineBasicBlock &MBB = *MI.getParent(); 144 MBB.getParent()->getTarget().getInstrInfo()); 145 FrameReg = TII.loadImmediate(FrameReg, Offset, MBB, II, DL, NewImm);
|
/external/llvm/lib/Target/NVPTX/ |
NVPTXInstrInfo.h | 42 * virtual void storeRegToStackSlot(MachineBasicBlock &MBB, 46 * virtual void loadRegFromStackSlot(MachineBasicBlock &MBB, 53 MachineBasicBlock &MBB, MachineBasicBlock::iterator I, DebugLoc DL, 64 MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, 66 unsigned RemoveBranch(MachineBasicBlock &MBB) const override; 68 MachineBasicBlock &MBB, MachineBasicBlock *TBB, MachineBasicBlock *FBB,
|
/external/llvm/lib/Target/SystemZ/ |
SystemZFrameLowering.h | 32 bool spillCalleeSavedRegisters(MachineBasicBlock &MBB, 36 bool restoreCalleeSavedRegisters(MachineBasicBlock &MBB, 44 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override; 49 MachineBasicBlock &MBB,
|