/freebsd-current/contrib/llvm-project/llvm/lib/IR/ |
H A D | ReplaceConstant.cpp | 83 auto *BI = I; local 88 BI = &*It; 94 auto NewInsts = expandUser(BI, C);
|
/freebsd-current/contrib/llvm-project/llvm/tools/llvm-xray/ |
H A D | xray-fdr-dump.cpp | 94 BlockIndexer BI(Index); 96 if (auto E = Ptr->apply(BI)) 99 if (auto E = BI.flush())
|
/freebsd-current/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | LoopRotationUtils.cpp | 215 BranchInst *BI = dyn_cast<BranchInst>(Header->getTerminator()); local 216 assert(BI && BI->isConditional() && "need header with conditional exit"); 217 BasicBlock *HeaderExit = BI->getSuccessor(0); 219 HeaderExit = BI->getSuccessor(1); 241 BranchInst *BI = dyn_cast<BranchInst>(Latch->getTerminator()); local 243 if (!BI || !BI->isConditional()) 246 BasicBlock *Exit = BI->getSuccessor(1); 248 Exit = BI [all...] |
H A D | CodeMoverUtils.cpp | 132 const BranchInst *BI = dyn_cast<BranchInst>(IDom->getTerminator()); local 133 if (!BI) 141 } else if (PDT.dominates(CurBlock, BI->getSuccessor(0))) { 143 << *BI->getCondition() << "\" is true from " 146 ControlCondition(BI->getCondition(), true)); 147 } else if (PDT.dominates(CurBlock, BI->getSuccessor(1))) { 149 << *BI->getCondition() << "\" is false from " 152 ControlCondition(BI->getCondition(), false));
|
H A D | CloneFunction.cpp | 590 if (const BranchInst *BI = dyn_cast<BranchInst>(OldTI)) { 591 if (BI->isConditional()) { 593 ConstantInt *Cond = dyn_cast<ConstantInt>(BI->getCondition()); 596 Value *V = VMap.lookup(BI->getCondition()); 602 BasicBlock *Dest = BI->getSuccessor(!Cond->getZExtValue()); 718 for (const BasicBlock &BI : *OldFunc) { 719 Value *V = VMap.lookup(&BI); 729 for (const PHINode &PN : BI.phis()) { 930 BranchInst *BI = dyn_cast<BranchInst>(I->getTerminator()); local 931 if (!BI || B 1100 BasicBlock::iterator BI = BB->begin(); local [all...] |
/freebsd-current/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | SimpleLoopUnswitch.cpp | 507 static bool unswitchTrivialBranch(Loop &L, BranchInst &BI, DominatorTree &DT, argument 510 assert(BI.isConditional() && "Can only unswitch a conditional branch!"); 511 LLVM_DEBUG(dbgs() << " Trying to unswitch branch: " << BI << "\n"); 520 Value *Cond = skipTrivialSelect(BI.getCondition()); 536 auto *LoopExitBB = BI.getSuccessor(0); 540 LoopExitBB = BI.getSuccessor(1); 546 auto *ContinueBB = BI.getSuccessor(1 - LoopExitSuccIdx); 547 auto *ParentBB = BI.getParent(); 568 dbgs() << " unswitching trivial invariant conditions for: " << BI 605 assert(LoopExitBB->getUniquePredecessor() == BI 1090 auto *BI = dyn_cast<BranchInst>(CurrentBB->getTerminator()); local 1098 auto *BI = dyn_cast<BranchInst>(CurrentTerm); local 2168 BranchInst *BI = dyn_cast<BranchInst>(&TI); local 2937 auto *BI = dyn_cast<BranchInst>(BB->getTerminator()); local 3020 shouldTryInjectBasingOnMetadata(const BranchInst *BI, const BasicBlock *TakenSucc) argument 3413 BranchInst *BI = dyn_cast<BranchInst>(&TI); local [all...] |
H A D | SpeculativeExecution.cpp | 170 BranchInst *BI = dyn_cast<BranchInst>(B.getTerminator()); local 171 if (BI == nullptr) 174 if (BI->getNumSuccessors() != 2) 176 BasicBlock &Succ0 = *BI->getSuccessor(0); 177 BasicBlock &Succ1 = *BI->getSuccessor(1);
|
H A D | JumpThreading.cpp | 361 auto *BI = dyn_cast<BranchInst>(BB.getTerminator()); local 362 if (BI && BI->isUnconditional()) { 363 BasicBlock *Succ = BI->getSuccessor(0); 988 if (BranchInst *BI = dyn_cast<BranchInst>(Terminator)) { 990 if (BI->isUnconditional()) return false; 991 Condition = BI->getCondition(); 1160 auto *BI = dyn_cast<BranchInst>(BB->getTerminator()); local 1161 if (!BI || !BI 2015 cloneInstructions(BasicBlock::iterator BI, BasicBlock::iterator BE, BasicBlock *NewBB, BasicBlock *PredBB) argument 2684 BasicBlock::iterator BI = BB->begin(); local 2778 auto *BI = BranchInst::Create(NewBB, BB, SI->getCondition(), Pred); local 3057 threadGuard(BasicBlock *BB, IntrinsicInst *Guard, BranchInst *BI) argument [all...] |
H A D | MergedLoadStoreMotion.cpp | 139 auto *BI = dyn_cast<BranchInst>(BB->getTerminator()); 140 if (!BI || !BI->isConditional()) 143 BasicBlock *Succ0 = BI->getSuccessor(0); 144 BasicBlock *Succ1 = BI->getSuccessor(1);
|
/freebsd-current/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
H A D | MergeFunctions.cpp | 552 for (BasicBlock::iterator BI = GEntryBlock->begin(), BIE = GEntryBlock->end(); 553 BI != BIE; ++BI) { 554 if (auto *DVI = dyn_cast<DbgValueInst>(&*BI)) { 556 LLVM_DEBUG(BI->print(dbgs())); 561 LLVM_DEBUG(BI->print(dbgs())); 563 PDIRelated.insert(&*BI); 566 LLVM_DEBUG(BI->print(dbgs())); 569 } else if (auto *DDI = dyn_cast<DbgDeclareInst>(&*BI)) { 571 LLVM_DEBUG(BI [all...] |
/freebsd-current/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | RDFRegisters.cpp | 191 MCRegUnitMaskIterator BI(B.Reg, &getTRI()); 192 while (AI.isValid() && BI.isValid()) { 194 auto [BReg, BMask] = *BI; 203 ++BI; 210 ++BI; 213 return static_cast<int>(AI.isValid()) == static_cast<int>(BI.isValid()); 229 llvm::MCRegUnitMaskIterator BI(B.Reg, &getTRI()); 230 while (AI.isValid() && BI.isValid()) { 232 auto [BReg, BMask] = *BI; 241 ++BI; [all...] |
H A D | RegAllocGreedy.cpp | 611 const SplitAnalysis::BlockInfo &BI = UseBlocks[I]; local 614 BC.Number = BI.MBB->getNumber(); 616 BC.Entry = BI.LiveIn ? SpillPlacement::PrefReg : SpillPlacement::DontCare; 617 BC.Exit = (BI.LiveOut && 618 !LIS->getInstructionFromIndex(BI.LastInstr)->isImplicitDef()) 621 BC.ChangesValue = BI.FirstDef.isValid(); 630 if (BI.LiveIn) { 634 } else if (Intf.first() < BI.FirstInstr) { 637 } else if (Intf.first() < BI.LastInstr) { 644 SlotIndex::isEarlierInstr(BI [all...] |
H A D | SplitKit.h | 226 /// live range for the instructions in BI. There is normally no benefit to 231 /// @param BI The block to be isolated. 233 bool shouldSplitSingleBlock(const BlockInfo &BI, bool SingleInstrs) const; 525 void splitSingleBlock(const SplitAnalysis::BlockInfo &BI); 545 /// @param BI Block descriptor. 548 void splitRegInBlock(const SplitAnalysis::BlockInfo &BI, 557 /// @param BI Block descriptor. 560 void splitRegOutBlock(const SplitAnalysis::BlockInfo &BI,
|
/freebsd-current/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
H A D | VPlanHCFGBuilder.cpp | 392 auto *BI = cast<BranchInst>(BB->getTerminator()); local 401 assert(BI->isConditional() && NumSuccs == 2 && BI->isConditional() && 405 assert(IRDef2VPValue.contains(BI->getCondition()) && 407 VPBasicBlock *Successor0 = getOrCreateVPBB(BI->getSuccessor(0)); 408 VPBasicBlock *Successor1 = getOrCreateVPBB(BI->getSuccessor(1));
|
/freebsd-current/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | LoopNestAnalysis.cpp | 57 const BranchInst *BI = dyn_cast<BranchInst>(Latch->getTerminator()); local 58 assert(BI && BI->isConditional() && 61 CmpInst *OuterLoopLatchCmp = dyn_cast<CmpInst>(BI->getCondition()); 367 const BranchInst *BI = dyn_cast<BranchInst>(SingleSucc.getTerminator()); local 369 if (!BI || BI != InnerLoop.getLoopGuardBranch()) 376 for (const BasicBlock *Succ : BI->successors()) { 395 // may be inserted before the `OuterLoopLatch` to which `BI` jumps. The
|
H A D | BranchProbabilityInfo.cpp | 516 const BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator()); local 517 if (!BI || !BI->isConditional()) 520 Value *Cond = BI->getCondition(); 566 const BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator()); local 567 if (!BI || !BI->isConditional()) 571 CmpInst *CI = dyn_cast<CmpInst>(BI->getCondition()); 638 ((Result->isZeroValue() && B == BI->getSuccessor(0)) || 639 (Result->isOneValue() && B == BI 965 const BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator()); local 1031 const BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator()); local [all...] |
H A D | MustExecute.cpp | 125 auto *BI = dyn_cast<BranchInst>(CondExitBlock->getTerminator()); local 126 if (!BI || !BI->isConditional()) 130 if (auto *Cond = dyn_cast<ConstantInt>(BI->getCondition())) 131 return BI->getSuccessor(Cond->getZExtValue() ? 1 : 0) == ExitBlock; 132 auto *Cond = dyn_cast<CmpInst>(BI->getCondition()); 147 DT, /*AC*/ nullptr, BI}); 151 if (ExitBlock == BI->getSuccessor(0)) 153 assert(ExitBlock == BI->getSuccessor(1) && "implied by above");
|
/freebsd-current/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
H A D | HexagonRegisterInfo.cpp | 300 const MachineInstr &BI = *I; local 301 LiveRegUnits::accumulateUsedDefed(BI, Defs, Uses, this); 302 PassedCall |= BI.isCall(); 303 for (const MachineOperand &Op : BI.operands()) { 309 if (BI.getOpcode() != Hexagon::A2_addi) 311 if (BI.getOperand(1).getReg() != BP) 313 const auto &Op2 = BI.getOperand(2); 317 Register R = BI.getOperand(0).getReg();
|
/freebsd-current/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64StackTagging.cpp | 356 BasicBlock::iterator BI(StartInst); 359 for (; Count < ClScanLimit && !BI->isTerminator(); ++BI) { 360 if (!isa<DbgInfoIntrinsic>(*BI)) 363 if (isNoModRef(AA->getModRefInfo(&*BI, AllocaLoc))) 366 if (!isa<StoreInst>(BI) && !isa<MemSetInst>(BI)) { 370 if (BI->mayWriteToMemory() || BI->mayReadFromMemory()) 375 if (StoreInst *NextStore = dyn_cast<StoreInst>(BI)) { [all...] |
/freebsd-current/contrib/llvm-project/llvm/utils/TableGen/ |
H A D | VarLenCodeEmitterGen.cpp | 146 if (const auto *BI = dyn_cast<BitsInit>(Arg)) { 147 if (!BI->isComplete()) 150 Segments.push_back({BI->getNumBits(), BI}); 151 } else if (const auto *BI = dyn_cast<BitInit>(Arg)) { 152 if (!BI->isConcrete()) 155 Segments.push_back({1, BI}); 387 if (const auto *BI = dyn_cast<BitsInit>(SI->Value)) { 389 auto *B = cast<BitInit>(BI->getBit(Idx)); 393 if (const auto *BI [all...] |
H A D | CodeGenInstAlias.cpp | 120 if (BitsInit *BI = dyn_cast<BitsInit>(Arg)) { 123 if (!BI->isComplete()) 127 BI->convertInitializerTo(IntRecTy::get(BI->getRecordKeeper())));
|
/freebsd-current/contrib/llvm-project/llvm/include/llvm/Bitstream/ |
H A D | BitstreamReader.h | 59 for (const BlockInfo &BI : BlockInfoRecords) 60 if (BI.BlockID == BlockID) 61 return &BI; 66 if (const BlockInfo *BI = getBlockInfo(BlockID)) 67 return *const_cast<BlockInfo*>(BI); 572 void setBlockInfo(BitstreamBlockInfo *BI) { BlockInfo = BI; } argument
|
/freebsd-current/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUUnifyDivergentExitNodes.cpp | 225 } else if (BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator())) { 237 if (BI->isUnconditional()) { 238 BasicBlock *LoopHeaderBB = BI->getSuccessor(0); 239 BI->eraseFromParent(); // Delete the unconditional branch. 247 BasicBlock *TransitionBB = BB->splitBasicBlock(BI, "TransitionBlock");
|
H A D | SIWholeQuadMode.cpp | 641 BlockInfo &BI = Blocks[MBB]; local 653 BI.Needs |= StateWQM; 654 if (!(BI.InNeeds & StateWQM)) { 655 BI.InNeeds |= StateWQM; 681 BI.Needs |= StateStrictWWM; 683 BI.Needs |= StateStrictWQM; 688 BlockInfo BI = Blocks[&MBB]; // Make a copy to prevent dangling references. local 694 if ((LastII.OutNeeds | BI.OutNeeds) != LastII.OutNeeds) { 695 LastII.OutNeeds |= BI.OutNeeds; 703 if ((PredBI.OutNeeds | BI 1073 const BlockInfo &BI = BII->second; local [all...] |
/freebsd-current/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
H A D | ControlHeightReduction.cpp | 629 static bool checkBiasedBranch(BranchInst *BI, Region *R, argument 633 if (!BI->isConditional()) 636 if (!extractBranchProbabilities(BI, ThenProb, ElseProb)) 638 BasicBlock *IfThen = BI->getSuccessor(0); 639 BasicBlock *IfElse = BI->getSuccessor(1); 649 CHR_DEBUG(dbgs() << "BI " << *BI << " "); 760 auto *BI = dyn_cast<BranchInst>(Entry->getTerminator()); local 761 if (BI) 762 CHR_DEBUG(dbgs() << "BI 1027 auto *BI = cast<BranchInst>(RI.R->getEntry()->getTerminator()); local 1389 auto *BI = cast<BranchInst>(R->getEntry()->getTerminator()); local 1489 auto *BI = cast<BranchInst>(R->getEntry()->getTerminator()); local 1647 auto *BI = cast<BranchInst>(R->getEntry()->getTerminator()); local 1895 auto *BI = cast<BranchInst>(R->getEntry()->getTerminator()); local [all...] |