/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
H A D | WebAssemblyLateEHPrepare.cpp | 75 MachineBasicBlock *MBB = WL.pop_back_val(); in getMatchingEHPad() local 76 if (!Visited.insert(MBB).second) in getMatchingEHPad() 78 if (MBB->isEHPad()) { in getMatchingEHPad() 79 if (EHPad && EHPad != MBB) in getMatchingEHPad() 81 EHPad = MBB; in getMatchingEHPad() 84 if (MBB == &MF->front()) in getMatchingEHPad() 86 for (auto *Pred : MBB->predecessors()) in getMatchingEHPad() 100 MachineBasicBlock *MBB = WL.pop_back_val(); in eraseDeadBBsAndChildren() local 101 if (Deleted.count(MBB) || !MBB->pred_empty()) in eraseDeadBBsAndChildren() 103 SmallVector<MachineBasicBlock *, 4> Succs(MBB->successors()); in eraseDeadBBsAndChildren() [all …]
|
H A D | WebAssemblyCFGSort.cpp | 81 static void maybeUpdateTerminator(MachineBasicBlock *MBB) { in maybeUpdateTerminator() argument 86 for (const MachineInstr &Term : MBB->terminators()) { in maybeUpdateTerminator() 96 MachineFunction *MF = MBB->getParent(); in maybeUpdateTerminator() 98 unsigned(MBB->getNumber() + 1) < MF->getNumBlockIDs() in maybeUpdateTerminator() 99 ? MF->getBlockNumbered(MBB->getNumber() + 1) in maybeUpdateTerminator() 103 MBB->updateTerminator(OriginalSuccessor); in maybeUpdateTerminator() 197 for (MachineBasicBlock &MBB : MF) { in sortBlocks() 198 unsigned N = MBB.pred_size(); in sortBlocks() 199 if (MachineLoop *L = MLI.getLoopFor(&MBB)) in sortBlocks() 200 if (L->getHeader() == &MBB) in sortBlocks() [all …]
|
H A D | WebAssemblyCFGStackify.cpp | 71 void placeBlockMarker(MachineBasicBlock &MBB); 72 void placeLoopMarker(MachineBasicBlock &MBB); 73 void placeTryMarker(MachineBasicBlock &MBB); 87 const MachineBasicBlock *MBB); 89 const MachineBasicBlock *MBB); 163 MachineBasicBlock *MBB) { in explicitlyBranchesTo() argument 166 if (MO.isMBB() && MO.getMBB() == MBB) in explicitlyBranchesTo() 178 getEarliestInsertPos(MachineBasicBlock *MBB, const Container &BeforeSet, in getEarliestInsertPos() argument 180 auto InsertPos = MBB->end(); in getEarliestInsertPos() 181 while (InsertPos != MBB->begin()) { in getEarliestInsertPos() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86PreTileConfig.cpp | 58 MachineBasicBlock *MBB = nullptr; member 62 MIRef(MachineBasicBlock *MBB) : MBB(MBB) { in MIRef() 63 for (auto I = MBB->begin(), E = MBB->end(); I != E && I->isPHI(); in MIRef() 68 : MI(MI), MBB(MI->getParent()), in MIRef() 69 Pos(std::distance(MBB->instr_begin(), ++MI->getIterator())) {} in MIRef() 70 MIRef(MachineInstr *MI, MachineBasicBlock *MBB) in MIRef() 71 : MI(MI), MBB(MBB), in MIRef() 72 Pos(std::distance(MBB->instr_begin(), ++MI->getIterator())) {} in MIRef() 73 MIRef(MachineInstr *MI, MachineBasicBlock *MBB, size_t Pos) in MIRef() 74 : MI(MI), MBB(MBB), Pos(Pos) {} in MIRef() [all …]
|
H A D | X86IndirectBranchTracking.cpp | 62 bool addENDBR(MachineBasicBlock &MBB, MachineBasicBlock::iterator I) const; 74 MachineBasicBlock &MBB, MachineBasicBlock::iterator I) const { in addENDBR() argument 81 if (I == MBB.end() || I->getOpcode() != EndbrOpcode) { in addENDBR() 82 BuildMI(MBB, I, MBB.findDebugLoc(I), TII->get(EndbrOpcode)); in addENDBR() 143 auto MBB = MF.begin(); in runOnMachineFunction() local 144 Changed |= addENDBR(*MBB, MBB->begin()); in runOnMachineFunction() 147 for (auto &MBB : MF) { in runOnMachineFunction() local 150 if (MBB.hasAddressTaken()) in runOnMachineFunction() 151 Changed |= addENDBR(MBB, MBB.begin()); in runOnMachineFunction() 153 for (MachineBasicBlock::iterator I = MBB.begin(); I != MBB.end(); ++I) { in runOnMachineFunction() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/ |
H A D | LoongArchExpandPseudoInsts.cpp | 57 bool expandMBB(MachineBasicBlock &MBB); 58 bool expandMI(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, 60 bool expandPcalau12iInstPair(MachineBasicBlock &MBB, 65 bool expandLoadAddressPcrel(MachineBasicBlock &MBB, 68 bool expandLoadAddressGot(MachineBasicBlock &MBB, 71 bool expandLoadAddressTLSLE(MachineBasicBlock &MBB, 74 bool expandLoadAddressTLSIE(MachineBasicBlock &MBB, 77 bool expandLoadAddressTLSLD(MachineBasicBlock &MBB, 80 bool expandLoadAddressTLSGD(MachineBasicBlock &MBB, 83 bool expandLoadAddressTLSDesc(MachineBasicBlock &MBB, [all …]
|
H A D | LoongArchExpandAtomicPseudoInsts.cpp | 47 bool expandMBB(MachineBasicBlock &MBB); 48 bool expandMI(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, 50 bool expandAtomicBinOp(MachineBasicBlock &MBB, 54 bool expandAtomicMinMaxOp(MachineBasicBlock &MBB, 58 bool expandAtomicCmpXchg(MachineBasicBlock &MBB, 69 for (auto &MBB : MF) in runOnMachineFunction() local 70 Modified |= expandMBB(MBB); in runOnMachineFunction() 74 bool LoongArchExpandAtomicPseudo::expandMBB(MachineBasicBlock &MBB) { in expandMBB() argument 77 MachineBasicBlock::iterator MBBI = MBB.begin(), E = MBB in expandMBB() 88 expandMI(MachineBasicBlock & MBB,MachineBasicBlock::iterator MBBI,MachineBasicBlock::iterator & NextMBBI) expandMI() argument 225 insertMaskedMerge(const LoongArchInstrInfo * TII,DebugLoc DL,MachineBasicBlock * MBB,Register DestReg,Register OldValReg,Register NewValReg,Register MaskReg,Register ScratchReg) insertMaskedMerge() argument 313 expandAtomicBinOp(MachineBasicBlock & MBB,MachineBasicBlock::iterator MBBI,AtomicRMWInst::BinOp BinOp,bool IsMasked,int Width,MachineBasicBlock::iterator & NextMBBI) expandAtomicBinOp() argument 351 insertSext(const LoongArchInstrInfo * TII,DebugLoc DL,MachineBasicBlock * MBB,Register ValReg,Register ShamtReg) insertSext() argument 362 expandAtomicMinMaxOp(MachineBasicBlock & MBB,MachineBasicBlock::iterator MBBI,AtomicRMWInst::BinOp BinOp,bool IsMasked,int Width,MachineBasicBlock::iterator & NextMBBI) expandAtomicMinMaxOp() argument 493 expandAtomicCmpXchg(MachineBasicBlock & MBB,MachineBasicBlock::iterator MBBI,bool IsMasked,int Width,MachineBasicBlock::iterator & NextMBBI) expandAtomicCmpXchg() argument [all...] |
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | R600MachineCFGStructurizer.cpp | 182 int getSCCNum(MachineBasicBlock *MBB) const; 184 bool hasBackEdge(MachineBasicBlock *MBB) const; 185 bool isRetiredBlock(MachineBasicBlock *MBB) const; 186 bool isActiveLoophead(MachineBasicBlock *MBB) const; 191 bool needMigrateBlock(MachineBasicBlock *MBB) const; 195 MachineBasicBlock &MBB); 200 void insertInstrEnd(MachineBasicBlock *MBB, int NewOpcode, 202 MachineInstr *insertInstrBefore(MachineBasicBlock *MBB, int NewOpcode, 207 void insertCondBranchBefore(MachineBasicBlock *MBB, 216 static void setTrueBranch(MachineInstr *MI, MachineBasicBlock *MBB); [all …]
|
H A D | SILowerControlFlow.cpp | 111 bool removeMBBifRedundant(MachineBasicBlock &MBB); 119 skipIgnoreExecInstsTrivialSucc(MachineBasicBlock &MBB, 124 skipToUncondBrOrEnd(MachineBasicBlock &MBB, in skipToUncondBrOrEnd() argument 129 MachineBasicBlock::iterator End = MBB.end(); in skipToUncondBrOrEnd() 182 MachineBasicBlock *MBB = Worklist.pop_back_val(); in hasKill() local 184 if (MBB == End || !Visited.insert(MBB).second) in hasKill() 186 if (KillBlocks.contains(MBB)) in hasKill() 189 Worklist.append(MBB->succ_begin(), MBB->succ_end()); in hasKill() 208 MachineBasicBlock &MBB = *MI.getParent(); in emitIf() local 235 BuildMI(MBB, I, DL, TII->get(AMDGPU::COPY), CopyReg) in emitIf() [all …]
|
H A D | SILowerI1Copies.cpp | 35 insertUndefLaneMask(MachineBasicBlock *MBB, MachineRegisterInfo *MRI, 76 MachineBasicBlock *MBB) override; 77 void buildMergeLaneMasks(MachineBasicBlock &MBB, 144 bool isSource(MachineBasicBlock &MBB) const { in isSource() 145 return ReachableMap.find(&MBB)->second; in isSource() 162 MachineBasicBlock *MBB = Incoming.Block; in analyze() local 163 if (MBB == &DefBlock) { in analyze() 168 ReachableMap.try_emplace(MBB, false); in analyze() 169 ReachableOrdered.push_back(MBB); in analyze() 173 if (TII->hasDivergentBranch(MBB) && PDT.dominates(&DefBlock, MBB)) in analyze() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | BranchRelaxation.cpp | 66 /// Compute the offset immediately following this block. \p MBB is the next 68 unsigned postOffset(const MachineBasicBlock &MBB) const { in postOffset() 70 const Align Alignment = MBB.getAlignment(); in postOffset() 71 const Align ParentAlign = MBB.getParent()->getAlignment(); in postOffset() 75 // The alignment of this MBB is larger than the function's alignment, so we in postOffset() 110 uint64_t computeBlockSize(const MachineBasicBlock &MBB) const; in BranchRelaxation() 137 for (MachineBasicBlock &MBB : *MF) { in INITIALIZE_PASS() 138 const unsigned Num = MBB.getNumber(); in INITIALIZE_PASS() 139 assert(!Num || BlockInfo[PrevNum].postOffset(MBB) <= BlockInfo[Num].Offset); in INITIALIZE_PASS() 140 assert(BlockInfo[Num].Size == computeBlockSize(MBB)); in INITIALIZE_PASS() 191 const MachineBasicBlock *MBB = MI.getParent(); getInstrOffset() local 209 for (auto &MBB : adjustBlockOffsets() local 320 MachineBasicBlock *MBB = MI.getParent(); fixupConditionalBranch() local 332 __anon6cb7e2b90202(MachineBasicBlock *MBB, MachineBasicBlock *DestBB) fixupConditionalBranch() argument 340 __anon6cb7e2b90402(MachineBasicBlock *MBB) fixupConditionalBranch() argument 348 __anon6cb7e2b90502(MachineBasicBlock *MBB, MachineBasicBlock *NewBB) fixupConditionalBranch() argument 457 MachineBasicBlock *MBB = MI.getParent(); fixupUnconditionalBranch() local [all...] |
H A D | BranchFolding.cpp | 156 void BranchFolder::RemoveDeadBlock(MachineBasicBlock *MBB) { in RemoveDeadBlock() argument 157 assert(MBB->pred_empty() && "MBB must be dead!"); in RemoveDeadBlock() 158 LLVM_DEBUG(dbgs() << "\nRemoving MBB: " << *MBB); in RemoveDeadBlock() 160 MachineFunction *MF = MBB->getParent(); in RemoveDeadBlock() 162 while (!MBB->succ_empty()) in RemoveDeadBlock() 163 MBB->removeSuccessor(MBB->succ_end()-1); in RemoveDeadBlock() 166 TriedMerging.erase(MBB); in RemoveDeadBlock() 169 for (const MachineInstr &MI : *MBB) in RemoveDeadBlock() 174 MF->erase(MBB); in RemoveDeadBlock() 175 EHScopeMembership.erase(MBB); in RemoveDeadBlock() [all …]
|
H A D | ReachingDefAnalysis.cpp | 51 void ReachingDefAnalysis::enterBasicBlock(MachineBasicBlock *MBB) { in enterBasicBlock() argument 52 unsigned MBBNumber = MBB->getNumber(); in enterBasicBlock() 66 if (MBB->pred_empty()) { in enterBasicBlock() 67 for (const auto &LI : MBB->liveins()) { in enterBasicBlock() 78 LLVM_DEBUG(dbgs() << printMBBReference(*MBB) << ": entry\n"); in enterBasicBlock() 83 for (MachineBasicBlock *pred : MBB->predecessors()) { in enterBasicBlock() 103 void ReachingDefAnalysis::leaveBasicBlock(MachineBasicBlock *MBB) { in leaveBasicBlock() argument 105 unsigned MBBNumber = MBB->getNumber(); in leaveBasicBlock() 147 void ReachingDefAnalysis::reprocessBasicBlock(MachineBasicBlock *MBB) { in reprocessBasicBlock() argument 148 unsigned MBBNumber = MBB->getNumber(); in reprocessBasicBlock() [all …]
|
H A D | BasicBlockSections.cpp | 148 for (auto &MBB : MF) { in INITIALIZE_PASS_DEPENDENCY() local 149 auto NextMBBI = std::next(MBB.getIterator()); in INITIALIZE_PASS_DEPENDENCY() 150 auto *FTMBB = PreLayoutFallThroughs[MBB.getNumber()]; in INITIALIZE_PASS_DEPENDENCY() 157 if (FTMBB && (MBB.isEndSection() || &*NextMBBI != FTMBB)) in INITIALIZE_PASS_DEPENDENCY() 158 TII->insertUnconditionalBranch(MBB, FTMBB, MBB.findBranchDebugLoc()); in INITIALIZE_PASS_DEPENDENCY() 162 if (MBB.isEndSection()) in INITIALIZE_PASS_DEPENDENCY() 169 if (TII->analyzeBranch(MBB, TBB, FBB, Cond)) in INITIALIZE_PASS_DEPENDENCY() 171 MBB.updateTerminator(FTMBB); in INITIALIZE_PASS_DEPENDENCY() 194 for (auto &MBB : MF) { in assignSections() local 205 MBB.setSectionID(MBB.getNumber()); in assignSections() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64SpeculationHardening.cpp | 150 bool instrumentControlFlow(MachineBasicBlock &MBB, 152 bool endsWithCondControlFlow(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, 157 void insertSPToRegTaintPropagation(MachineBasicBlock &MBB, 159 void insertRegToSPTaintPropagation(MachineBasicBlock &MBB, 162 void insertFullSpeculationBarrier(MachineBasicBlock &MBB, 166 bool slhLoads(MachineBasicBlock &MBB); 167 bool makeGPRSpeculationSafe(MachineBasicBlock &MBB, 170 bool lowerSpeculationSafeValuePseudos(MachineBasicBlock &MBB, 172 bool expandSpeculationSafeValue(MachineBasicBlock &MBB, 175 bool insertCSDB(MachineBasicBlock &MBB, MachineBasicBloc 187 endsWithCondControlFlow(MachineBasicBlock & MBB,MachineBasicBlock * & TBB,MachineBasicBlock * & FBB,AArch64CC::CondCode & CondCode) const endsWithCondControlFlow() argument 218 insertFullSpeculationBarrier(MachineBasicBlock & MBB,MachineBasicBlock::iterator MBBI,DebugLoc DL) const insertFullSpeculationBarrier() argument 241 instrumentControlFlow(MachineBasicBlock & MBB,bool & UsesFullSpeculationBarrier) instrumentControlFlow() argument 361 insertSPToRegTaintPropagation(MachineBasicBlock & MBB,MachineBasicBlock::iterator MBBI) const insertSPToRegTaintPropagation() argument 385 insertRegToSPTaintPropagation(MachineBasicBlock & MBB,MachineBasicBlock::iterator MBBI,unsigned TmpReg) const insertRegToSPTaintPropagation() argument 433 makeGPRSpeculationSafe(MachineBasicBlock & MBB,MachineBasicBlock::iterator MBBI,MachineInstr & MI,unsigned Reg) makeGPRSpeculationSafe() argument 461 slhLoads(MachineBasicBlock & MBB) slhLoads() argument 550 expandSpeculationSafeValue(MachineBasicBlock & MBB,MachineBasicBlock::iterator MBBI,bool UsesFullSpeculationBarrier) expandSpeculationSafeValue() argument 591 insertCSDB(MachineBasicBlock & MBB,MachineBasicBlock::iterator MBBI,DebugLoc DL) insertCSDB() argument 604 lowerSpeculationSafeValuePseudos(MachineBasicBlock & MBB,bool UsesFullSpeculationBarrier) lowerSpeculationSafeValuePseudos() argument 673 for (auto &MBB : MF) runOnMachineFunction() local 691 for (auto &MBB : MF) { runOnMachineFunction() local [all...] |
H A D | AArch64BranchTargets.cpp | 42 void addBTI(MachineBasicBlock &MBB, bool CouldCall, bool CouldJump, 75 for (auto *MBB : JTE.MBBs) in runOnMachineFunction() local 76 JumpTableTargets.insert(MBB); in runOnMachineFunction() 80 for (MachineBasicBlock &MBB : MF) { in runOnMachineFunction() 91 if (&MBB == &*MF.begin()) in runOnMachineFunction() 96 if (MBB.hasAddressTaken() || JumpTableTargets.count(&MBB)) in runOnMachineFunction() 100 addBTI(MBB, CouldCall, CouldJump, HasWinCFI); in runOnMachineFunction() 108 void AArch64BranchTargets::addBTI(MachineBasicBlock &MBB, bool CouldCall, in addBTI() argument 111 << (CouldCall ? "c" : "") << " to " << MBB.getName() in addBTI() 115 MBB.getParent()->getSubtarget().getInstrInfo()); in addBTI() [all …]
|
H A D | AArch64ExpandPseudoInsts.cpp | 64 bool expandMBB(MachineBasicBlock &MBB); 65 bool expandMI(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, 67 bool expandMultiVecPseudo(MachineBasicBlock &MBB, 72 bool expandMOVImm(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, 75 bool expand_DestructiveOp(MachineInstr &MI, MachineBasicBlock &MBB, 77 bool expandCMP_SWAP(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, 81 bool expandCMP_SWAP_128(MachineBasicBlock &MBB, 84 bool expandSetTagLoop(MachineBasicBlock &MBB, 87 bool expandSVESpillFill(MachineBasicBlock &MBB, 90 bool expandCALL_RVMARKER(MachineBasicBlock &MBB, [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVExpandPseudoInsts.cpp | 44 bool expandMBB(MachineBasicBlock &MBB); 45 bool expandMI(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, 47 bool expandCCOp(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, 49 bool expandVSetVL(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI); 50 bool expandVMSET_VMCLR(MachineBasicBlock &MBB, 52 bool expandRV32ZdinxStore(MachineBasicBlock &MBB, 54 bool expandRV32ZdinxLoad(MachineBasicBlock &MBB, 59 for (auto &MBB : MF) in getInstSizeInBytes() local 60 for (auto &MI : MBB) in getInstSizeInBytes() 78 for (auto &MBB : MF) in runOnMachineFunction() local [all …]
|
H A D | RISCVInsertWriteVXRM.cpp | 188 bool computeVXRMChanges(const MachineBasicBlock &MBB); 189 void computeAvailable(const MachineBasicBlock &MBB); 190 void computeAnticipated(const MachineBasicBlock &MBB); 191 void emitWriteVXRM(MachineBasicBlock &MBB); 211 bool RISCVInsertWriteVXRM::computeVXRMChanges(const MachineBasicBlock &MBB) { in computeVXRMChanges() argument 212 BlockData &BBInfo = BlockInfo[MBB.getNumber()]; in computeVXRMChanges() 215 for (const MachineInstr &MI : MBB) { in computeVXRMChanges() 240 void RISCVInsertWriteVXRM::computeAvailable(const MachineBasicBlock &MBB) { in computeAvailable() argument 241 BlockData &BBInfo = BlockInfo[MBB.getNumber()]; in computeAvailable() 246 if (MBB.pred_empty()) { in computeAvailable() [all …]
|
H A D | RISCVExpandAtomicPseudoInsts.cpp | 48 bool expandMBB(MachineBasicBlock &MBB); 49 bool expandMI(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, 51 bool expandAtomicBinOp(MachineBasicBlock &MBB, 55 bool expandAtomicMinMaxOp(MachineBasicBlock &MBB, 59 bool expandAtomicCmpXchg(MachineBasicBlock &MBB, 65 for (auto &MBB : MF) in getInstSizeInBytes() 66 for (auto &MI : MBB) in getInstSizeInBytes() 84 for (auto &MBB : MF) in runOnMachineFunction() 85 Modified |= expandMBB(MBB); in runOnMachineFunction() 94 bool RISCVExpandAtomicPseudo::expandMBB(MachineBasicBlock &MBB) { in expandMBB() 64 for (auto &MBB : MF) getInstSizeInBytes() local 82 for (auto &MBB : MF) runOnMachineFunction() local 92 expandMBB(MachineBasicBlock & MBB) expandMBB() argument 105 expandMI(MachineBasicBlock & MBB,MachineBasicBlock::iterator MBBI,MachineBasicBlock::iterator & NextMBBI) expandMI() argument 276 insertMaskedMerge(const RISCVInstrInfo * TII,DebugLoc DL,MachineBasicBlock * MBB,Register DestReg,Register OldValReg,Register NewValReg,Register MaskReg,Register ScratchReg) insertMaskedMerge() argument 361 expandAtomicBinOp(MachineBasicBlock & MBB,MachineBasicBlock::iterator MBBI,AtomicRMWInst::BinOp BinOp,bool IsMasked,int Width,MachineBasicBlock::iterator & NextMBBI) expandAtomicBinOp() argument 399 insertSext(const RISCVInstrInfo * TII,DebugLoc DL,MachineBasicBlock * MBB,Register ValReg,Register ShamtReg) insertSext() argument 410 expandAtomicMinMaxOp(MachineBasicBlock & MBB,MachineBasicBlock::iterator MBBI,AtomicRMWInst::BinOp BinOp,bool IsMasked,int Width,MachineBasicBlock::iterator & NextMBBI) expandAtomicMinMaxOp() argument 541 tryToFoldBNEOnCmpXchgResult(MachineBasicBlock & MBB,MachineBasicBlock::iterator MBBI,Register DestReg,Register CmpValReg,Register MaskReg,MachineBasicBlock * & LoopHeadBNETarget) tryToFoldBNEOnCmpXchgResult() argument 597 expandAtomicCmpXchg(MachineBasicBlock & MBB,MachineBasicBlock::iterator MBBI,bool IsMasked,int Width,MachineBasicBlock::iterator & NextMBBI) expandAtomicCmpXchg() argument [all...] |
/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/ |
H A D | AVRExpandPseudoInsts.cpp | 52 bool expandMBB(Block &MBB); 53 bool expandMI(Block &MBB, BlockIt MBBI); 54 template <unsigned OP> bool expand(Block &MBB, BlockIt MBBI); 56 MachineInstrBuilder buildMI(Block &MBB, BlockIt MBBI, unsigned Opcode) { in buildMI() argument 57 return BuildMI(MBB, MBBI, MBBI->getDebugLoc(), TII->get(Opcode)); in buildMI() 60 MachineInstrBuilder buildMI(Block &MBB, BlockIt MBBI, unsigned Opcode, in buildMI() argument 62 return BuildMI(MBB, MBBI, MBBI->getDebugLoc(), TII->get(Opcode), DstReg); in buildMI() 65 MachineRegisterInfo &getRegInfo(Block &MBB) { in getRegInfo() argument 66 return MBB.getParent()->getRegInfo(); in getRegInfo() 69 bool expandArith(unsigned OpLo, unsigned OpHi, Block &MBB, BlockIt MBBI); [all …]
|
H A D | AVRFrameLowering.cpp | 51 MachineBasicBlock &MBB) const { 52 MachineBasicBlock::iterator MBBI = MBB.begin(); in emitPrologue() 53 DebugLoc DL = (MBBI != MBB.end()) ? MBBI->getDebugLoc() : DebugLoc(); in emitPrologue() 62 BuildMI(MBB, MBBI, DL, TII.get(AVR::BSETs)) in emitPrologue() 70 BuildMI(MBB, MBBI, DL, TII.get(AVR::PUSHRr)) in emitPrologue() 74 BuildMI(MBB, MBBI, DL, TII.get(AVR::INRdA), STI.getTmpRegister()) in emitPrologue() 77 BuildMI(MBB, MBBI, DL, TII.get(AVR::PUSHRr)) in emitPrologue() 81 BuildMI(MBB, MBBI, DL, TII.get(AVR::PUSHRr)) in emitPrologue() 84 BuildMI(MBB, MBBI, DL, TII.get(AVR::EORRdRr)) in emitPrologue() 102 (MBBI != MBB in emitPrologue() 140 restoreStatusRegister(MachineFunction & MF,MachineBasicBlock & MBB) restoreStatusRegister() argument 246 spillCalleeSavedRegisters(MachineBasicBlock & MBB,MachineBasicBlock::iterator MI,ArrayRef<CalleeSavedInfo> CSI,const TargetRegisterInfo * TRI) const spillCalleeSavedRegisters() argument 296 restoreCalleeSavedRegisters(MachineBasicBlock & MBB,MachineBasicBlock::iterator MI,MutableArrayRef<CalleeSavedInfo> CSI,const TargetRegisterInfo * TRI) const restoreCalleeSavedRegisters() argument 321 fixStackStores(MachineBasicBlock & MBB,MachineBasicBlock::iterator StartMI,const TargetInstrInfo & TII) fixStackStores() argument 350 eliminateCallFramePseudoInstr(MachineFunction & MF,MachineBasicBlock & MBB,MachineBasicBlock::iterator MI) const eliminateCallFramePseudoInstr() argument [all...] |
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/ |
H A D | MipsSEFrameLowering.cpp | 75 bool expandInstr(MachineBasicBlock &MBB, Iter I); 76 void expandLoadCCond(MachineBasicBlock &MBB, Iter I); 77 void expandStoreCCond(MachineBasicBlock &MBB, Iter I); 78 void expandLoadACC(MachineBasicBlock &MBB, Iter I, unsigned RegSize); 79 void expandStoreACC(MachineBasicBlock &MBB, Iter I, unsigned MFHiOpc, 81 bool expandCopy(MachineBasicBlock &MBB, Iter I); 82 bool expandCopyACC(MachineBasicBlock &MBB, Iter I, unsigned MFHiOpc, 84 bool expandBuildPairF64(MachineBasicBlock &MBB, 86 bool expandExtractElementF64(MachineBasicBlock &MBB, 107 for (auto &MBB : MF) { in expand() local [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/MSP430/ |
H A D | MSP430FrameLowering.cpp | 45 void MSP430FrameLowering::BuildCFI(MachineBasicBlock &MBB, in BuildCFI() argument 50 MachineFunction &MF = *MBB.getParent(); in BuildCFI() 52 BuildMI(MBB, MBBI, DL, TII.get(TargetOpcode::CFI_INSTRUCTION)) in BuildCFI() 58 MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, in emitCalleeSavedFrameMoves() argument 60 MachineFunction &MF = *MBB.getParent(); in emitCalleeSavedFrameMoves() 74 BuildCFI(MBB, MBBI, DL, in emitCalleeSavedFrameMoves() 77 BuildCFI(MBB, MBBI, DL, in emitCalleeSavedFrameMoves() 84 MachineBasicBlock &MBB) const { in emitPrologue() 85 assert(&MF.front() == &MBB && "Shrink-wrapping not yet supported"); in emitPrologue() 91 MachineBasicBlock::iterator MBBI = MBB.begin(); in emitPrologue() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/M68k/ |
H A D | M68kFrameLowering.cpp | 137 static unsigned findDeadCallerSavedReg(MachineBasicBlock &MBB, in findDeadCallerSavedReg() argument 140 const MachineFunction *MF = MBB.getParent(); in findDeadCallerSavedReg() 146 if (MBBI == MBB.end()) in findDeadCallerSavedReg() 176 static bool isRegLiveIn(MachineBasicBlock &MBB, unsigned Reg) { in isRegLiveIn() argument 177 return llvm::any_of(MBB.liveins(), in isRegLiveIn() 197 void M68kFrameLowering::BuildStackAlignAND(MachineBasicBlock &MBB, in BuildStackAlignAND() argument 210 BuildMI(MBB, MBBI, DL, TII.get(MovOp), Tmp) in BuildStackAlignAND() 214 MachineInstr *MI = BuildMI(MBB, MBBI, DL, TII.get(AndOp), Tmp) in BuildStackAlignAND() 222 BuildMI(MBB, MBBI, DL, TII.get(MovOp), Reg) in BuildStackAlignAND() 228 MachineFunction &MF, MachineBasicBlock &MBB, in eliminateCallFramePseudoInstr() argument [all …]
|