| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
| H A D | VPlanUtils.h | 153 static void insertTwoBlocksAfter(VPBlockBase *IfTrue, VPBlockBase *IfFalse, in insertTwoBlocksAfter() argument 155 assert(IfTrue->getSuccessors().empty() && in insertTwoBlocksAfter() 159 BlockPtr->setTwoSuccessors(IfTrue, IfFalse); in insertTwoBlocksAfter() 160 IfTrue->setPredecessors({BlockPtr}); in insertTwoBlocksAfter() 162 IfTrue->setParent(BlockPtr->getParent()); in insertTwoBlocksAfter()
|
| H A D | VPlan.h | 279 void setTwoSuccessors(VPBlockBase *IfTrue, VPBlockBase *IfFalse) { in setTwoSuccessors() argument 281 appendSuccessor(IfTrue); in setTwoSuccessors()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | LoopDeletion.cpp | 331 BasicBlock *IfTrue, *IfFalse; in canProveExitOnFirstIteration() local 334 m_BasicBlock(IfTrue), m_BasicBlock(IfFalse)))) { in canProveExitOnFirstIteration() 360 if (L->contains(IfTrue) && L->contains(IfFalse)) in canProveExitOnFirstIteration() 361 MarkLiveEdge(BB, IfTrue); in canProveExitOnFirstIteration() 371 MarkLiveEdge(BB, IfTrue); in canProveExitOnFirstIteration()
|
| H A D | GuardWidening.cpp | 506 const BasicBlock *IfTrue = nullptr, *IfFalse = nullptr; in computeWideningScore() local 508 if (!match(Term, m_Br(m_Value(Cond), m_BasicBlock(IfTrue), in computeWideningScore() 513 return ConstCond->isAllOnesValue() ? IfTrue : IfFalse; in computeWideningScore() 516 return IfTrue; in computeWideningScore() 517 if (IfTrue->getPostdominatingDeoptimizeCall()) in computeWideningScore()
|
| H A D | SimpleLoopUnswitch.cpp | 3001 BasicBlock *&IfTrue, in canonicalizeForInvariantConditionInjection() argument 3004 if (!L.contains(IfTrue)) { in canonicalizeForInvariantConditionInjection() 3006 std::swap(IfTrue, IfFalse); in canonicalizeForInvariantConditionInjection() 3029 const BasicBlock *IfTrue, const BasicBlock *IfFalse, const Loop &L) { in shouldTryInjectInvariantCondition() argument 3036 if (!L.contains(IfTrue) || L.contains(IfFalse)) in shouldTryInjectInvariantCondition() 3040 if (L.getHeader() == IfTrue) in shouldTryInjectInvariantCondition() 3248 BasicBlock *IfTrue = nullptr, *IfFalse = nullptr; in collectUnswitchCandidatesWithInjections() local 3255 m_BasicBlock(IfTrue), m_BasicBlock(IfFalse)))) in collectUnswitchCandidatesWithInjections() 3259 canonicalizeForInvariantConditionInjection(Pred, LHS, RHS, IfTrue, IfFalse, in collectUnswitchCandidatesWithInjections() 3261 if (!shouldTryInjectInvariantCondition(Pred, LHS, RHS, IfTrue, IfFalse, L)) in collectUnswitchCandidatesWithInjections() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonEarlyIfConv.cpp | 188 unsigned getCondStoreOpcode(unsigned Opc, bool IfTrue) const; 190 MachineInstr *MI, unsigned PredR, bool IfTrue); 193 unsigned PredR, bool IfTrue); 696 bool IfTrue) const { in getCondStoreOpcode() 697 return HII->getCondOpcode(Opc, !IfTrue); in getCondStoreOpcode() 702 unsigned PredR, bool IfTrue) { in predicateInstr() argument 712 unsigned COpc = getCondStoreOpcode(Opc, IfTrue); in predicateInstr() 733 const MCInstrDesc &D = HII->get(IfTrue ? Hexagon::J2_jumpt in predicateInstr() 753 unsigned PredR, bool IfTrue) { in predicateBlockNB() argument 764 predicateInstr(ToB, At, &*I, PredR, IfTrue); in predicateBlockNB()
|
| H A D | HexagonGenMux.cpp | 238 bool IfTrue = HII->isPredicatedTrue(Opc); in genMuxInBlock() local 251 if (IfTrue) in genMuxInBlock()
|
| H A D | HexagonExpandCondsets.cpp | 586 bool IfTrue) { in getCondTfrOpcode() argument 601 return IfTrue ? Hexagon::A2_tfrt : Hexagon::A2_tfrf; in getCondTfrOpcode() 603 return IfTrue ? Hexagon::A2_tfrpt : Hexagon::A2_tfrpf; in getCondTfrOpcode() 616 return IfTrue ? Hexagon::C2_cmoveit : Hexagon::C2_cmoveif; in getCondTfrOpcode()
|
| /freebsd/contrib/llvm-project/llvm/lib/FuzzMutate/ |
| H A D | IRMutator.cpp | 533 BasicBlock *IfTrue = BasicBlock::Create(C, "T", F); in mutate() local 538 BranchInst *Branch = BranchInst::Create(IfTrue, IfFalse, Cond); in mutate() 542 connectBlocksToSink({IfTrue, IfFalse}, Sink, IB); in mutate()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | BasicBlockUtils.cpp | 1663 BranchInst *llvm::GetIfCondition(BasicBlock *BB, BasicBlock *&IfTrue, in GetIfCondition() argument 1718 IfTrue = Pred1; in GetIfCondition() 1722 IfTrue = Pred2; in GetIfCondition() 1746 IfTrue = Pred1; in GetIfCondition() 1749 IfTrue = Pred2; in GetIfCondition()
|
| H A D | SimplifyCFG.cpp | 3645 BasicBlock *IfTrue, *IfFalse; in foldTwoEntryPHINode() local 3646 BranchInst *DomBI = GetIfCondition(BB, IfTrue, IfFalse); in foldTwoEntryPHINode() 3785 dbgs() << " T: " << IfTrue->getName() in foldTwoEntryPHINode() 3800 Value *TrueVal = PN->getIncomingValueForBlock(IfTrue); in foldTwoEntryPHINode()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
| H A D | BasicBlockUtils.h | 577 LLVM_ABI BranchInst *GetIfCondition(BasicBlock *BB, BasicBlock *&IfTrue,
|
| /freebsd/contrib/llvm-project/llvm/lib/SandboxIR/ |
| H A D | Instruction.cpp | 350 BranchInst *BranchInst::create(BasicBlock *IfTrue, InsertPosition Pos, in create() argument 354 Builder.CreateBr(cast<llvm::BasicBlock>(IfTrue->Val)); in create() 358 BranchInst *BranchInst::create(BasicBlock *IfTrue, BasicBlock *IfFalse, in create() argument 362 Builder.CreateCondBr(Cond->Val, cast<llvm::BasicBlock>(IfTrue->Val), in create()
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | Instructions.cpp | 1197 BranchInst::BranchInst(BasicBlock *IfTrue, AllocInfo AllocInfo, in BranchInst() argument 1199 : Instruction(Type::getVoidTy(IfTrue->getContext()), Instruction::Br, in BranchInst() 1201 assert(IfTrue && "Branch destination may not be null!"); in BranchInst() 1202 Op<-1>() = IfTrue; in BranchInst() 1205 BranchInst::BranchInst(BasicBlock *IfTrue, BasicBlock *IfFalse, Value *Cond, in BranchInst() argument 1207 : Instruction(Type::getVoidTy(IfTrue->getContext()), Instruction::Br, in BranchInst() 1212 Op<-1>() = IfTrue; in BranchInst()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | Instructions.h | 3072 LLVM_ABI explicit BranchInst(BasicBlock *IfTrue, AllocInfo AllocInfo, 3074 LLVM_ABI BranchInst(BasicBlock *IfTrue, BasicBlock *IfFalse, Value *Cond, 3113 static BranchInst *Create(BasicBlock *IfTrue, 3116 return new (AllocMarker) BranchInst(IfTrue, AllocMarker, InsertBefore); 3119 static BranchInst *Create(BasicBlock *IfTrue, BasicBlock *IfFalse, 3124 BranchInst(IfTrue, IfFalse, Cond, AllocMarker, InsertBefore);
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineSelect.cpp | 2702 Value *IfTrue, *IfFalse; in foldSelectToPhiImpl() local 2707 IfTrue = Sel.getTrueValue(); in foldSelectToPhiImpl() 2712 IfTrue = Sel.getFalseValue(); in foldSelectToPhiImpl() 2733 Inputs[Pred] = IfTrue->DoPHITranslation(BB, Pred); in foldSelectToPhiImpl()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/ |
| H A D | Instruction.h | 1029 LLVM_ABI static BranchInst *create(BasicBlock *IfTrue, InsertPosition Pos, 1031 LLVM_ABI static BranchInst *create(BasicBlock *IfTrue, BasicBlock *IfFalse,
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64ISelLowering.cpp | 25594 SDValue IfTrue = N->getOperand(1); in performVSelectCombine() local 25605 if (isMergePassthruOpcode(IfTrue.getOpcode()) && IfTrue.hasOneUse()) { in performVSelectCombine() 25610 if (isAllActivePredicate(DAG, IfTrue->getOperand(0)) || in performVSelectCombine() 25611 IfTrue->getOperand(IfTrue.getNumOperands() - 1).isUndef() || in performVSelectCombine() 25612 IfTrue->getOperand(0) == N0) { in performVSelectCombine() 25613 SmallVector<SDValue, 4> Ops(IfTrue->op_values()); in performVSelectCombine() 25615 Ops[IfTrue.getNumOperands() - 1] = IfFalse; in performVSelectCombine() 25617 return DAG.getNode(IfTrue.getOpcode(), SDLoc(N), ResVT, Ops); in performVSelectCombine() 25669 IfTrue, IfFalse); in performVSelectCombine()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SelectionDAGBuilder.cpp | 2497 BasicBlock *IfTrue = I.getSuccessor(1); in shouldKeepJumpConditionsTogether() local 2500 if (BPI->isEdgeHot(I.getParent(), IfTrue)) in shouldKeepJumpConditionsTogether()
|