Home
last modified time | relevance | path

Searched refs:TrueBlock (Results 1 – 11 of 11) sorted by relevance

/llvm-project-15.0.7/llvm/lib/Target/PowerPC/
H A DPPCExpandISEL.cpp51 MachineBasicBlock *TrueBlock; member in __anonfa7e3bf50111::PPCExpandISEL
371 TrueBlock = MF->CreateMachineBasicBlock(LLVM_BB); in reorganizeBlockLayout()
372 MF->insert(It, TrueBlock); in reorganizeBlockLayout()
396 MBB->addSuccessor(IsTrueBlockRequired ? TrueBlock : Successor); in reorganizeBlockLayout()
400 TrueBlockI = TrueBlock->begin(); in reorganizeBlockLayout()
401 TrueBlock->addSuccessor(Successor); in reorganizeBlockLayout()
412 .addMBB(IsTrueBlockRequired ? TrueBlock : Successor); in reorganizeBlockLayout()
446 BuildMI(*TrueBlock, TrueBlockI, dl, in populateBlocks()
468 computeAndAddLiveIns(LPR, *TrueBlock); in populateBlocks()
/llvm-project-15.0.7/llvm/lib/Target/Lanai/
H A DLanaiInstrInfo.cpp561 MachineBasicBlock *&TrueBlock, in analyzeBranch() argument
590 TrueBlock = Instruction->getOperand(0).getMBB(); in analyzeBranch()
602 TrueBlock = nullptr; in analyzeBranch()
609 TrueBlock = Instruction->getOperand(0).getMBB(); in analyzeBranch()
625 FalseBlock = TrueBlock; in analyzeBranch()
626 TrueBlock = Instruction->getOperand(0).getMBB(); in analyzeBranch()
657 MachineBasicBlock *TrueBlock, in insertBranch() argument
663 assert(TrueBlock && "insertBranch must not be told to insert a fallthrough"); in insertBranch()
669 BuildMI(&MBB, DL, get(Lanai::BT)).addMBB(TrueBlock); in insertBranch()
677 BuildMI(&MBB, DL, get(Lanai::BRCC)).addMBB(TrueBlock).addImm(ConditionalCode); in insertBranch()
H A DLanaiInstrInfo.h87 bool analyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TrueBlock,
139 unsigned insertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TrueBlock,
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DSelectOptimize.cpp442 BasicBlock *TrueBlock = nullptr, *FalseBlock = nullptr; in convertProfitableSIGroups() local
445 TrueBlock = BasicBlock::Create(LastSI->getContext(), "select.true.sink", in convertProfitableSIGroups()
447 TrueBranch = BranchInst::Create(EndBlock, TrueBlock); in convertProfitableSIGroups()
462 if (TrueBlock == FalseBlock) { in convertProfitableSIGroups()
463 assert(TrueBlock == nullptr && in convertProfitableSIGroups()
478 if (TrueBlock == nullptr) { in convertProfitableSIGroups()
481 TrueBlock = StartBlock; in convertProfitableSIGroups()
483 TT = TrueBlock; in convertProfitableSIGroups()
487 TT = TrueBlock; in convertProfitableSIGroups()
505 PN->addIncoming(getTrueOrFalseValue(SI, true, INS), TrueBlock); in convertProfitableSIGroups()
H A DCodeGenPrepare.cpp6823 BasicBlock *TrueBlock = nullptr; in optimizeSelectInst() local
6832 if (TrueBlock == nullptr) { in optimizeSelectInst()
6833 TrueBlock = BasicBlock::Create(SI->getContext(), "select.true.sink", in optimizeSelectInst()
6835 TrueBranch = BranchInst::Create(EndBlock, TrueBlock); in optimizeSelectInst()
6855 if (TrueBlock == FalseBlock) { in optimizeSelectInst()
6856 assert(TrueBlock == nullptr && in optimizeSelectInst()
6871 if (TrueBlock == nullptr) { in optimizeSelectInst()
6874 TrueBlock = StartBlock; in optimizeSelectInst()
6876 TT = TrueBlock; in optimizeSelectInst()
6880 TT = TrueBlock; in optimizeSelectInst()
[all …]
/llvm-project-15.0.7/llvm/test/CodeGen/RISCV/
H A Danalyze-branch.ll34 ; Expected layout order is: Entry, TrueBlock, FalseBlock
35 ; Entry->TrueBlock is the common path, which should be taken whenever the
66 ; Expected layout order is: Entry, FalseBlock, TrueBlock
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DDFAJumpThreading.cpp258 BasicBlock *TrueBlock = nullptr; in unfold() local
266 "si.unfold.true", &TrueBlock, &TrueBranch, in unfold()
277 if (!TrueBlock && !FalseBlock) { in unfold()
292 if (TrueBlock && FalseBlock) { in unfold()
294 TT = TrueBlock; in unfold()
299 SIUse->addIncoming(SI->getTrueValue(), TrueBlock); in unfold()
305 Phi.addIncoming(Phi.getIncomingValueForBlock(StartBlock), TrueBlock); in unfold()
315 if (!TrueBlock) { in unfold()
321 NewBlock = TrueBlock; in unfold()
322 TT = TrueBlock; in unfold()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCodeGenFunction.cpp1604 const Expr *Cond, BinaryOperator::Opcode LOp, llvm::BasicBlock *TrueBlock, in EmitBranchToCounterBlock() argument
1610 return EmitBranchOnBoolExpr(Cond, TrueBlock, FalseBlock, TrueCount, LH); in EmitBranchToCounterBlock()
1634 NextBlock = TrueBlock; in EmitBranchToCounterBlock()
1650 ThenBlock = TrueBlock; in EmitBranchToCounterBlock()
1675 llvm::BasicBlock *TrueBlock, in EmitBranchOnBoolExpr() argument
1728 EmitBranchToCounterBlock(CondBOp->getRHS(), BO_LAnd, TrueBlock, in EmitBranchOnBoolExpr()
1743 return EmitBranchToCounterBlock(CondBOp->getRHS(), BO_LOr, TrueBlock, in EmitBranchOnBoolExpr()
1752 return EmitBranchToCounterBlock(CondBOp->getLHS(), BO_LOr, TrueBlock, in EmitBranchOnBoolExpr()
1832 EmitBranchOnBoolExpr(CondOp->getLHS(), TrueBlock, FalseBlock, in EmitBranchOnBoolExpr()
1839 EmitBranchOnBoolExpr(CondOp->getRHS(), TrueBlock, FalseBlock, in EmitBranchOnBoolExpr()
[all …]
H A DCodeGenFunction.h4550 llvm::BasicBlock *TrueBlock,
4561 void EmitBranchOnBoolExpr(const Expr *Cond, llvm::BasicBlock *TrueBlock,
H A DCGStmtOpenMP.cpp2287 const Expr *Cond, llvm::BasicBlock *TrueBlock, in emitPreCond() argument
2320 CGF.EmitBranchOnBoolExpr(Cond, TrueBlock, FalseBlock, TrueCount); in emitPreCond()
/llvm-project-15.0.7/clang/lib/Analysis/
H A DCFG.cpp2458 CFGBlock *TrueBlock, in VisitLogicalOperator() argument
2470 VisitLogicalOperator(B_RHS, Term, TrueBlock, FalseBlock); in VisitLogicalOperator()
2488 assert(TrueBlock == FalseBlock); in VisitLogicalOperator()
2489 addSuccessor(RHSBlock, TrueBlock); in VisitLogicalOperator()
2493 addSuccessor(RHSBlock, TrueBlock, !KnownVal.isFalse()); in VisitLogicalOperator()
2513 TrueBlock = RHSBlock; in VisitLogicalOperator()
2518 return VisitLogicalOperator(B_LHS, B, TrueBlock, FalseBlock); in VisitLogicalOperator()
2537 addSuccessor(LHSBlock, TrueBlock, !KnownVal.isFalse()); in VisitLogicalOperator()
5102 CFGBlock *TrueBlock = Block; in VisitConditionalOperatorForTemporaryDtors() local
5111 InsertTempDtorDecisionBlock(FalseContext, TrueBlock); in VisitConditionalOperatorForTemporaryDtors()
[all …]