reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/Analysis/SparsePropagation.h
  302           getValueState(KeyInfo::getLatticeKeyFromValue(BI->getCondition()));
  305           KeyInfo::getLatticeKeyFromValue(BI->getCondition()));
  320             std::move(BCValue), BI->getCondition()->getType()));
include/llvm/IR/PatternMatch.h
 1406       if (BI->isConditional() && Cond.match(BI->getCondition()))
lib/Analysis/BranchProbabilityInfo.cpp
  405   Value *Cond = BI->getCondition();
  497   CmpInst *CI = dyn_cast<CmpInst>(BI->getCondition());
  665   Value *Cond = BI->getCondition();
  783   Value *Cond = BI->getCondition();
lib/Analysis/DivergenceAnalysis.cpp
  115     return isDivergent(*BranchTerm->getCondition());
lib/Analysis/InlineCost.cpp
 1348   return BI.isUnconditional() || isa<ConstantInt>(BI.getCondition()) ||
 1350              SimplifiedValues.lookup(BI.getCondition()));
 1864         Value *Cond = BI->getCondition();
lib/Analysis/LazyValueInfo.cpp
 1391       Value *Condition = BI->getCondition();
lib/Analysis/LoopInfo.cpp
  174         return dyn_cast<ICmpInst>(BI->getCondition());
  235   ICmpInst *LatchCmpInst = dyn_cast<ICmpInst>(BI->getCondition());
lib/Analysis/MustExecute.cpp
  127   if (auto *Cond = dyn_cast<ConstantInt>(BI->getCondition()))
  129   auto *Cond = dyn_cast<CmpInst>(BI->getCondition());
