Home
last modified time | relevance | path

Searched refs:Br (Results 1 – 25 of 86) sorted by relevance

1234

/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsBranchExpansion.cpp130 MachineInstr *Br = nullptr; member
157 int64_t computeOffset(const MachineInstr *Br);
159 void replaceBranch(MachineBasicBlock &MBB, Iter Br, const DebugLoc &DL,
230 static MachineBasicBlock *getTargetMBB(const MachineInstr &Br) { in getTargetMBB() argument
231 for (unsigned I = 0, E = Br.getDesc().getNumOperands(); I < E; ++I) { in getTargetMBB()
232 const MachineOperand &MO = Br.getOperand(I); in getTargetMBB()
308 int64_t MipsBranchExpansion::computeOffset(const MachineInstr *Br) { in computeOffset() argument
310 int ThisMBB = Br->getParent()->getNumber(); in computeOffset()
311 int TargetMBB = getTargetMBB(*Br)->getNumber(); in computeOffset()
338 void MipsBranchExpansion::replaceBranch(MachineBasicBlock &MBB, Iter Br, in replaceBranch() argument
[all …]
H A DMipsConstantIslandPass.cpp405 bool fixupImmediateBr(ImmBranch &Br);
406 bool fixupConditionalBr(ImmBranch &Br);
407 bool fixupUnconditionalBr(ImmBranch &Br);
1477 bool MipsConstantIslands::fixupImmediateBr(ImmBranch &Br) { in fixupImmediateBr() argument
1478 MachineInstr *MI = Br.MI; in fixupImmediateBr()
1483 if (isBBInRange(MI, DestBB, Br.MaxDisp)) in fixupImmediateBr()
1486 if (!Br.isCond) in fixupImmediateBr()
1487 return fixupUnconditionalBr(Br); in fixupImmediateBr()
1488 return fixupConditionalBr(Br); in fixupImmediateBr()
1496 MipsConstantIslands::fixupUnconditionalBr(ImmBranch &Br) { in fixupUnconditionalBr() argument
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMConstantIslandPass.cpp270 bool fixupImmediateBr(ImmBranch &Br);
271 bool fixupConditionalBr(ImmBranch &Br);
272 bool fixupUnconditionalBr(ImmBranch &Br);
1705 bool ARMConstantIslands::fixupImmediateBr(ImmBranch &Br) { in fixupImmediateBr() argument
1706 MachineInstr *MI = Br.MI; in fixupImmediateBr()
1710 if (BBUtils->isBBInRange(MI, DestBB, Br.MaxDisp)) in fixupImmediateBr()
1713 if (!Br.isCond) in fixupImmediateBr()
1714 return fixupUnconditionalBr(Br); in fixupImmediateBr()
1715 return fixupConditionalBr(Br); in fixupImmediateBr()
1723 ARMConstantIslands::fixupUnconditionalBr(ImmBranch &Br) { in fixupUnconditionalBr() argument
[all …]
H A DARMBlockPlacement.cpp102 MachineInstr *Br = &Preheader->back(); in revertWhileToDoLoop() local
103 assert(Br->getOpcode() == ARM::t2B); in revertWhileToDoLoop()
104 assert(Br->getOperand(1).getImm() == 14); in revertWhileToDoLoop()
116 Br->removeFromParent(); in revertWhileToDoLoop()
117 NewBlock->insert(NewBlock->end(), Br); in revertWhileToDoLoop()
119 Preheader->replaceSuccessor(Br->getOperand(0).getMBB(), NewBlock); in revertWhileToDoLoop()
120 NewBlock->addSuccessor(Br->getOperand(0).getMBB()); in revertWhileToDoLoop()
124 BuildMI(*NewBlock, Br, WLS->getDebugLoc(), in revertWhileToDoLoop()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCPreEmitPeephole.cpp529 MachineInstr *Br = &*I; in runOnMachineFunction() local
530 if (Br->getOpcode() != PPC::BC && Br->getOpcode() != PPC::BCn) in runOnMachineFunction()
533 Register CRBit = Br->getOperand(0).getReg(); in runOnMachineFunction()
536 MachineBasicBlock::reverse_iterator It = Br, Er = MBB.rend(); in runOnMachineFunction()
551 if ((Br->getOpcode() == PPC::BCn && CRSetOp == PPC::CRSET) || in runOnMachineFunction()
552 (Br->getOpcode() == PPC::BC && CRSetOp == PPC::CRUNSET)) { in runOnMachineFunction()
554 InstrsToErase.push_back(Br); in runOnMachineFunction()
555 MBB.removeSuccessor(Br->getOperand(1).getMBB()); in runOnMachineFunction()
560 MachineBasicBlock::iterator It = Br, Er = MBB.end(); in runOnMachineFunction()
566 if (!MBB.isLayoutSuccessor(Br->getOperand(1).getMBB())) { in runOnMachineFunction()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/
H A DCSKYConstantIslandPass.cpp262 bool fixupImmediateBr(ImmBranch &Br);
263 bool fixupConditionalBr(ImmBranch &Br);
264 bool fixupUnconditionalBr(ImmBranch &Br);
1236 bool CSKYConstantIslands::fixupImmediateBr(ImmBranch &Br) { in fixupImmediateBr() argument
1237 MachineInstr *MI = Br.MI; in fixupImmediateBr()
1241 if (isBBInRange(MI, DestBB, Br.MaxDisp)) in fixupImmediateBr()
1244 if (!Br.IsCond) in fixupImmediateBr()
1245 return fixupUnconditionalBr(Br); in fixupImmediateBr()
1246 return fixupConditionalBr(Br); in fixupImmediateBr()
1253 bool CSKYConstantIslands::fixupUnconditionalBr(ImmBranch &Br) { in fixupUnconditionalBr() argument
[all …]
H A DCSKYInstrInfoF1.td
H A DCSKYInstrInfoF2.td
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DStructurizeCFG.cpp841 BranchInst *Br = BranchInst::Create(NewExit, BB); in changeExit() local
842 Br->setDebugLoc(TermDL[BB]); in changeExit()
958 BranchInst *Br = BranchInst::Create(Entry, Next, BoolPoison, Flow); in wireFlow() local
959 Br->setDebugLoc(TermDL[Flow]); in wireFlow()
960 Conditions.push_back(Br); in wireFlow()
999 BranchInst *Br = BranchInst::Create(Next, LoopStart, BoolPoison, LoopEnd); in handleLoops() local
1000 Br->setDebugLoc(TermDL[LoopEnd]); in handleLoops()
1001 LoopConds.push_back(Br); in handleLoops()
1073 auto Br = dyn_cast<BranchInst>(E->getEntry()->getTerminator()); in hasOnlyUniformBranches() local
1074 if (!Br || !Br->isConditional()) in hasOnlyUniformBranches()
[all …]
H A DLoopFlatten.cpp582 BranchInst *Br = dyn_cast<BranchInst>(&I); in checkOuterLoopInsts() local
583 if (Br && Br->isUnconditional() && in checkOuterLoopInsts()
584 Br->getSuccessor(0) == FI.InnerLoop->getHeader()) in checkOuterLoopInsts()
975 BranchInst *Br = cast<BranchInst>(CheckBlock->getTerminator()); in FlattenLoopPair() local
976 assert(Br->isConditional() && in FlattenLoopPair()
978 assert(match(Br->getCondition(), m_Zero()) && in FlattenLoopPair()
980 IRBuilder<> Builder(Br); in FlattenLoopPair()
987 Br->setCondition(Overflow); in FlattenLoopPair()
H A DConstraintElimination.cpp1128 auto *Br = dyn_cast<BranchInst>(BB.getTerminator()); in addInfoFor() local
1129 if (!Br || !Br->isConditional()) in addInfoFor()
1132 Value *Cond = Br->getCondition(); in addInfoFor()
1146 BasicBlock *Successor = Br->getSuccessor(IsOr ? 1 : 0); in addInfoFor()
1181 auto *CmpI = dyn_cast<ICmpInst>(Br->getCondition()); in addInfoFor()
1184 if (canAddSuccessor(BB, Br->getSuccessor(0))) in addInfoFor()
1186 DT.getNode(Br->getSuccessor(0)), CmpI->getPredicate(), in addInfoFor()
1188 if (canAddSuccessor(BB, Br->getSuccessor(1))) in addInfoFor()
1190 DT.getNode(Br->getSuccessor(1)), in addInfoFor()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCleanup.cpp358 if (llvm::BranchInst *Br = dyn_cast<llvm::BranchInst>(Term)) { in TransitionToCleanupSwitch() local
359 assert(Br->isUnconditional()); in TransitionToCleanupSwitch()
363 llvm::SwitchInst::Create(Load, Br->getSuccessor(0), 4, Block); in TransitionToCleanupSwitch()
364 Br->eraseFromParent(); in TransitionToCleanupSwitch()
519 llvm::BranchInst *Br = dyn_cast<llvm::BranchInst>(Pred->getTerminator()); in SimplifyCleanupEntry() local
520 if (!Br || Br->isConditional()) return Entry; in SimplifyCleanupEntry()
521 assert(Br->getSuccessor(0) == Entry); in SimplifyCleanupEntry()
530 Br->eraseFromParent(); in SimplifyCleanupEntry()
580 if (llvm::BranchInst *Br = dyn_cast<llvm::BranchInst>(Term)) { in ForwardPrebranchedFallthrough() local
581 assert(Br->isUnconditional() && Br->getSuccessor(0) == From); in ForwardPrebranchedFallthrough()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyFastISel.cpp1310 const auto *Br = cast<BranchInst>(I); in selectBr() local
1311 if (Br->isUnconditional()) { in selectBr()
1312 MachineBasicBlock *MSucc = FuncInfo.MBBMap[Br->getSuccessor(0)]; in selectBr()
1313 fastEmitBranch(MSucc, Br->getDebugLoc()); in selectBr()
1317 MachineBasicBlock *TBB = FuncInfo.MBBMap[Br->getSuccessor(0)]; in selectBr()
1318 MachineBasicBlock *FBB = FuncInfo.MBBMap[Br->getSuccessor(1)]; in selectBr()
1321 unsigned CondReg = getRegForI1Value(Br->getCondition(), Br->getParent(), Not); in selectBr()
1333 finishCondBranch(Br->getParent(), TBB, FBB); in selectBr()
1426 case Instruction::Br: in fastSelectInstruction()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlanHCFGBuilder.cpp294 if (auto *Br = dyn_cast<BranchInst>(Inst)) { in createVPInstructionsForVPBB() local
297 if (Br->isConditional()) { in createVPInstructionsForVPBB()
298 VPValue *Cond = getOrCreateVPOperand(Br->getCondition()); in createVPInstructionsForVPBB()
H A DLoopVectorizationLegality.cpp623 auto *Br = dyn_cast<BranchInst>(BB->getTerminator()); in canVectorizeOuterLoop() local
624 if (!Br) { in canVectorizeOuterLoop()
640 if (Br && Br->isConditional() && in canVectorizeOuterLoop()
641 !TheLoop->isLoopInvariant(Br->getCondition()) && in canVectorizeOuterLoop()
642 !LI->isLoopHeader(Br->getSuccessor(0)) && in canVectorizeOuterLoop()
643 !LI->isLoopHeader(Br->getSuccessor(1))) { in canVectorizeOuterLoop()
H A DVPlan.cpp435 auto *Br = BranchInst::Create(NewBB, PredBB); in createEmptyBasicBlock() local
436 Br->setDebugLoc(DL); in createEmptyBasicBlock()
459 auto *Br = State->Builder.CreateBr(getIRBasicBlock()); in execute() local
460 Br->setOperand(0, nullptr); in execute()
793 Ctx.TTI.getCFInstrCost(Instruction::Br, TTI::TCK_RecipThroughput); in cost()
/freebsd/share/monetdef/
H A Dbe_BY.ISO8859-5.src10 Br
H A Dbe_BY.CP1131.src10 Br
/freebsd/share/monetdef_unicode/
H A Dbe_BY.UTF-8.src10 Br
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUTargetTransformInfo.cpp160 if (const BranchInst *Br = dyn_cast<BranchInst>(&I)) { in getUnrollingPreferences() local
161 if (UP.Threshold < MaxBoost && Br->isConditional()) { in getUnrollingPreferences()
162 BasicBlock *Succ0 = Br->getSuccessor(0); in getUnrollingPreferences()
163 BasicBlock *Succ1 = Br->getSuccessor(1); in getUnrollingPreferences()
167 if (dependsOnLocalPhi(L, Br->getCondition())) { in getUnrollingPreferences()
171 << *L << " due to " << *Br << '\n'); in getUnrollingPreferences()
758 case Instruction::Br: { in getCFInstrCost()
H A DR600TargetTransformInfo.cpp102 case Instruction::Br: in getCFInstrCost()
/freebsd/contrib/llvm-project/llvm/lib/Target/MSP430/
H A DMSP430InstrInfo.cpp120 I->getOpcode() != MSP430::Br && in removeBranch()
188 if (I->getOpcode() == MSP430::Br || in analyzeBranch()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86SpeculativeLoadHardening.cpp226 MachineInstr *Br, MachineInstr *&UncondBr, in splitEdge() argument
240 if (Br) { in splitEdge()
241 assert(Br->getOperand(0).getMBB() == &Succ && in splitEdge()
243 Br->getOperand(0).setMBB(&NewMBB); in splitEdge()
264 TII.insertBranch(NewMBB, &Succ, nullptr, Cond, Br->getDebugLoc()); in splitEdge()
727 MachineInstr *Br, MachineInstr *&UncondBr, in tracePredStateThroughCFG()
734 : splitEdge(MBB, Succ, SuccCount, Br, UncondBr, *TII); in tracePredStateThroughCFG()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DCommentHTMLTags.td34 def Br : Tag<"br"> { let EndTagForbidden = 1; }
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DInlineFunction.cpp2952 Instruction *Br = OrigBB->getTerminator(); in InlineFunction() local
2953 assert(Br && Br->getOpcode() == Instruction::Br && in InlineFunction()
2955 Br->setOperand(0, &*FirstNewBlock); in InlineFunction()
3043 assert(cast<BranchInst>(Br)->isUnconditional() && "splitBasicBlock broken!"); in InlineFunction()
3044 BasicBlock *CalleeEntry = cast<BranchInst>(Br)->getSuccessor(0); in InlineFunction()
3049 OrigBB->splice(Br->getIterator(), CalleeEntry); in InlineFunction()
3052 Br->eraseFromParent(); in InlineFunction()

1234