Searched refs:BI (Results 26 - 50 of 200) sorted by relevance

12345678

/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DMergeFunctions.cpp557 for (BasicBlock::iterator BI = GEntryBlock->begin(), BIE = GEntryBlock->end();
558 BI != BIE; ++BI) {
559 if (auto *DVI = dyn_cast<DbgValueInst>(&*BI)) {
561 LLVM_DEBUG(BI->print(dbgs()));
566 LLVM_DEBUG(BI->print(dbgs()));
568 PDIRelated.insert(&*BI);
571 LLVM_DEBUG(BI->print(dbgs()));
574 } else if (auto *DDI = dyn_cast<DbgDeclareInst>(&*BI)) {
576 LLVM_DEBUG(BI
[all...]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DBranchProbabilityInfo.cpp424 const BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator()); local
425 if (!BI || !BI->isConditional())
428 Value *Cond = BI->getCondition();
515 const BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator()); local
516 if (!BI || !BI->isConditional())
520 CmpInst *CI = dyn_cast<CmpInst>(BI->getCondition());
588 ((Result->isZeroValue() && B == BI->getSuccessor(0)) ||
589 (Result->isOneValue() && B == BI
684 const BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator()); local
802 const BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator()); local
[all...]
H A DMustExecute.cpp124 auto *BI = dyn_cast<BranchInst>(CondExitBlock->getTerminator()); local
125 if (!BI || !BI->isConditional())
129 if (auto *Cond = dyn_cast<ConstantInt>(BI->getCondition()))
130 return BI->getSuccessor(Cond->getZExtValue() ? 1 : 0) == ExitBlock;
131 auto *Cond = dyn_cast<CmpInst>(BI->getCondition());
146 DT, /*AC*/ nullptr, BI});
150 if (ExitBlock == BI->getSuccessor(0))
152 assert(ExitBlock == BI->getSuccessor(1) && "implied by above");
H A DLoopInfo.cpp174 if (BranchInst *BI = dyn_cast_or_null<BranchInst>(Latch->getTerminator()))
175 if (BI->isConditional())
176 return dyn_cast<ICmpInst>(BI->getCondition());
234 BranchInst *BI = dyn_cast_or_null<BranchInst>(Latch->getTerminator());
235 assert(BI && BI->isConditional() && "Expecting conditional latch branch");
237 ICmpInst *LatchCmpInst = dyn_cast<ICmpInst>(BI->getCondition());
243 ICmpInst::Predicate Pred = (BI->getSuccessor(0) == L.getHeader())
746 for (Loop::block_iterator BI = Unloop.block_begin(), BE = Unloop.block_end();
747 BI !
[all...]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DBasicBlockUtils.cpp193 // Update BI to branch to BB's only successor instead of BB.
436 BasicBlock::iterator &BI, Value *V) {
437 Instruction &I = *BI;
446 BI = BIL.erase(BI);
450 BasicBlock::iterator &BI, Instruction *I) {
457 I->setDebugLoc(BI->getDebugLoc());
460 BasicBlock::iterator New = BIL.insert(BI, I);
463 ReplaceInstWithValue(BIL, BI, I);
465 // Move BI bac
435 ReplaceInstWithValue(BasicBlock::InstListType &BIL, BasicBlock::iterator &BI, Value *V) argument
449 ReplaceInstWithInst(BasicBlock::InstListType &BIL, BasicBlock::iterator &BI, Instruction *I) argument
643 UpdatePHINodes(BasicBlock *OrigBB, BasicBlock *NewBB, ArrayRef<BasicBlock *> Preds, BranchInst *BI, bool HasLoopExit) argument
734 BranchInst *BI = BranchInst::Create(BB, NewBB); local
[all...]
H A DLoopRotationUtils.cpp219 BranchInst *BI = dyn_cast<BranchInst>(OrigHeader->getTerminator()); local
220 if (!BI || BI->isUnconditional())
288 BasicBlock *Exit = BI->getSuccessor(0);
289 BasicBlock *NewHeader = BI->getSuccessor(1);
396 for (BasicBlock::iterator BI = SuccBB->begin();
397 PHINode *PN = dyn_cast<PHINode>(BI); ++BI)
454 assert(PHBI->isConditional() && "Should be clone of BI condbr!");
617 BranchInst *BI
[all...]
H A DPredicateInfo.cpp392 void PredicateInfo::processBranch(BranchInst *BI, BasicBlock *BranchBB, argument
394 BasicBlock *FirstBB = BI->getSuccessor(0);
395 BasicBlock *SecondBB = BI->getSuccessor(1);
425 if (match(BI->getCondition(), m_And(m_Cmp(Pred, m_Value(), m_Value()),
427 match(BI->getCondition(), m_Or(m_Cmp(Pred, m_Value(), m_Value()),
429 auto *BinOp = cast<BinaryOperator>(BI->getCondition());
436 ConditionsToProcess.push_back(BI->getCondition());
437 } else if (isa<CmpInst>(BI->getCondition())) {
438 ConditionsToProcess.push_back(BI->getCondition());
496 if (auto *BI
[all...]
H A DLoopSimplify.cpp521 if (BranchInst *BI = dyn_cast<BranchInst>(ExitingBlock->getTerminator()))
522 if (BI->isConditional()) {
523 if (UndefValue *Cond = dyn_cast<UndefValue>(BI->getCondition())) {
529 BI->setCondition(ConstantInt::get(Cond->getType(),
530 !L->contains(BI->getSuccessor(0))));
632 BranchInst *BI = dyn_cast<BranchInst>(ExitingBlock->getTerminator()); local
633 if (!BI || !BI->isConditional()) continue;
634 CmpInst *CI = dyn_cast<CmpInst>(BI->getCondition());
641 for (auto I = ExitingBlock->instructionsWithoutDebug().begin(); &*I != BI; ) {
[all...]
H A DLoopUnroll.cpp307 BranchInst *BI = dyn_cast<BranchInst>(LatchBlock->getTerminator()); local
310 if (!BI ||
311 (BI->isUnconditional() && (!HeaderBI || HeaderBI->isUnconditional() ||
319 return BI->isConditional() && BI->getSuccessor(S1) == Header &&
320 !L->contains(BI->getSuccessor(S2));
324 if (BI && BI->isConditional() && !CheckLatchSuccessors(0, 1) &&
338 if (BI && !BI
[all...]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DJumpThreading.cpp420 auto *BI = dyn_cast<BranchInst>(BB.getTerminator()); local
421 if (BI && BI->isUnconditional() &&
426 !LoopHeaders.count(&BB) && !LoopHeaders.count(BI->getSuccessor(0)) &&
1022 if (BranchInst *BI = dyn_cast<BranchInst>(Terminator)) {
1024 if (BI->isUnconditional()) return false;
1025 Condition = BI->getCondition();
1202 auto *BI = dyn_cast<BranchInst>(BB->getTerminator()); local
1203 if (!BI || !BI
1980 CloneInstructions(BasicBlock::iterator BI, BasicBlock::iterator BE, BasicBlock *NewBB, BasicBlock *PredBB) argument
2361 BasicBlock::iterator BI = BB->begin(); local
2691 ThreadGuard(BasicBlock *BB, IntrinsicInst *Guard, BranchInst *BI) argument
[all...]
H A DSpeculativeExecution.cpp169 BranchInst *BI = dyn_cast<BranchInst>(B.getTerminator()); local
170 if (BI == nullptr)
173 if (BI->getNumSuccessors() != 2)
175 BasicBlock &Succ0 = *BI->getSuccessor(0);
176 BasicBlock &Succ1 = *BI->getSuccessor(1);
H A DLoopUnswitch.cpp729 if (BranchInst *BI = dyn_cast<BranchInst>(TI)) {
738 if (BI->isConditional()) {
741 Value *LoopCond = FindLIVLoopCondition(BI->getCondition(), currentLoop,
959 BranchInst *BI = local
962 BI->swapProfMetadata();
991 SplitCriticalEdge(BI, 0, Options);
992 SplitCriticalEdge(BI, 1, Options);
1094 if (BranchInst *BI = dyn_cast<BranchInst>(CurrentTerm)) {
1095 if (BI->isUnconditional()) {
1096 CurrentBB = BI
[all...]
H A DIndVarSimplify.cpp803 if (auto *BI = dyn_cast<BranchInst>(TermInst)) {
806 Cond = BI->getCondition();
862 BasicBlock::iterator BI = ExitBlock->begin(); local
863 while (PHINode *P = dyn_cast<PHINode>(BI)) {
885 ++BI;
1905 auto *BI = dyn_cast<BranchInst>(TI); local
1906 if (!BI || !BI->isConditional())
1909 auto *TrueSuccessor = BI->getSuccessor(0);
1910 auto *FalseSuccessor = BI
2086 BranchInst *BI = cast<BranchInst>(ExitingBB->getTerminator()); local
2105 BranchInst *BI = cast<BranchInst>(ExitingBB->getTerminator()); local
2394 BranchInst *BI = cast<BranchInst>(ExitingBB->getTerminator()); local
2438 BranchInst *BI = cast<BranchInst>(ExitingBB->getTerminator()); local
2506 BranchInst *BI = cast<BranchInst>(ExitingBB->getTerminator()); local
2977 auto *BI = cast<BranchInst>(ExitingBB->getTerminator()); local
[all...]
H A DMergedLoadStoreMotion.cpp143 auto *BI = dyn_cast<BranchInst>(BB->getTerminator());
144 if (!BI || !BI->isConditional())
147 BasicBlock *Succ0 = BI->getSuccessor(0);
148 BasicBlock *Succ1 = BI->getSuccessor(1);
H A DSCCP.cpp670 if (auto *BI = dyn_cast<BranchInst>(&TI)) {
671 if (BI->isUnconditional()) {
676 LatticeVal BCValue = getValueState(BI->getCondition());
1673 if (auto *BI = dyn_cast<BranchInst>(TI)) {
1674 if (!BI->isConditional()) continue;
1675 if (!getValueState(BI->getCondition()).isUnknown())
1680 if (isa<UndefValue>(BI->getCondition())) {
1681 BI->setCondition(ConstantInt::getFalse(BI->getContext()));
1843 for (BasicBlock::iterator BI
2153 BranchInst *BI = cast<BranchInst>(InstBB->getTerminator()); local
[all...]
H A DCallSiteSplitting.cpp134 auto *BI = dyn_cast<BranchInst>(From->getTerminator()); local
135 if (!BI || !BI->isConditional())
139 Value *Cond = BI->getCondition();
427 for (auto &BI : *Parent) {
428 if (PHINode *PN = dyn_cast<PHINode>(&BI)) {
515 for (Function::iterator BI = F.begin(), BE = F.end(); BI != BE;) {
516 BasicBlock &BB = *BI++;
H A DMemCpyOptimizer.cpp316 BasicBlock::iterator BI(StartInst);
317 for (++BI; !BI->isTerminator(); ++BI) {
318 if (!isa<StoreInst>(BI) && !isa<MemSetInst>(BI)) {
322 if (BI->mayWriteToMemory() || BI->mayReadFromMemory())
327 if (StoreInst *NextStore = dyn_cast<StoreInst>(BI)) {
346 MemSetInst *MSI = cast<MemSetInst>(BI);
[all...]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUUnifyDivergentExitNodes.cpp220 } else if (BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator())) {
262 if (BI->isUnconditional()) {
263 BasicBlock *LoopHeaderBB = BI->getSuccessor(0);
264 BI->eraseFromParent(); // Delete the unconditional branch.
269 BasicBlock *TransitionBB = BB->splitBasicBlock(BI, "TransitionBlock");
H A DSIFormMemoryClauses.cpp366 for (auto BI = I; BI != Next; ++BI) {
367 BI->bundleWithPred();
368 Ind->removeSingleMachineInstrFromMaps(*BI);
370 for (MachineOperand &MO : BI->defs())
/freebsd-12-stable/contrib/llvm-project/llvm/lib/CodeGen/
H A DRegAllocGreedy.cpp1194 const SplitAnalysis::BlockInfo &BI = UseBlocks[i]; local
1197 BC.Number = BI.MBB->getNumber();
1199 BC.Entry = BI.LiveIn ? SpillPlacement::PrefReg : SpillPlacement::DontCare;
1200 BC.Exit = (BI.LiveOut &&
1201 !LIS->getInstructionFromIndex(BI.LastInstr)->isImplicitDef())
1204 BC.ChangesValue = BI.FirstDef.isValid();
1213 if (BI.LiveIn) {
1217 } else if (Intf.first() < BI.FirstInstr) {
1220 } else if (Intf.first() < BI.LastInstr) {
1227 SlotIndex::isEarlierInstr(BI
1418 const SplitAnalysis::BlockInfo &BI = UseBlocks[i]; local
1591 const SplitAnalysis::BlockInfo &BI = UseBlocks[i]; local
1695 const SplitAnalysis::BlockInfo &BI = UseBlocks[i]; local
2028 const SplitAnalysis::BlockInfo &BI = UseBlocks[i]; local
2154 const SplitAnalysis::BlockInfo &BI = SA->getUseBlocks().front(); local
2236 const SplitAnalysis::BlockInfo &BI = SA->getUseBlocks().front(); local
[all...]
H A DSplitKit.h224 /// live range for the instructions in BI. There is normally no benefit to
229 /// @param BI The block to be isolated.
231 bool shouldSplitSingleBlock(const BlockInfo &BI, bool SingleInstrs) const;
523 void splitSingleBlock(const SplitAnalysis::BlockInfo &BI);
543 /// @param BI Block descriptor.
546 void splitRegInBlock(const SplitAnalysis::BlockInfo &BI,
555 /// @param BI Block descriptor.
558 void splitRegOutBlock(const SplitAnalysis::BlockInfo &BI,
/freebsd-12-stable/contrib/binutils/opcodes/
H A Dppc-opc.c99 /* The BI field in a B form or XL form instruction. */
100 #define BI BA
190 /* The condition register number portion of the BI field in a B form
193 BI field. This field is optional. */
622 in BO field, the "a" bit is 00010 for branch on CR(BI) and 01000
1304 the BI field. */
1314 /* A BBOYCB_MASK in which the BI field is fixed. */
1498 bits of the BI field. */
1514 /* An XL_MASK with the BO, BI and BB fields fixed. */
1587 /* The BI conditio
98 #define BI macro
[all...]
/freebsd-12-stable/contrib/llvm-project/llvm/tools/llvm-readobj/
H A DARMEHABIPrinter.h177 for (unsigned BI = 0, BE = ULEB.size(); BI != BE; ++BI)
178 OS << format("0x%02X ", ULEB[BI]);
181 for (unsigned BI = 0, BE = ULEB.size(); BI != BE; ++BI)
182 Value = Value | ((ULEB[BI] & 0x7f) << (7 * BI));
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DPGOInstrumentation.cpp262 BranchInst *BI = dyn_cast<BranchInst>(TI); local
263 if (!BI || !BI->isConditional())
266 Value *Cond = BI->getCondition();
619 auto BI = findBBInfo(Succ); local
620 if (BI == nullptr)
622 uint32_t Index = BI->Index;
1264 auto BI = findBBInfo(&BB); local
1265 if (BI == nullptr)
1267 assert(BI
1274 auto BI = findBBInfo(&BB); local
1788 UseBBInfo *BI = Graph->findBBInfo(Node); local
[all...]
H A DControlHeightReduction.cpp665 static bool checkBiasedBranch(BranchInst *BI, Region *R, argument
669 if (!BI->isConditional())
672 if (!checkMDProf(BI->getMetadata(LLVMContext::MD_prof),
675 BasicBlock *IfThen = BI->getSuccessor(0);
676 BasicBlock *IfElse = BI->getSuccessor(1);
686 CHR_DEBUG(dbgs() << "BI " << *BI << " ");
781 auto *BI = dyn_cast<BranchInst>(Entry->getTerminator()); local
782 if (BI)
783 CHR_DEBUG(dbgs() << "BI
1049 auto *BI = cast<BranchInst>(RI.R->getEntry()->getTerminator()); local
1412 auto *BI = cast<BranchInst>(R->getEntry()->getTerminator()); local
1512 auto *BI = cast<BranchInst>(R->getEntry()->getTerminator()); local
1674 auto *BI = cast<BranchInst>(R->getEntry()->getTerminator()); local
1895 auto *BI = cast<BranchInst>(R->getEntry()->getTerminator()); local
[all...]

Completed in 324 milliseconds

12345678