Searched refs:TBB (Results 1 - 25 of 74) sorted by relevance

123

/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXInstrInfo.h56 bool analyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB,
62 unsigned insertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB,
H A DNVPTXInstrInfo.cpp78 /// just return false, leaving TBB/FBB null.
79 /// 2. If this block ends with only an unconditional branch, it sets TBB to be
82 /// an successor block, it sets TBB to be the branch destination block and a
87 /// block, it returns the 'true' destination in TBB, the 'false' destination
96 MachineBasicBlock *&TBB,
111 TBB = LastInst.getOperand(0).getMBB();
115 TBB = LastInst.getOperand(1).getMBB();
133 TBB = SecondLastInst.getOperand(1).getMBB();
143 TBB = SecondLastInst.getOperand(0).getMBB();
181 MachineBasicBlock *TBB,
95 analyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, SmallVectorImpl<MachineOperand> &Cond, bool AllowModify) const argument
180 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/WebAssembly/
H A DWebAssemblyFixBrTableDefaults.cpp58 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; local
61 bool Analyzed = !TII.analyzeBranch(*HeaderMBB, TBB, FBB, Cond);
68 // TBB | FBB | Meaning
73 if (TBB && TBB != MBB) {
92 MI.addOperand(MF, MachineOperand::CreateMBB(TBB));
H A DWebAssemblyInstrInfo.cpp103 MachineBasicBlock *&TBB,
125 TBB = MI.getOperand(0).getMBB();
133 TBB = MI.getOperand(0).getMBB();
138 TBB = MI.getOperand(0).getMBB();
147 TBB = MI.getOperand(0).getMBB();
181 MachineBasicBlock &MBB, MachineBasicBlock *TBB, MachineBasicBlock *FBB,
186 if (!TBB)
189 BuildMI(&MBB, DL, get(WebAssembly::BR)).addMBB(TBB);
204 .addMBB(TBB)
208 BuildMI(&MBB, DL, get(WebAssembly::BR_IF)).addMBB(TBB)
102 analyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, SmallVectorImpl<MachineOperand> &Cond, bool ) const argument
180 insertBranch( MachineBasicBlock &MBB, MachineBasicBlock *TBB, MachineBasicBlock *FBB, ArrayRef<MachineOperand> Cond, const DebugLoc &DL, int *BytesAdded) const argument
[all...]
H A DWebAssemblyInstrInfo.h56 bool analyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB,
62 unsigned insertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB,
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/MSP430/
H A DMSP430InstrInfo.cpp164 MachineBasicBlock *&TBB,
194 TBB = I->getOperand(0).getMBB();
206 TBB = nullptr;
212 // TBB is used to indicate the unconditinal destination.
213 TBB = I->getOperand(0).getMBB();
226 FBB = TBB;
227 TBB = I->getOperand(0).getMBB();
235 assert(TBB);
239 if (TBB != I->getOperand(0).getMBB())
254 MachineBasicBlock *TBB,
163 analyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, SmallVectorImpl<MachineOperand> &Cond, bool AllowModify) const argument
253 insertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB, MachineBasicBlock *FBB, ArrayRef<MachineOperand> Cond, const DebugLoc &DL, int *BytesAdded) const argument
[all...]
H A DMSP430InstrInfo.h59 bool analyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB,
66 unsigned insertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB,
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFInstrInfo.h48 bool analyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB,
55 unsigned insertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB,
H A DBPFInstrInfo.cpp165 MachineBasicBlock *&TBB,
190 TBB = I->getOperand(0).getMBB();
202 TBB = nullptr;
208 // TBB is used to indicate the unconditinal destination.
209 TBB = I->getOperand(0).getMBB();
220 MachineBasicBlock *TBB,
228 assert(TBB && "insertBranch must not be told to insert a fallthrough");
233 BuildMI(&MBB, DL, get(BPF::JMP)).addMBB(TBB);
164 analyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, SmallVectorImpl<MachineOperand> &Cond, bool AllowModify) const argument
219 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/CodeGen/
H A DEarlyIfConversion.cpp73 // | [TF]BB FBB TBB
78 // Instructions in the conditional blocks TBB and/or FBB are spliced into the
95 MachineBasicBlock *TBB; member in class:__anon3455::SSAIfConv
100 /// isTriangle - When there is no 'else' block, either TBB or FBB will be
102 bool isTriangle() const { return TBB == Tail || FBB == Tail; }
105 MachineBasicBlock *getTPred() const { return TBB == Tail ? Head : TBB; }
137 /// Insertion point in Head for speculatively executed instructions form TBB
434 TBB = FBB = Tail = nullptr;
482 if (TII->analyzeBranch(*Head, TBB, FB
[all...]
H A DBranchRelaxation.cpp298 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; local
309 auto insertBranch = [&](MachineBasicBlock *MBB, MachineBasicBlock *TBB,
314 TII->insertBranch(*MBB, TBB, FBB, Cond, DL, &NewBrSize);
334 bool Fail = TII->analyzeBranch(*MBB, TBB, FBB, Cond);
361 insertBranch(MBB, FBB, TBB, Cond);
381 LLVM_DEBUG(dbgs() << " Insert B to " << printMBBReference(*TBB)
387 insertBranch(MBB, &NextBB, TBB, Cond);
400 // This is the block with cond. branch and the distance to TBB is too long.
412 insertUncondBranch(NewBB, TBB);
419 << printMBBReference(*TBB) << "
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/VE/
H A DVEInstrInfo.h40 bool analyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB,
48 unsigned insertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB,
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/XCore/
H A DXCoreInstrInfo.h52 bool analyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB,
57 unsigned insertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB,
H A DXCoreInstrInfo.cpp172 /// just return false, leaving TBB/FBB null.
173 /// 2. If this block ends with only an unconditional branch, it sets TBB to be
176 /// an successor block, it sets TBB to be the branch destination block and a
181 /// block, it returns the 'true' destination in TBB, the 'false' destination
190 MachineBasicBlock *&TBB,
208 TBB = LastInst->getOperand(0).getMBB();
219 TBB = LastInst->getOperand(1).getMBB();
240 TBB = SecondLastInst->getOperand(1).getMBB();
252 TBB = SecondLastInst->getOperand(0).getMBB();
272 MachineBasicBlock *TBB,
189 analyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, SmallVectorImpl<MachineOperand> &Cond, bool AllowModify) const argument
271 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/Hexagon/
H A DHexagonBranchRelaxation.cpp161 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; local
165 if (HII->analyzeBranch(B, TBB, FBB, Cond, false)) {
170 TBB = FirstTerm->getOperand(HII->getCExtOpNum(*FirstTerm)).getMBB();
172 if (TBB && &MI == &*FirstTerm) {
173 Distance = std::abs((long long)InstOffset - BlockToInstOffset[TBB])
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsInstrInfo.h63 bool analyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB,
71 unsigned insertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB,
79 BranchType analyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB,
187 void BuildCondBr(MachineBasicBlock &MBB, MachineBasicBlock *TBB,
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/ARC/
H A DARCInstrInfo.h53 bool analyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB,
58 unsigned insertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB,
H A DARCInstrInfo.cpp151 /// just return false, leaving TBB/FBB null.
152 /// 2. If this block ends with only an unconditional branch, it sets TBB to be
155 /// successor block, it sets TBB to be the branch destination block and a
159 /// unconditional branch, it returns the 'true' destination in TBB, the
171 MachineBasicBlock *&TBB,
175 TBB = FBB = nullptr;
199 TBB = I->getOperand(0).getMBB();
206 FBB = TBB;
207 TBB = I->getOperand(0).getMBB();
371 MachineBasicBlock *TBB,
170 analyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, SmallVectorImpl<MachineOperand> &Cond, bool AllowModify) const argument
370 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/Sparc/
H A DSparcInstrInfo.h67 bool analyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB,
75 unsigned insertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB,
H A DSparcInstrInfo.cpp160 MachineBasicBlock *&TBB,
178 TBB = LastInst->getOperand(0).getMBB();
183 parseCondBranch(LastInst, TBB, Cond);
202 TBB = LastInst->getOperand(0).getMBB();
217 parseCondBranch(SecondLastInst, TBB, Cond);
225 TBB = SecondLastInst->getOperand(0).getMBB();
243 MachineBasicBlock *TBB,
248 assert(TBB && "insertBranch must not be told to insert a fallthrough");
255 BuildMI(&MBB, DL, get(SP::BA)).addMBB(TBB);
263 BuildMI(&MBB, DL, get(SP::BCOND)).addMBB(TBB)
159 analyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, SmallVectorImpl<MachineOperand> &Cond, bool AllowModify) const argument
242 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/X86/
H A DX86CondBrFolding.cpp89 MachineBasicBlock *TBB; member in struct:__anon4422::TargetMBBInfo
150 assert(SaveMBB == PredMBBInfo->TBB || SaveMBB == PredMBBInfo->FBB);
222 if (MBBInfo->TBB == OrigDest) {
227 MBBInfo->TBB = NewDest;
253 .addMBB(MBBInfo->TBB).addImm(CC);
284 MachineBasicBlock *TargetMBB = MBBInfo->TBB;
285 BranchProbability TargetProb = MBPI->getEdgeProbability(&MBB, MBBInfo->TBB);
332 replaceBrDest(RootMBB, RootMBBInfo->TBB, TargetMBB);
480 MachineBasicBlock *TBB;
494 FBB = TBB
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/AVR/
H A DAVRInstrInfo.cpp264 MachineBasicBlock *&TBB,
297 TBB = I->getOperand(0).getMBB();
311 TBB = 0;
318 // TBB is used to indicate the unconditinal destination.
319 TBB = I->getOperand(0).getMBB();
369 FBB = TBB;
370 TBB = I->getOperand(0).getMBB();
378 assert(TBB);
382 if (TBB != I->getOperand(0).getMBB()) {
399 MachineBasicBlock *TBB,
263 analyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, SmallVectorImpl<MachineOperand> &Cond, bool AllowModify) const argument
398 insertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB, MachineBasicBlock *FBB, ArrayRef<MachineOperand> Cond, const DebugLoc &DL, int *BytesAdded) const argument
[all...]
H A DAVRInstrInfo.h92 bool analyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB,
96 unsigned insertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB,
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64A53Fix835769.cpp139 MachineBasicBlock *TBB = nullptr, *FBB = nullptr;
144 if (S == PrevBB && !TII->analyzeBranch(*PrevBB, TBB, FBB, Cond) && !TBB &&
H A DAArch64ConditionOptimizer.cpp302 // corresponding to TBB.
349 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; local
350 if (TII->analyzeBranch(*HBB, TBB, FBB, HeadCond)) {
355 if (!TBB || TBB == HBB) {
361 if (TII->analyzeBranch(*TBB, TBB_TBB, TBB_FBB, TrueCond)) {
370 MachineInstr *TrueCmpMI = findSuitableCompare(TBB);

Completed in 280 milliseconds

123