Searched refs:TBB (Results 26 - 50 of 74) sorted by relevance

123

/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/VE/
H A DVEInstrInfo.cpp137 bool VEInstrInfo::analyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, argument
155 TBB = LastInst->getOperand(0).getMBB();
160 parseCondBranch(LastInst, TBB, Cond);
179 TBB = LastInst->getOperand(0).getMBB();
193 parseCondBranch(SecondLastInst, TBB, Cond);
201 TBB = SecondLastInst->getOperand(0).getMBB();
219 MachineBasicBlock *TBB,
223 assert(TBB && "insertBranch must not be told to insert a fallthrough");
231 .addMBB(TBB);
266 .addMBB(TBB);
218 insertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB, MachineBasicBlock *FBB, ArrayRef<MachineOperand> Cond, const DebugLoc &DL, int *BytesAdded) const argument
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineLoopUtils.cpp119 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; local
121 bool CanAnalyzeBr = !TII->analyzeBranch(*Loop, TBB, FBB, Cond);
125 TII->insertBranch(*Loop, TBB == Exit ? NewBB : TBB,
H A DMachineBasicBlock.cpp580 MachineBasicBlock *TBB = nullptr, *FBB = nullptr;
583 bool B = TII->analyzeBranch(*this, TBB, FBB, Cond);
587 if (TBB) {
590 if (isLayoutSuccessor(TBB))
616 if (isLayoutSuccessor(TBB)) {
623 TII->insertBranch(*this, TBB, nullptr, Cond, DL);
633 if (PreviousLayoutSuccessor == TBB) {
638 if (!isLayoutSuccessor(TBB)) {
640 TII->insertBranch(*this, TBB, nullptr, Cond, DL);
646 if (isLayoutSuccessor(TBB)) {
[all...]
H A DBranchFolding.cpp461 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; local
464 if (I != MF->end() && !TII->analyzeBranch(*CurMBB, TBB, FBB, Cond, true)) {
466 if (TBB == NextBB && !Cond.empty() && !FBB) {
1098 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; local
1100 if (!TII->analyzeBranch(*PBB, TBB, FBB, Cond, true)) {
1104 if (!Cond.empty() && TBB == IBB) {
1116 if (TBB && (Cond.empty() || FBB)) {
1121 TII->insertBranch(*PBB, (TBB == IBB) ? FBB : TBB, nullptr,
1894 MachineBasicBlock *TBB local
[all...]
H A DBBSectionsPrepare.cpp180 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; // For analyzeBranch. local
181 if (TII->analyzeBranch(MBB, TBB, FBB, Cond))
H A DMachineBlockPlacement.cpp2642 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; // For analyzeBranch. local
2643 if (!TII->analyzeBranch(*BB, TBB, FBB, Cond) || !FI->canFallThrough())
2741 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; // For analyzeBranch. local
2748 assert((!TII->analyzeBranch(*PrevBB, TBB, FBB, Cond) ||
2752 TBB = FBB = nullptr;
2771 // TBB = FBB = nullptr;
2772 // if (TII->analyzeBranch(*PrevBB, TBB, FBB, Cond)) {
2774 // TBB = FBB = nullptr;
2777 if (!TII->analyzeBranch(*PrevBB, TBB, FBB, Cond)) {
2784 MachineBasicBlock *TBB local
2806 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; // For analyzeBranch. local
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsInstrInfo.cpp96 MachineBasicBlock *&TBB,
101 BranchType BT = analyzeBranch(MBB, TBB, FBB, Cond, AllowModify, BranchInstrs);
106 void MipsInstrInfo::BuildCondBr(MachineBasicBlock &MBB, MachineBasicBlock *TBB, argument
118 MIB.addMBB(TBB);
122 MachineBasicBlock *TBB,
128 assert(TBB && "insertBranch must not be told to insert a fallthrough");
141 BuildCondBr(MBB, TBB, DL, Cond);
149 BuildMI(&MBB, DL, get(UncondBrOpc)).addMBB(TBB);
151 BuildCondBr(MBB, TBB, DL, Cond);
192 MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBloc
95 analyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, SmallVectorImpl<MachineOperand> &Cond, bool AllowModify) const argument
121 insertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB, MachineBasicBlock *FBB, ArrayRef<MachineOperand> Cond, const DebugLoc &DL, int *BytesAdded) const argument
191 analyzeBranch( MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, SmallVectorImpl<MachineOperand> &Cond, bool AllowModify, SmallVectorImpl<MachineInstr *> &BranchInstrs) const argument
[all...]
H A DMipsSEISelLowering.cpp3044 MachineBasicBlock *TBB = F->CreateMachineBasicBlock(LLVM_BB); local
3047 F->insert(It, TBB);
3057 BB->addSuccessor(TBB);
3059 TBB->addSuccessor(Sink);
3062 BuildMI(BB, DL, TII->get(Mips::BPOSGE32)).addMBB(TBB);
3064 BuildMI(BB, DL, TII->get(Mips::BPOSGE32C_MMR3)).addMBB(TBB);
3072 // Fill $TBB.
3074 BuildMI(*TBB, TBB->end(), DL, TII->get(Mips::ADDiu), VR1)
3083 .addMBB(TBB);
3113 MachineBasicBlock *TBB = F->CreateMachineBasicBlock(LLVM_BB); local
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ConditionalCompares.cpp271 // corresponding to TBB.
501 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; local
502 if (TII->analyzeBranch(*Head, TBB, FBB, HeadCond)) {
510 if (!TBB || HeadCond.empty()) {
524 if (TBB != CmpBB) {
525 assert(TBB == Tail && "Unexpected TBB");
530 TBB = FBB = nullptr;
531 if (TII->analyzeBranch(*CmpBB, TBB, FBB, CmpBBCond)) {
537 if (!TBB || CmpBBCon
[all...]
H A DAArch64SpeculationHardening.cpp152 bool endsWithCondControlFlow(MachineBasicBlock &MBB, MachineBasicBlock *&TBB,
187 MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB,
190 if (TII->analyzeBranch(MBB, TBB, FBB, analyzeBranchCondCode, false))
200 assert(TBB != nullptr);
207 if (TBB == FBB)
245 MachineBasicBlock *TBB = nullptr; local
249 if (!endsWithCondControlFlow(MBB, TBB, FBB, CondCode)) {
258 MachineBasicBlock *SplitEdgeTBB = MBB.SplitCriticalEdge(TBB, *this);
186 endsWithCondControlFlow( MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, AArch64CC::CondCode &CondCode) const argument
H A DAArch64InstrInfo.h187 bool analyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB,
193 unsigned insertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB,
309 MachineBasicBlock *TBB,
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVInstrInfo.h58 bool analyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB,
63 unsigned insertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB,
H A DRISCVInstrInfo.cpp237 MachineBasicBlock *&TBB,
241 TBB = FBB = nullptr;
282 TBB = getBranchDestBlock(*I);
288 parseCondBranch(*I, TBB, Cond);
295 parseCondBranch(*std::prev(I), TBB, Cond); local
339 MachineBasicBlock &MBB, MachineBasicBlock *TBB, MachineBasicBlock *FBB,
345 assert(TBB && "insertBranch must not be told to insert a fallthrough");
351 MachineInstr &MI = *BuildMI(&MBB, DL, get(RISCV::PseudoBR)).addMBB(TBB);
360 *BuildMI(&MBB, DL, get(Opc)).add(Cond[1]).add(Cond[2]).addMBB(TBB);
236 analyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, SmallVectorImpl<MachineOperand> &Cond, bool AllowModify) const argument
338 insertBranch( MachineBasicBlock &MBB, MachineBasicBlock *TBB, MachineBasicBlock *FBB, ArrayRef<MachineOperand> Cond, const DebugLoc &DL, int *BytesAdded) const argument
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyLateEHPrepare.cpp180 MachineBasicBlock *TBB = TI->getOperand(0).getMBB(); local
181 if (!MBB.isLayoutSuccessor(TBB))
183 .addMBB(TBB);
H A DWebAssemblyCFGStackify.cpp668 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; local
672 bool Analyzable = !TII.analyzeBranch(*EHPadLayoutPred, TBB, FBB, Cond);
679 if (Analyzable && ((Cond.empty() && TBB && TBB == Cont) ||
1161 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; local
1163 bool Analyzable = !TII.analyzeBranch(*EHPadLayoutPred, TBB, FBB, Cond);
1164 if (Analyzable && !TBB && !FBB) {
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DR600InstrInfo.h167 bool analyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB,
172 unsigned insertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB,
H A DR600InstrInfo.cpp675 MachineBasicBlock *&TBB,
707 TBB = LastInst.getOperand(0).getMBB();
714 TBB = LastInst.getOperand(0).getMBB();
733 TBB = SecondLastInst.getOperand(0).getMBB();
757 MachineBasicBlock *TBB,
762 assert(TBB && "insertBranch must not be told to insert a fallthrough");
767 BuildMI(&MBB, DL, get(R600::JUMP)).addMBB(TBB);
776 .addMBB(TBB)
791 .addMBB(TBB)
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZInstrInfo.h226 bool analyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB,
232 unsigned insertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB,
H A DSystemZInstrInfo.cpp354 MachineBasicBlock *&TBB,
390 TBB = Branch.getMBBTarget();
403 TBB = nullptr;
409 // TBB is used to indicate the unconditinal destination.
410 TBB = Branch.getMBBTarget();
417 FBB = TBB;
418 TBB = Branch.getMBBTarget();
425 assert(Cond.size() == 2 && TBB && "Should have seen a conditional branch");
429 if (TBB != Branch.getMBBTarget())
478 MachineBasicBlock *TBB,
353 analyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, SmallVectorImpl<MachineOperand> &Cond, bool AllowModify) const argument
477 insertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB, MachineBasicBlock *FBB, ArrayRef<MachineOperand> Cond, const DebugLoc &DL, int *BytesAdded) const argument
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DFlattenCFG.cpp234 Instruction *TBB = LastCondBlock->getTerminator();
235 BasicBlock *PS1 = TBB->getSuccessor(0);
236 BasicBlock *PS2 = TBB->getSuccessor(1);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86InstrInfo.h136 bool AnalyzeBranchImpl(MachineBasicBlock &MBB, MachineBasicBlock *&TBB,
315 bool analyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB,
331 unsigned insertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB,
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonInstrInfo.cpp392 MachineBasicBlock *&TBB,
396 TBB = nullptr;
484 TBB = LastInst->getOperand(0).getMBB();
488 TBB = LastInst->getOperand(0).getMBB();
494 TBB = LastInst->getOperand(1).getMBB();
501 TBB = LastInst->getOperand(2).getMBB();
518 TBB = SecondLastInst->getOperand(1).getMBB();
529 TBB = SecondLastInst->getOperand(2).getMBB();
540 TBB = SecondLastInst->getOperand(0).getMBB();
549 TBB
391 analyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, SmallVectorImpl<MachineOperand> &Cond, bool AllowModify) const argument
584 insertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB, MachineBasicBlock *FBB, ArrayRef<MachineOperand> Cond, const DebugLoc &DL, int *BytesAdded) const argument
[all...]
H A DHexagonInstrInfo.h88 /// just return false, leaving TBB/FBB null.
89 /// 2. If this block ends with only an unconditional branch, it sets TBB to be
92 /// successor block, it sets TBB to be the branch destination block and a
96 /// unconditional branch, it returns the 'true' destination in TBB, the
106 bool analyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB,
127 unsigned insertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB,
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCInstrInfo.cpp835 MachineBasicBlock *&TBB,
871 TBB = LastInst.getOperand(0).getMBB();
877 TBB = LastInst.getOperand(2).getMBB();
885 TBB = LastInst.getOperand(1).getMBB();
893 TBB = LastInst.getOperand(1).getMBB();
903 TBB = LastInst.getOperand(0).getMBB();
914 TBB = LastInst.getOperand(0).getMBB();
938 TBB = SecondLastInst.getOperand(2).getMBB();
948 TBB = SecondLastInst.getOperand(1).getMBB();
958 TBB
834 analyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, SmallVectorImpl<MachineOperand> &Cond, bool AllowModify) const argument
1041 insertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB, MachineBasicBlock *FBB, ArrayRef<MachineOperand> Cond, const DebugLoc &DL, int *BytesAdded) const argument
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMFastISel.cpp1226 MachineBasicBlock *TBB = FuncInfo.MBBMap[BI->getSuccessor(0)]; local
1238 if (FuncInfo.MBB->isLayoutSuccessor(TBB)) {
1239 std::swap(TBB, FBB);
1254 .addMBB(TBB).addImm(ARMPred).addReg(ARM::CPSR);
1255 finishCondBranch(BI->getParent(), TBB, FBB);
1270 if (FuncInfo.MBB->isLayoutSuccessor(TBB)) {
1271 std::swap(TBB, FBB);
1277 .addMBB(TBB).addImm(CCMode).addReg(ARM::CPSR);
1279 finishCondBranch(BI->getParent(), TBB, FBB);
1285 MachineBasicBlock *Target = (Imm == 0) ? FBB : TBB;
[all...]

Completed in 295 milliseconds

123