Home
last modified time | relevance | path

Searched refs:FBB (Results 1 – 25 of 267) sorted by relevance

1234567891011

/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DEarlyIfConversion.cpp98 MachineBasicBlock *FBB; member in __anonf2bb7d710111::SSAIfConv
102 bool isTriangle() const { return TBB == Tail || FBB == Tail; } in isTriangle()
108 MachineBasicBlock *getFPred() const { return FBB == Tail ? Head : FBB; } in getFPred()
434 TBB = FBB = Tail = nullptr; in canConvertIf()
482 if (TII->analyzeBranch(*Head, TBB, FBB, Cond)) { in canConvertIf()
502 FBB = TBB == Succ0 ? Succ1 : Succ0; in canConvertIf()
536 if (FBB != Tail && !canPredicateInstrs(FBB)) in canConvertIf()
541 if (FBB != Tail && !canSpeculateInstrs(FBB)) in canConvertIf()
626 assert(Head && Tail && TBB && FBB && "Call canConvertIf first."); in convertIf()
640 if (FBB != Tail) { in convertIf()
[all …]
DBranchRelaxation.cpp304 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; in fixupConditionalBranch() local
316 MachineBasicBlock *FBB, in fixupConditionalBranch()
320 TII->insertBranch(*MBB, TBB, FBB, Cond, DL, &NewBrSize); in fixupConditionalBranch()
340 bool Fail = TII->analyzeBranch(*MBB, TBB, FBB, Cond); in fixupConditionalBranch()
354 if (FBB && isBlockInRange(MI, *FBB)) { in fixupConditionalBranch()
367 insertBranch(MBB, FBB, TBB, Cond); in fixupConditionalBranch()
371 if (FBB) { in fixupConditionalBranch()
376 insertUncondBranch(NewBB, FBB); in fixupConditionalBranch()
379 MBB->replaceSuccessor(FBB, NewBB); in fixupConditionalBranch()
380 NewBB->addSuccessor(FBB); in fixupConditionalBranch()
[all …]
/external/llvm/lib/CodeGen/
DEarlyIfConversion.cpp97 MachineBasicBlock *FBB; member in __anon9f98c04f0111::SSAIfConv
101 bool isTriangle() const { return TBB == Tail || FBB == Tail; } in isTriangle()
107 MachineBasicBlock *getFPred() const { return FBB == Tail ? Head : FBB; } in getFPred()
342 TBB = FBB = Tail = nullptr; in canConvertIf()
389 if (TII->analyzeBranch(*Head, TBB, FBB, Cond)) { in canConvertIf()
402 FBB = TBB == Succ0 ? Succ1 : Succ0; in canConvertIf()
435 if (FBB != Tail && !canSpeculateInstrs(FBB)) in canConvertIf()
518 assert(Head && Tail && TBB && FBB && "Call canConvertIf first."); in convertIf()
529 if (FBB != Tail) in convertIf()
530 Head->splice(InsertionPoint, FBB, FBB->begin(), FBB->getFirstTerminator()); in convertIf()
[all …]
DBranchFolding.cpp223 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; in OptimizeFunction() local
225 if (!TII->analyzeBranch(MBB, TBB, FBB, Cond, true)) in OptimizeFunction()
226 MadeChange |= MBB.CorrectExtraCFGEdges(TBB, FBB, !Cond.empty()); in OptimizeFunction()
508 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; in FixTail() local
511 if (I != MF->end() && !TII->analyzeBranch(*CurMBB, TBB, FBB, Cond, true)) { in FixTail()
513 if (TBB == NextBB && !Cond.empty() && !FBB) { in FixTail()
1029 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; in TailMergeBlocks() local
1031 if (!TII->analyzeBranch(*PBB, TBB, FBB, Cond, true)) { in TailMergeBlocks()
1039 if (!FBB) { in TailMergeBlocks()
1042 FBB = &*Next; in TailMergeBlocks()
[all …]
/external/llvm-project/llvm/lib/CodeGen/
DBranchRelaxation.cpp298 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; in fixupConditionalBranch() local
310 MachineBasicBlock *FBB, in fixupConditionalBranch()
314 TII->insertBranch(*MBB, TBB, FBB, Cond, DL, &NewBrSize); in fixupConditionalBranch()
334 bool Fail = TII->analyzeBranch(*MBB, TBB, FBB, Cond); in fixupConditionalBranch()
348 if (FBB && isBlockInRange(MI, *FBB)) { in fixupConditionalBranch()
361 insertBranch(MBB, FBB, TBB, Cond); in fixupConditionalBranch()
365 if (FBB) { in fixupConditionalBranch()
370 insertUncondBranch(NewBB, FBB); in fixupConditionalBranch()
373 MBB->replaceSuccessor(FBB, NewBB); in fixupConditionalBranch()
374 NewBB->addSuccessor(FBB); in fixupConditionalBranch()
[all …]
DEarlyIfConversion.cpp99 MachineBasicBlock *FBB; member in __anonae2cbf7d0111::SSAIfConv
103 bool isTriangle() const { return TBB == Tail || FBB == Tail; } in isTriangle()
109 MachineBasicBlock *getFPred() const { return FBB == Tail ? Head : FBB; } in getFPred()
437 TBB = FBB = Tail = nullptr; in canConvertIf()
485 if (TII->analyzeBranch(*Head, TBB, FBB, Cond)) { in canConvertIf()
505 FBB = TBB == Succ0 ? Succ1 : Succ0; in canConvertIf()
540 if (FBB != Tail && !canPredicateInstrs(FBB)) in canConvertIf()
545 if (FBB != Tail && !canSpeculateInstrs(FBB)) in canConvertIf()
630 assert(Head && Tail && TBB && FBB && "Call canConvertIf first."); in convertIf()
644 if (FBB != Tail) { in convertIf()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86CondBrFolding.cpp90 MachineBasicBlock *FBB; member
150 assert(SaveMBB == PredMBBInfo->TBB || SaveMBB == PredMBBInfo->FBB); in findPath()
151 bool IsFalseBranch = (SaveMBB == PredMBBInfo->FBB); in findPath()
233 MBBInfo->FBB = NewDest; in replaceBrDest()
259 .addMBB(MBBInfo->FBB); in fixupModifiedCond()
297 replaceBrDest(PredMBB, &MBB, MBBInfo->FBB); in optimizeCondBr()
322 .addMBB(RootMBBInfo->FBB).addImm(NewCC); in optimizeCondBr()
369 fixBranchProb(MBBInfo->FBB); in optimizeCondBr()
481 MachineBasicBlock *FBB; in analyzeMBB() local
494 FBB = TBB = nullptr; in analyzeMBB()
[all …]
/external/llvm/lib/Target/WebAssembly/
DWebAssemblyInstrInfo.cpp97 MachineBasicBlock *&FBB, in analyzeBranch() argument
135 FBB = MI.getOperand(0).getMBB(); in analyzeBranch()
166 MachineBasicBlock *FBB, in InsertBranch() argument
186 if (!FBB) in InsertBranch()
189 BuildMI(&MBB, DL, get(WebAssembly::BR)).addMBB(FBB); in InsertBranch()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/NVPTX/
DNVPTXInstrInfo.cpp97 MachineBasicBlock *&FBB, in analyzeBranch() argument
135 FBB = LastInst.getOperand(0).getMBB(); in analyzeBranch()
182 MachineBasicBlock *FBB, in insertBranch() argument
194 if (!FBB) { in insertBranch()
205 BuildMI(&MBB, DL, get(NVPTX::GOTO)).addMBB(FBB); in insertBranch()
/external/llvm-project/llvm/lib/Target/NVPTX/
DNVPTXInstrInfo.cpp97 MachineBasicBlock *&FBB, in analyzeBranch() argument
135 FBB = LastInst.getOperand(0).getMBB(); in analyzeBranch()
182 MachineBasicBlock *FBB, in insertBranch() argument
194 if (!FBB) { in insertBranch()
205 BuildMI(&MBB, DL, get(NVPTX::GOTO)).addMBB(FBB); in insertBranch()
/external/llvm/lib/Target/MSP430/
DMSP430InstrInfo.cpp175 MachineBasicBlock *&FBB, in analyzeBranch() argument
212 FBB = nullptr; in analyzeBranch()
236 FBB = TBB; in analyzeBranch()
265 MachineBasicBlock *FBB, in InsertBranch() argument
275 assert(!FBB && "Unconditional branch with multiple successors!"); in InsertBranch()
285 if (FBB) { in InsertBranch()
287 BuildMI(&MBB, DL, get(MSP430::JMP)).addMBB(FBB); in InsertBranch()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/MSP430/
DMSP430InstrInfo.cpp177 MachineBasicBlock *&FBB, in analyzeBranch() argument
214 FBB = nullptr; in analyzeBranch()
238 FBB = TBB; in analyzeBranch()
267 MachineBasicBlock *FBB, in insertBranch() argument
279 assert(!FBB && "Unconditional branch with multiple successors!"); in insertBranch()
289 if (FBB) { in insertBranch()
291 BuildMI(&MBB, DL, get(MSP430::JMP)).addMBB(FBB); in insertBranch()
/external/llvm-project/llvm/lib/Target/MSP430/
DMSP430InstrInfo.cpp165 MachineBasicBlock *&FBB, in analyzeBranch() argument
202 FBB = nullptr; in analyzeBranch()
226 FBB = TBB; in analyzeBranch()
255 MachineBasicBlock *FBB, in insertBranch() argument
267 assert(!FBB && "Unconditional branch with multiple successors!"); in insertBranch()
277 if (FBB) { in insertBranch()
279 BuildMI(&MBB, DL, get(MSP430::JMP)).addMBB(FBB); in insertBranch()
/external/llvm-project/llvm/lib/Target/ARC/
DARCInstrInfo.cpp172 MachineBasicBlock *&FBB, in analyzeBranch() argument
175 TBB = FBB = nullptr; in analyzeBranch()
205 assert(!FBB && "FBB should have been null."); in analyzeBranch()
206 FBB = TBB; in analyzeBranch()
226 FBB = nullptr; in analyzeBranch()
372 MachineBasicBlock *FBB, in insertBranch() argument
394 if (!FBB) { in insertBranch()
399 BuildMI(&MBB, dl, get(ARC::BR)).addMBB(FBB); in insertBranch()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARC/
DARCInstrInfo.cpp172 MachineBasicBlock *&FBB, in analyzeBranch() argument
175 TBB = FBB = nullptr; in analyzeBranch()
205 assert(!FBB && "FBB should have been null."); in analyzeBranch()
206 FBB = TBB; in analyzeBranch()
226 FBB = nullptr; in analyzeBranch()
372 MachineBasicBlock *FBB, in insertBranch() argument
394 if (!FBB) { in insertBranch()
399 BuildMI(&MBB, dl, get(ARC::BR)).addMBB(FBB); in insertBranch()
/external/llvm/lib/Target/BPF/
DBPFInstrInfo.cpp80 MachineBasicBlock *&FBB, in analyzeBranch() argument
112 FBB = 0; in analyzeBranch()
135 MachineBasicBlock *FBB, in InsertBranch() argument
143 assert(!FBB && "Unconditional branch with multiple successors!"); in InsertBranch()
/external/llvm-project/llvm/lib/Target/WebAssembly/
DWebAssemblyFixBrTableDefaults.cpp96 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; in fixBrTableDefault() local
99 bool Analyzed = !TII.analyzeBranch(*HeaderMBB, TBB, FBB, Cond); in fixBrTableDefault()
112 assert((FBB == nullptr || FBB == MBB) && in fixBrTableDefault()
DWebAssemblyInstrInfo.cpp108 MachineBasicBlock *&FBB, in analyzeBranch() argument
144 FBB = MI.getOperand(0).getMBB(); in analyzeBranch()
185 MachineBasicBlock &MBB, MachineBasicBlock *TBB, MachineBasicBlock *FBB, in insertBranch() argument
217 if (!FBB) in insertBranch()
220 BuildMI(&MBB, DL, get(WebAssembly::BR)).addMBB(FBB); in insertBranch()
/external/llvm/lib/Target/Mips/
DMipsInstrInfo.cpp88 MachineBasicBlock *&FBB, in analyzeBranch() argument
92 BranchType BT = analyzeBranch(MBB, TBB, FBB, Cond, AllowModify, BranchInstrs); in analyzeBranch()
117 MachineBasicBlock *FBB, in InsertBranch() argument
132 if (FBB) { in InsertBranch()
134 BuildMI(&MBB, DL, get(UncondBrOpc)).addMBB(FBB); in InsertBranch()
180 MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, in analyzeBranch() argument
193 TBB = FBB = nullptr; in analyzeBranch()
257 FBB = LastInst->getOperand(0).getMBB(); in analyzeBranch()
/external/llvm/lib/Target/NVPTX/
DNVPTXInstrInfo.cpp151 MachineBasicBlock *&FBB, in analyzeBranch() argument
189 FBB = LastInst.getOperand(0).getMBB(); in analyzeBranch()
234 MachineBasicBlock *FBB, in InsertBranch() argument
243 if (!FBB) { in InsertBranch()
254 BuildMI(&MBB, DL, get(NVPTX::GOTO)).addMBB(FBB); in InsertBranch()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/
DWebAssemblyInstrInfo.cpp104 MachineBasicBlock *&FBB, in analyzeBranch() argument
140 FBB = MI.getOperand(0).getMBB(); in analyzeBranch()
181 MachineBasicBlock &MBB, MachineBasicBlock *TBB, MachineBasicBlock *FBB, in insertBranch() argument
213 if (!FBB) in insertBranch()
216 BuildMI(&MBB, DL, get(WebAssembly::BR)).addMBB(FBB); in insertBranch()
/external/llvm/lib/Target/Hexagon/
DHexagonBranchRelaxation.cpp147 MachineBasicBlock *TBB = NULL, *FBB = NULL; in isJumpOutOfRange() local
151 if (HII->analyzeBranch(B, TBB, FBB, Cond, false)) { in isJumpOutOfRange()
163 if (FBB) { in isJumpOutOfRange()
172 Distance = std::abs((long long)InstOffset - BlockToInstOffset[FBB]) in isJumpOutOfRange()
/external/llvm-project/llvm/lib/Target/Hexagon/
DHexagonBranchRelaxation.cpp161 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; in isJumpOutOfRange() local
165 if (HII->analyzeBranch(B, TBB, FBB, Cond, false)) { in isJumpOutOfRange()
177 if (FBB) { in isJumpOutOfRange()
186 Distance = std::abs((long long)InstOffset - BlockToInstOffset[FBB]) in isJumpOutOfRange()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
DHexagonBranchRelaxation.cpp161 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; in isJumpOutOfRange() local
165 if (HII->analyzeBranch(B, TBB, FBB, Cond, false)) { in isJumpOutOfRange()
177 if (FBB) { in isJumpOutOfRange()
186 Distance = std::abs((long long)InstOffset - BlockToInstOffset[FBB]) in isJumpOutOfRange()
/external/llvm-project/llvm/lib/Target/AArch64/
DAArch64SpeculationHardening.cpp153 MachineBasicBlock *&FBB,
187 MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, in endsWithCondControlFlow() argument
190 if (TII->analyzeBranch(MBB, TBB, FBB, analyzeBranchCondCode, false)) in endsWithCondControlFlow()
201 if (FBB == nullptr) in endsWithCondControlFlow()
202 FBB = MBB.getFallThrough(); in endsWithCondControlFlow()
207 if (TBB == FBB) in endsWithCondControlFlow()
246 MachineBasicBlock *FBB = nullptr; in instrumentControlFlow() local
249 if (!endsWithCondControlFlow(MBB, TBB, FBB, CondCode)) { in instrumentControlFlow()
259 MachineBasicBlock *SplitEdgeFBB = MBB.SplitCriticalEdge(FBB, *this); in instrumentControlFlow()

1234567891011