lib/Analysis/ScalarEvolution.cpp
 4333         BECond = BI->getCondition();
 5240   C = BI->getCondition();
 7148         L, BI->getCondition(), ExitIfTrue,
 9475                     LoopContinuePredicate->getCondition(),
 9539     Value *Condition = ContinuePredicate->getCondition();
 9652     if (ProveViaCond(LoopEntryPredicate->getCondition(),
lib/Bitcode/Writer/BitcodeWriter.cpp
 2729         pushValue(II.getCondition(), InstID, Vals);
lib/CodeGen/GlobalISel/IRTranslator.cpp
  389     Register Tst = getOrCreateVReg(*BrInst.getCondition());
lib/CodeGen/HardwareLoops.cpp
  291   if (BI->isUnconditional() || !isa<ICmpInst>(BI->getCondition()))
  296   auto ICmp = cast<ICmpInst>(BI->getCondition());
  400   Value *OldCond = ExitBranch->getCondition();
  445   Value *OldCond = ExitBranch->getCondition();
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
 2244   const Value *CondVal = I.getCondition();
lib/ExecutionEngine/Interpreter/Execution.cpp
  940     Value *Cond = I.getCondition();
lib/IR/AsmWriter.cpp
 3722     writeOperand(BI.getCondition(), true);
lib/IR/Core.cpp
 2906   return wrap(unwrap<BranchInst>(Branch)->getCondition());
lib/IR/Instructions.cpp
 1127     assert(getCondition()->getType()->isIntegerTy(1) &&
lib/IR/SafepointIRVerifier.cpp
  142       if (!BI || !BI->isConditional() || !isa<Constant>(BI->getCondition()))
  149       ConstantInt *Cond = dyn_cast<ConstantInt>(BI->getCondition());
lib/IR/Verifier.cpp
 2442     Assert(BI.getCondition()->getType()->isIntegerTy(1),
 2443            "Branch condition is not 'i1' type!", &BI, BI.getCondition());
lib/Target/AArch64/AArch64FastISel.cpp
 2301   assert(isa<CmpInst>(BI->getCondition()) && "Expected cmp instruction");
 2302   const CmpInst *CI = cast<CmpInst>(BI->getCondition());
 2431   if (const CmpInst *CI = dyn_cast<CmpInst>(BI->getCondition())) {
 2493   } else if (const auto *CI = dyn_cast<ConstantInt>(BI->getCondition())) {
 2509     if (foldXALUIntrinsic(CC, I, BI->getCondition())) {
 2512       unsigned CondReg = getRegForValue(BI->getCondition());
 2526   unsigned CondReg = getRegForValue(BI->getCondition());
 2529   bool CondRegIsKill = hasTrivialKill(BI->getCondition());
lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
  125           if (dependsOnLocalPhi(L, Br->getCondition())) {
lib/Target/AMDGPU/SIAnnotateControlFlow.cpp
  213   Value *Ret = CallInst::Create(If, Term->getCondition(), "", Term);
  269   Value *Cond = Term->getCondition();
  351       PHINode *Phi = dyn_cast<PHINode>(Term->getCondition());
lib/Target/ARM/ARMFastISel.cpp
 1246   if (const CmpInst *CI = dyn_cast<CmpInst>(BI->getCondition())) {
 1271   } else if (TruncInst *TI = dyn_cast<TruncInst>(BI->getCondition())) {
 1296              dyn_cast<ConstantInt>(BI->getCondition())) {
 1303   unsigned CmpReg = getRegForValue(BI->getCondition());
lib/Target/Mips/MipsFastISel.cpp
  960   if (const CmpInst *CI = dyn_cast<CmpInst>(BI->getCondition())) {
  970     unsigned CondReg = getRegForValue(BI->getCondition());
lib/Target/PowerPC/PPCFastISel.cpp
  776   if (const CmpInst *CI = dyn_cast<CmpInst>(BI->getCondition())) {
  803              dyn_cast<ConstantInt>(BI->getCondition())) {
lib/Target/WebAssembly/WebAssemblyFastISel.cpp
 1281   unsigned CondReg = getRegForI1Value(Br->getCondition(), Not);
lib/Target/X86/X86FastISel.cpp
 1635   if (const CmpInst *CI = dyn_cast<CmpInst>(BI->getCondition())) {
 1707   } else if (TruncInst *TI = dyn_cast<TruncInst>(BI->getCondition())) {
 1741   } else if (foldX86XALUIntrinsic(CC, BI, BI->getCondition())) {
 1744     unsigned TmpReg = getRegForValue(BI->getCondition());
 1757   unsigned OpReg = getRegForValue(BI->getCondition());
lib/Transforms/InstCombine/InstCombineCompares.cpp
 4851   auto *IC = dyn_cast<ICmpInst>(BI->getCondition());
lib/Transforms/InstCombine/InstructionCombining.cpp
 2570   if (BI.isConditional() && !isa<ConstantInt>(BI.getCondition()) &&
 2572     BI.setCondition(ConstantInt::getFalse(BI.getCondition()->getType()));
 2582     CmpInst *Cond = cast<CmpInst>(BI.getCondition());
 3447       if (BI->isConditional() && isa<ConstantInt>(BI->getCondition())) {
 3448         bool CondVal = cast<ConstantInt>(BI->getCondition())->getZExtValue();
lib/Transforms/Instrumentation/ControlHeightReduction.cpp
  934       bool IsHoistable = checkHoistValue(Branch->getCondition(), InsertPoint,
  967       assert(checkHoistValue(Branch->getCondition(), InsertPoint,
 1044     ConditionValues.insert(BI->getCondition());
 1409       bool IsHoistable = checkHoistValue(BI->getCondition(), InsertPoint, DT,
 1507       hoistValue(BI->getCondition(), HoistPoint, R, Scope->HoistStopMap,
 1669       Value *V = BI->getCondition();
 1910   Value *Cond = BI->getCondition();
lib/Transforms/Instrumentation/PGOInstrumentation.cpp
  265   Value *Cond = BI->getCondition();
lib/Transforms/Scalar/CallSiteSplitting.cpp
  137   Value *Cond = BI->getCondition();
lib/Transforms/Scalar/EarlyCSE.cpp
  815   assert(BI->getCondition() == CondInst && "Wrong condition?");
  885       auto *CondInst = dyn_cast<Instruction>(BI->getCondition());
lib/Transforms/Scalar/GVN.cpp
 1987     if (isa<Constant>(BI->getCondition()))
 1990     Value *BranchCond = BI->getCondition();
 2621   ConstantInt *Cond = dyn_cast<ConstantInt>(BI->getCondition());
lib/Transforms/Scalar/GuardWidening.cpp
  101     auto *Cond = cast<BranchInst>(I)->getCondition();
  104   return cast<BranchInst>(I)->getCondition();
  278       auto *Cond = cast<BranchInst>(ToWiden)->getCondition();
lib/Transforms/Scalar/IndVarSimplify.cpp
  781           Cond = BI->getCondition();
 1891       UpdateRangeFromCondition(BI->getCondition(), /*TrueDest=*/true);
 1894       UpdateRangeFromCondition(BI->getCondition(), /*TrueDest=*/false);
 2060   ICmpInst *ICmp = dyn_cast<ICmpInst>(BI->getCondition());
 2079   if (L->isLoopInvariant(BI->getCondition()))
 2083   ICmpInst *Cond = dyn_cast<ICmpInst>(BI->getCondition());
 2252   Value *Cond = cast<BranchInst>(ExitingBB->getTerminator())->getCondition();
 2490   if (auto *Cond = dyn_cast<Instruction>(BI->getCondition()))
 2543                     << "  was: " << *BI->getCondition() << "\n");
 2546   Value *OrigCond = BI->getCondition();
 2701     if (isa<Constant>(BI->getCondition()))
 2740     auto *OldCond = BI->getCondition();
 2850     if (isa<Constant>(BI->getCondition()))
 2961     Value *OldCond = BI->getCondition();
lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
  782   ICmpInst *ICI = dyn_cast<ICmpInst>(LatchBr->getCondition());
lib/Transforms/Scalar/JumpThreading.cpp
 1066     Condition = BI->getCondition();
 1247   Value *Cond = BI->getCondition();
 1263         isImpliedCondition(PBI->getCondition(), Cond, DL, CondIsTrue);
 2691   Value *BranchCond = BI->getCondition();
lib/Transforms/Scalar/LICM.cpp
  780         BranchInst::Create(HoistTrueDest, HoistFalseDest, BI->getCondition()));
lib/Transforms/Scalar/LoopFuse.cpp
 1069             dyn_cast<Instruction>(FC0.GuardBranch->getCondition()))
 1071               dyn_cast<Instruction>(FC1.GuardBranch->getCondition()))
 1091     if (auto *CmpInst = dyn_cast<Instruction>(FC.GuardBranch->getCondition())) {
lib/Transforms/Scalar/LoopIdiomRecognize.cpp
 1228   ICmpInst *Cond = dyn_cast<ICmpInst>(BI->getCondition());
 1752   ICmpInst *LbCond = cast<ICmpInst>(LbBr->getCondition());
 1822     ICmpInst *PreCond = cast<ICmpInst>(PreCondBr->getCondition());
 1859     ICmpInst *LbCond = cast<ICmpInst>(LbBr->getCondition());
lib/Transforms/Scalar/LoopInterchange.cpp
 1286             ->getCondition());
lib/Transforms/Scalar/LoopPredication.cpp
  814   unsigned NumWidened = collectChecks(Checks, BI->getCondition(),
  824   auto *OldCond = BI->getCondition();
  853   auto *ICI = dyn_cast<ICmpInst>(BI->getCondition());
lib/Transforms/Scalar/LoopSimplifyCFG.cpp
   63     ConstantInt *Cond = dyn_cast<ConstantInt>(BI->getCondition());
lib/Transforms/Scalar/LoopStrengthReduce.cpp
 2395     if (TermBr->isUnconditional() || !isa<ICmpInst>(TermBr->getCondition()))
 2400     ICmpInst *Cond = cast<ICmpInst>(TermBr->getCondition());
 3274       if (SaveCmp && CI == dyn_cast<ICmpInst>(ExitBranch->getCondition()))
lib/Transforms/Scalar/LoopUnrollPass.cpp
  570                   SimplifiedValues.lookup(BI->getCondition())) {
lib/Transforms/Scalar/LoopUnswitch.cpp
  571     Value *Cond = BInst->getCondition();
  740         Value *LoopCond = FindLIVLoopCondition(BI->getCondition(), currentLoop,
 1096       } else if (BI->getCondition() == ConstantInt::getTrue(Context)) {
 1098       } else if (BI->getCondition() == ConstantInt::getFalse(Context)) {
 1130     Value *LoopCond = FindLIVLoopCondition(BI->getCondition(), currentLoop,
 1136     if (!LoopCond || LoopCond != BI->getCondition())
lib/Transforms/Scalar/LowerExpectIntrinsic.cpp
  251   ICmpInst *CmpI = dyn_cast<ICmpInst>(BSI.getCondition());
  255     CI = dyn_cast<CallInst>(BSI.getCondition());
lib/Transforms/Scalar/MakeGuardsExplicit.cpp
   73       B.CreateAnd(ExplicitGuard->getCondition(), WidenableCondition);
lib/Transforms/Scalar/MergeICmps.cpp
  378     auto *const CmpI = dyn_cast<ICmpInst>(BranchI->getCondition());
lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
 2584         return dyn_cast<Instruction>(BI->getCondition());
lib/Transforms/Scalar/SCCP.cpp
  675     LatticeVal BCValue = getValueState(BI->getCondition());
 1674       if (!getValueState(BI->getCondition()).isUnknown())
 1679       if (isa<UndefValue>(BI->getCondition())) {
 1981     if (!isa<ConstantInt>(BI->getCondition())) {
lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
  362   if (L.isLoopInvariant(BI.getCondition())) {
  363     Invariants.push_back(BI.getCondition());
  366     if (auto *CondInst = dyn_cast<Instruction>(BI.getCondition()))
  396       if (cast<Instruction>(BI.getCondition())->getOpcode() != Instruction::Or)
  399       if (cast<Instruction>(BI.getCondition())->getOpcode() != Instruction::And)
  476       assert(cast<Instruction>(BI.getCondition())->getOpcode() ==
  480       assert(cast<Instruction>(BI.getCondition())->getOpcode() ==
  918     if (!BI->isConditional() || isa<Constant>(BI->getCondition()))
 1914   bool FullUnswitch = SI || BI->getCondition() == Invariants[0];
 1919     assert(isa<Instruction>(BI->getCondition()) &&
 1934     if (cast<Instruction>(BI->getCondition())->getOpcode() != Instruction::Or) {
 1935       assert(cast<Instruction>(BI->getCondition())->getOpcode() ==
 2565     if (!BI || !BI->isConditional() || isa<Constant>(BI->getCondition()) ||
 2569     if (L.isLoopInvariant(BI->getCondition())) {
 2570       UnswitchCandidates.push_back({BI, {BI->getCondition()}});
 2574     Instruction &CondI = *cast<Instruction>(BI->getCondition());
 2688         if (cast<Instruction>(BI.getCondition())->getOpcode() ==
 2693           assert(cast<Instruction>(BI.getCondition())->getOpcode() ==
 2735                                      Invariants[0] == BI->getCondition()));
lib/Transforms/Scalar/StructurizeCFG.cpp
  440     Cond = Term->getCondition();
lib/Transforms/Utils/BasicBlockUtils.cpp
  949     return Pred1Br->getCondition();
  971   return BI->getCondition();
lib/Transforms/Utils/CloneFunction.cpp
  388       ConstantInt *Cond = dyn_cast<ConstantInt>(BI->getCondition());
  391         Value *V = VMap.lookup(BI->getCondition());
lib/Transforms/Utils/Evaluator.cpp
  615             dyn_cast<ConstantInt>(getVal(BI->getCondition()));
lib/Transforms/Utils/FlattenCFG.cpp
  177     Value *PC = PBI->getCondition();
  255       auto *CI = dyn_cast<CmpInst>(BI->getCondition());
  284   Value *PC = PBI->getCondition();
  293     Value *CC = PBI->getCondition();
  448   Value *CC = PBI->getCondition();
lib/Transforms/Utils/Local.cpp
  121     if (auto *Cond = dyn_cast<ConstantInt>(BI->getCondition())) {
  150       Value *Cond = BI->getCondition();
lib/Transforms/Utils/LoopRotationUtils.cpp
  446   if (!isa<ConstantInt>(PHBI->getCondition()) ||
  447       PHBI->getSuccessor(cast<ConstantInt>(PHBI->getCondition())->isZero()) !=
lib/Transforms/Utils/LoopSimplify.cpp
  522         if (UndefValue *Cond = dyn_cast<UndefValue>(BI->getCondition())) {
  633       CmpInst *CI = dyn_cast<CmpInst>(BI->getCondition());
lib/Transforms/Utils/LoopUnrollPeel.cpp
  186     Value *Condition = BI->getCondition();
lib/Transforms/Utils/MisExpect.cpp
   56     Ret = dyn_cast<Instruction>(B->getCondition());
lib/Transforms/Utils/PredicateInfo.cpp
  424   if (match(BI->getCondition(), m_And(m_Cmp(Pred, m_Value(), m_Value()),
  426       match(BI->getCondition(), m_Or(m_Cmp(Pred, m_Value(), m_Value()),
  428     auto *BinOp = cast<BinaryOperator>(BI->getCondition());
  435     ConditionsToProcess.push_back(BI->getCondition());
  436   } else if (isa<CmpInst>(BI->getCondition())) {
  437     ConditionsToProcess.push_back(BI->getCondition());
lib/Transforms/Utils/SimplifyCFG.cpp
  273   CmpInst *Ci2 = dyn_cast<CmpInst>(SI2->getCondition());
  687       Cond = dyn_cast<Instruction>(BI->getCondition());
  707     if (BI->isConditional() && BI->getCondition()->hasOneUse())
  708       if (ICmpInst *ICI = dyn_cast<ICmpInst>(BI->getCondition())) {
  737   ICmpInst *ICI = cast<ICmpInst>(BI->getCondition());
  982     ICmpInst *ICI = cast<ICmpInst>(BI->getCondition());
 1408             Builder.CreateSelect(BI->getCondition(), BB1V, BB2V,
 1959   Value *BrCond = BI->getCondition();
 2177   PHINode *PN = dyn_cast<PHINode>(BI->getCondition());
 2504   Value *BrCond = BI->getCondition();
 2581     Cond = dyn_cast<Instruction>(BI->getCondition());
 2710       Value *NewCond = PBI->getCondition();
 2717             Builder.CreateNot(NewCond, PBI->getCondition()->getName() + ".not");
 2762           Builder.CreateBinOp(Opc, PBI->getCondition(), CondInPred, "or.cond"));
 2824               Builder.CreateNot(PBI->getCondition(), "not.cond"));
 2830                 Instruction::Or, PBI->getCondition(), MergedCond, "or.cond"));
 2836               Instruction::And, PBI->getCondition(), CondInPred, "and.cond"));
 2839                 Builder.CreateNot(PBI->getCondition(), "not.cond"));
 3049                      ->getCondition();
 3051                      ->getCondition();
 3228   if (PBI->getCondition() == BI->getCondition() &&
 3228   if (PBI->getCondition() == BI->getCondition() &&
 3247           BI->getCondition()->getName() + ".pr", &BB->front());
 3254             PBI->isConditional() && PBI->getCondition() == BI->getCondition() &&
 3254             PBI->isConditional() && PBI->getCondition() == BI->getCondition() &&
 3261           NewPN->addIncoming(BI->getCondition(), P);
 3270   if (auto *CE = dyn_cast<ConstantExpr>(BI->getCondition()))
 3367   Value *PBICond = PBI->getCondition();
 3372   Value *BICond = BI->getCondition();
 3694   Instruction *Cond = dyn_cast<Instruction>(BI->getCondition());
 4232         Value* Cond = BI->getCondition();
 5242   Value *RangeCmp = RangeCheckBranch->getCondition();
 5881     } else if (&*I == cast<Instruction>(BI->getCondition())) {
 5894   Optional<bool> Imp = isImpliedByDomCondition(BI->getCondition(), BI, DL);
 5897     auto *OldCond = BI->getCondition();
 5940   if (PHINode *PN = dyn_cast<PHINode>(BI->getCondition()))
lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
  322   auto *LatchCmp = dyn_cast<CmpInst>(LatchBr->getCondition());
  451         !TheLoop->isLoopInvariant(Br->getCondition()) &&
lib/Transforms/Vectorize/LoopVectorize.cpp
 1743   auto *ICmp = cast<Instruction>(Br->getCondition());
 6660   VPValue *EdgeMask = Plan->getVPValue(BI->getCondition());
 7058       NeedDef.insert(Branch->getCondition());
lib/Transforms/Vectorize/VPlanHCFGBuilder.cpp
  207         getOrCreateVPOperand(Br->getCondition());
  291       Value *BrCond = Br->getCondition();
tools/lldb/source/Expression/IRInterpreter.cpp
  943         Value *condition = br_inst->getCondition();
tools/llvm-diff/DifferenceEngine.cpp
  296         if (!equivalentAsOperands(LI->getCondition(), RI->getCondition())) {
  296         if (!equivalentAsOperands(LI->getCondition(), RI->getCondition())) {
tools/polly/lib/Support/ScopHelper.cpp
  455     return BR->getCondition();
unittests/FuzzMutate/OperationsTest.cpp
  203   EXPECT_THAT(CondBr->getCondition(), Eq(Cond));
unittests/IR/InstructionsTest.cpp
  157   EXPECT_EQ(One, b1->getCondition());