/external/swiftshader/third_party/LLVM/lib/Target/XCore/ |
XCoreInstrInfo.h | 52 virtual bool AnalyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, 57 virtual unsigned InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB, 62 virtual unsigned RemoveBranch(MachineBasicBlock &MBB) const; 64 virtual void copyPhysReg(MachineBasicBlock &MBB, 69 virtual void storeRegToStackSlot(MachineBasicBlock &MBB, 75 virtual void loadRegFromStackSlot(MachineBasicBlock &MBB,
|
XCoreFrameLowering.cpp | 45 static void loadFromStack(MachineBasicBlock &MBB, 55 BuildMI(MBB, I, dl, TII.get(Opcode), DstReg) 60 static void storeToStack(MachineBasicBlock &MBB, 70 BuildMI(MBB, I, dl, TII.get(Opcode)) 91 MachineBasicBlock &MBB = MF.front(); // Prolog goes in entry BB 92 MachineBasicBlock::iterator MBBI = MBB.begin(); 100 DebugLoc dl = MBBI != MBB.end() ? MBBI->getDebugLoc() : DebugLoc(); 107 loadFromStack(MBB, MBBI, XCore::R11, 0, dl, TII); 130 MBB.addLiveIn(XCore::LR); 136 BuildMI(MBB, MBBI, dl, TII.get(Opcode)).addImm(FrameSize) [all...] |
XCoreInstrInfo.cpp | 163 /// AnalyzeBranch - Analyze the branching code at the end of MBB, returning 187 XCoreInstrInfo::AnalyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, 192 MachineBasicBlock::iterator I = MBB.end(); 193 if (I == MBB.begin()) 197 if (I == MBB.begin()) 208 if (I == MBB.begin() || !isUnpredicatedTerminator(--I)) { 231 if (SecondLastInst && I != MBB.begin() && 275 XCoreInstrInfo::InsertBranch(MachineBasicBlock &MBB,MachineBasicBlock *TBB, 287 BuildMI(&MBB, DL, get(XCore::BRFU_lu6)).addMBB(TBB); 291 BuildMI(&MBB, DL, get(Opc)).addReg(Cond[1].getReg() [all...] |
/external/llvm/lib/CodeGen/ |
BranchFolding.cpp | 11 // directly to the target block. This pass often results in dead MBB's, which 125 void BranchFolder::RemoveDeadBlock(MachineBasicBlock *MBB) { 126 assert(MBB->pred_empty() && "MBB must be dead!"); 127 DEBUG(dbgs() << "\nRemoving MBB: " << *MBB); 129 MachineFunction *MF = MBB->getParent(); 131 while (!MBB->succ_empty()) 132 MBB->removeSuccessor(MBB->succ_end()-1) [all...] |
/external/llvm/lib/Target/AMDGPU/ |
SIWholeQuadMode.cpp | 84 MachineBasicBlock *MBB = nullptr; 88 WorkItem(MachineBasicBlock *MBB) : MBB(MBB) {} 105 void propagateBlock(MachineBasicBlock &MBB, std::vector<WorkItem> &Worklist); 108 void toExact(MachineBasicBlock &MBB, MachineBasicBlock::iterator Before, 110 void toWQM(MachineBasicBlock &MBB, MachineBasicBlock::iterator Before, 112 void processBlock(MachineBasicBlock &MBB, unsigned LiveMaskReg, bool isEntry); 155 MachineBasicBlock &MBB = *BI; 157 for (auto II = MBB.begin(), IE = MBB.end(); II != IE; ++II) [all...] |
/external/swiftshader/third_party/LLVM/lib/Target/ARM/ |
Thumb1InstrInfo.cpp | 35 void Thumb1InstrInfo::copyPhysReg(MachineBasicBlock &MBB, 39 AddDefaultPred(BuildMI(MBB, I, DL, get(ARM::tMOVr), DestReg) 46 storeRegToStackSlot(MachineBasicBlock &MBB, MachineBasicBlock::iterator I, 58 if (I != MBB.end()) DL = I->getDebugLoc(); 60 MachineFunction &MF = *MBB.getParent(); 68 AddDefaultPred(BuildMI(MBB, I, DL, get(ARM::tSTRspi)) 75 loadRegFromStackSlot(MachineBasicBlock &MBB, MachineBasicBlock::iterator I, 87 if (I != MBB.end()) DL = I->getDebugLoc(); 89 MachineFunction &MF = *MBB.getParent(); 97 AddDefaultPred(BuildMI(MBB, I, DL, get(ARM::tLDRspi), DestReg [all...] |
Thumb1FrameLowering.cpp | 38 emitSPUpdate(MachineBasicBlock &MBB, 43 emitThumbRegPlusImmediate(MBB, MBBI, dl, ARM::SP, ARM::SP, NumBytes, TII, 48 MachineBasicBlock &MBB = MF.front(); 49 MachineBasicBlock::iterator MBBI = MBB.begin(); 60 DebugLoc dl = MBBI != MBB.end() ? MBBI->getDebugLoc() : DebugLoc(); 74 emitSPUpdate(MBB, MBBI, TII, dl, *RegInfo, -VARegSaveSize, 79 emitSPUpdate(MBB, MBBI, TII, dl, *RegInfo, -NumBytes, 118 if (MBBI != MBB.end() && MBBI->getOpcode() == ARM::tPUSH) { 120 if (MBBI != MBB.end()) 136 AddDefaultPred(BuildMI(MBB, MBBI, dl, TII.get(ARM::tADDrSPi), FramePtr [all...] |
/external/swiftshader/third_party/LLVM/lib/Target/CellSPU/ |
SPUNopFiller.cpp | 47 void runOnMachineBasicBlock(MachineBasicBlock &MBB); 73 runOnMachineBasicBlock(MachineBasicBlock &MBB) 76 for (MachineBasicBlock::iterator I = MBB.begin(); I != MBB.end(); ++I) 84 while (J!=MBB.end()){ 96 BuildMI(MBB, I, I->getDebugLoc(), TII->get(SPU::ENOP)); 105 BuildMI(MBB, I, I->getDebugLoc(), TII->get(SPU::LNOP)); 117 MachineBasicBlock::iterator J = MBB.end(); 121 BuildMI(MBB, J, J->getDebugLoc(), TII->get(SPU::ENOP)); 126 BuildMI(MBB, J, DebugLoc(), TII->get(SPU::LNOP)) [all...] |
/external/swiftshader/third_party/LLVM/lib/Target/Sparc/ |
SparcInstrInfo.cpp | 116 bool SparcInstrInfo::AnalyzeBranch(MachineBasicBlock &MBB, 123 MachineBasicBlock::iterator I = MBB.end(); 124 MachineBasicBlock::iterator UnCondBrIter = MBB.end(); 125 while (I != MBB.begin()) { 148 while (llvm::next(I) != MBB.end()) 154 if (MBB.isLayoutSuccessor(I->getOperand(0).getMBB())) { 157 I = MBB.end(); 158 UnCondBrIter = MBB.end(); 174 if (AllowModify && UnCondBrIter != MBB.end() && 175 MBB.isLayoutSuccessor(TargetBB)) [all...] |
DelaySlotFiller.cpp | 52 bool runOnMachineBasicBlock(MachineBasicBlock &MBB); 61 bool isDelayFiller(MachineBasicBlock &MBB, 80 findDelayInstr(MachineBasicBlock &MBB, MachineBasicBlock::iterator slot); 99 bool Filler::runOnMachineBasicBlock(MachineBasicBlock &MBB) { 102 for (MachineBasicBlock::iterator I = MBB.begin(); I != MBB.end(); ++I) 104 MachineBasicBlock::iterator D = MBB.end(); 108 D = findDelayInstr(MBB, I); 113 if (D == MBB.end()) 114 BuildMI(MBB, ++J, I->getDebugLoc(), TII->get(SP::NOP)) [all...] |
/external/llvm/lib/Target/Mips/ |
MipsSEFrameLowering.cpp | 57 bool expandInstr(MachineBasicBlock &MBB, Iter I); 58 void expandLoadCCond(MachineBasicBlock &MBB, Iter I); 59 void expandStoreCCond(MachineBasicBlock &MBB, Iter I); 60 void expandLoadACC(MachineBasicBlock &MBB, Iter I, unsigned RegSize); 61 void expandStoreACC(MachineBasicBlock &MBB, Iter I, unsigned MFHiOpc, 63 bool expandCopy(MachineBasicBlock &MBB, Iter I); 64 bool expandCopyACC(MachineBasicBlock &MBB, Iter I, unsigned MFHiOpc, 66 bool expandBuildPairF64(MachineBasicBlock &MBB, 68 bool expandExtractElementF64(MachineBasicBlock &MBB, 88 for (auto &MBB : MF) [all...] |
Mips16FrameLowering.cpp | 35 MachineBasicBlock &MBB) const { 36 assert(&MF.front() == &MBB && "Shrink-wrapping not yet supported"); 40 MachineBasicBlock::iterator MBBI = MBB.begin(); 56 TII.makeFrame(Mips::SP, StackSize, MBB, MBBI); 61 BuildMI(MBB, MBBI, dl, TII.get(TargetOpcode::CFI_INSTRUCTION)) 76 BuildMI(MBB, MBBI, dl, TII.get(TargetOpcode::CFI_INSTRUCTION)) 81 BuildMI(MBB, MBBI, dl, TII.get(Mips::MoveR3216), Mips::S0) 87 MachineBasicBlock &MBB) const { 88 MachineBasicBlock::iterator MBBI = MBB.getLastNonDebugInstr(); 99 BuildMI(MBB, MBBI, dl, TII.get(Mips::Move32R16), Mips::SP [all...] |
/external/llvm/lib/Target/MSP430/ |
MSP430FrameLowering.cpp | 42 MachineBasicBlock &MBB) const { 43 assert(&MF.front() == &MBB && "Shrink-wrapping not yet supported"); 49 MachineBasicBlock::iterator MBBI = MBB.begin(); 50 DebugLoc DL = MBBI != MBB.end() ? MBBI->getDebugLoc() : DebugLoc(); 67 BuildMI(MBB, MBBI, DL, TII.get(MSP430::PUSH16r)) 71 BuildMI(MBB, MBBI, DL, TII.get(MSP430::MOV16rr), MSP430::FP) 83 while (MBBI != MBB.end() && (MBBI->getOpcode() == MSP430::PUSH16r)) 86 if (MBBI != MBB.end()) 92 //NumBytes -= mergeSPUpdates(MBB, MBBI, true); 95 // mergeSPUpdatesDown(MBB, MBBI, &NumBytes) [all...] |
/external/swiftshader/third_party/LLVM/lib/Target/Blackfin/ |
BlackfinInstrInfo.cpp | 79 InsertBranch(MachineBasicBlock &MBB, 92 BuildMI(&MBB, DL, get(BF::JUMPa)).addMBB(TBB); 100 void BlackfinInstrInfo::copyPhysReg(MachineBasicBlock &MBB, 105 BuildMI(MBB, I, DL, get(BF::MOVE), DestReg) 111 BuildMI(MBB, I, DL, get(BF::SLL16i), DestReg) 119 BuildMI(MBB, I, DL, get(BF::MOVENCC_z), DestReg) 121 BuildMI(MBB, I, DL, get(BF::BITTGL), DestReg).addReg(DestReg).addImm(0); 125 BuildMI(MBB, I, DL, get(BF::MOVECC_zext), DestReg) 133 BuildMI(MBB, I, DL, get(BF::SETEQri_not), DestReg) 138 BuildMI(MBB, I, DL, get(BF::MOVECC_nz), DestReg [all...] |
BlackfinFrameLowering.cpp | 44 MachineBasicBlock &MBB = MF.front(); // Prolog goes in entry BB 45 MachineBasicBlock::iterator MBBI = MBB.begin(); 52 DebugLoc dl = MBBI != MBB.end() ? MBBI->getDebugLoc() : DebugLoc(); 63 RegInfo->adjustRegister(MBB, MBBI, dl, BF::SP, BF::P1, -FrameSize); 69 BuildMI(MBB, MBBI, dl, TII.get(BF::LINK)).addImm(FrameSize); 79 BuildMI(MBB, MBBI, dl, TII.get(BF::PUSH)) 81 BuildMI(MBB, MBBI, dl, TII.get(BF::PUSH)) 83 BuildMI(MBB, MBBI, dl, TII.get(BF::MOVE), BF::FP) 85 RegInfo->loadConstant(MBB, MBBI, dl, BF::P1, -FrameSize); 86 BuildMI(MBB, MBBI, dl, TII.get(BF::ADDpp), BF::SP [all...] |
/external/llvm/lib/Target/WebAssembly/ |
WebAssemblyInstrInfo.cpp | 51 void WebAssemblyInstrInfo::copyPhysReg(MachineBasicBlock &MBB, 57 auto &MRI = MBB.getParent()->getRegInfo(); 75 BuildMI(MBB, I, DL, get(CopyLocalOpcode), DestReg) 95 bool WebAssemblyInstrInfo::analyzeBranch(MachineBasicBlock &MBB, 101 for (MachineInstr &MI : MBB.terminators()) { 145 unsigned WebAssemblyInstrInfo::RemoveBranch(MachineBasicBlock &MBB) const { 146 MachineBasicBlock::instr_iterator I = MBB.instr_end(); 149 while (I != MBB.instr_begin()) { 157 I = MBB.instr_end(); 164 unsigned WebAssemblyInstrInfo::InsertBranch(MachineBasicBlock &MBB, [all...] |
/external/swiftshader/third_party/LLVM/lib/CodeGen/ |
MachineVerifier.cpp | 93 // Is this MBB reachable from the MF entry point? 100 // Regs killed in MBB. They may be defined again, and will then be in both 104 // Regs defined in MBB and live out. Note that vregs passing through may 108 // Vregs that pass through MBB untouched. This set is disjoint from 112 // Vregs that must pass through MBB because they are needed by a successor 171 // Extra register info per MBB. 185 void visitMachineBasicBlockBefore(const MachineBasicBlock *MBB); 189 void visitMachineBasicBlockAfter(const MachineBasicBlock *MBB); 193 void report(const char *msg, const MachineBasicBlock *MBB); 197 void markReachable(const MachineBasicBlock *MBB); [all...] |
/external/swiftshader/third_party/LLVM/lib/Target/Mips/ |
MipsFrameLowering.cpp | 111 MachineBasicBlock& MBB, 120 MachineFunction* MF = MBB.getParent(); 128 BuildMI(MBB, I, DL, TII->get(Mips::NOAT)); 129 BuildMI(MBB, I, DL, TII->get(Mips::LUi), Mips::AT).addImm(ImmHi); 130 BuildMI(MBB, I, DL, TII->get(Mips::ADDu), Mips::AT).addReg(OrigReg) 139 MachineBasicBlock &MBB = MF.front(); 146 MachineBasicBlock::iterator MBBI = MBB.begin(); 147 DebugLoc dl = MBBI != MBB.end() ? MBBI->getDebugLoc() : DebugLoc(); 165 BuildMI(MBB, MBBI, dl, TII.get(Mips::NOREORDER)); 169 BuildMI(MBB, MBBI, dl, TII.get(Mips::CPLOAD) [all...] |
/external/llvm/lib/Target/ARM/ |
Thumb1InstrInfo.cpp | 40 void Thumb1InstrInfo::copyPhysReg(MachineBasicBlock &MBB, 45 MachineFunction &MF = *MBB.getParent(); 53 AddDefaultPred(BuildMI(MBB, I, DL, get(ARM::tMOVr), DestReg) 63 AddDefaultPred(BuildMI(MBB, I, DL, get(ARM::tPUSH))) 65 AddDefaultPred(BuildMI(MBB, I, DL, get(ARM::tPOP))) 71 storeRegToStackSlot(MachineBasicBlock &MBB, MachineBasicBlock::iterator I, 83 if (I != MBB.end()) DL = I->getDebugLoc(); 85 MachineFunction &MF = *MBB.getParent(); 90 AddDefaultPred(BuildMI(MBB, I, DL, get(ARM::tSTRspi)) 97 loadRegFromStackSlot(MachineBasicBlock &MBB, MachineBasicBlock::iterator I [all...] |
/prebuilts/clang/host/darwin-x86/clang-4579689/include/llvm/CodeGen/ |
MachineOptimizationRemarkEmitter.h | 34 const MachineBasicBlock *MBB) 36 *MBB->getParent()->getFunction(), Loc), 37 MBB(MBB) {} 50 const MachineBasicBlock *getBlock() const { return MBB; } 53 const MachineBasicBlock *MBB; 62 /// Loc is the debug location and \p MBB is the block that the optimization 66 const MachineBasicBlock *MBB) 68 RemarkName, Loc, MBB) {} 88 /// remark. \p Loc is the debug location and \p MBB is the block that th [all...] |
/prebuilts/clang/host/darwin-x86/clang-4630689/include/llvm/CodeGen/ |
MachineOptimizationRemarkEmitter.h | 34 const MachineBasicBlock *MBB) 36 *MBB->getParent()->getFunction(), Loc), 37 MBB(MBB) {} 50 const MachineBasicBlock *getBlock() const { return MBB; } 53 const MachineBasicBlock *MBB; 62 /// Loc is the debug location and \p MBB is the block that the optimization 66 const MachineBasicBlock *MBB) 68 RemarkName, Loc, MBB) {} 88 /// remark. \p Loc is the debug location and \p MBB is the block that th [all...] |
/prebuilts/clang/host/darwin-x86/clang-4639204/include/llvm/CodeGen/ |
MachineOptimizationRemarkEmitter.h | 34 const MachineBasicBlock *MBB) 36 *MBB->getParent()->getFunction(), Loc), 37 MBB(MBB) {} 50 const MachineBasicBlock *getBlock() const { return MBB; } 53 const MachineBasicBlock *MBB; 62 /// Loc is the debug location and \p MBB is the block that the optimization 66 const MachineBasicBlock *MBB) 68 RemarkName, Loc, MBB) {} 88 /// remark. \p Loc is the debug location and \p MBB is the block that th [all...] |
/prebuilts/clang/host/darwin-x86/clang-4691093/include/llvm/CodeGen/ |
MachineOptimizationRemarkEmitter.h | 34 const MachineBasicBlock *MBB) 36 *MBB->getParent()->getFunction(), Loc), 37 MBB(MBB) {} 50 const MachineBasicBlock *getBlock() const { return MBB; } 53 const MachineBasicBlock *MBB; 62 /// Loc is the debug location and \p MBB is the block that the optimization 66 const MachineBasicBlock *MBB) 68 RemarkName, Loc, MBB) {} 88 /// remark. \p Loc is the debug location and \p MBB is the block that th [all...] |
/prebuilts/clang/host/linux-x86/clang-4579689/include/llvm/CodeGen/ |
MachineOptimizationRemarkEmitter.h | 34 const MachineBasicBlock *MBB) 36 *MBB->getParent()->getFunction(), Loc), 37 MBB(MBB) {} 50 const MachineBasicBlock *getBlock() const { return MBB; } 53 const MachineBasicBlock *MBB; 62 /// Loc is the debug location and \p MBB is the block that the optimization 66 const MachineBasicBlock *MBB) 68 RemarkName, Loc, MBB) {} 88 /// remark. \p Loc is the debug location and \p MBB is the block that th [all...] |
/prebuilts/clang/host/linux-x86/clang-4630689/include/llvm/CodeGen/ |
MachineOptimizationRemarkEmitter.h | 34 const MachineBasicBlock *MBB) 36 *MBB->getParent()->getFunction(), Loc), 37 MBB(MBB) {} 50 const MachineBasicBlock *getBlock() const { return MBB; } 53 const MachineBasicBlock *MBB; 62 /// Loc is the debug location and \p MBB is the block that the optimization 66 const MachineBasicBlock *MBB) 68 RemarkName, Loc, MBB) {} 88 /// remark. \p Loc is the debug location and \p MBB is the block that th [all...] |