/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Transforms/Utils/ |
D | SSAUpdaterBulk.cpp | 49 BasicBlock *TrueBB = BasicBlock::Create(C, "true", F); in TEST() local 54 B.CreateCondBr(B.getTrue(), TrueBB, FalseBB); in TEST() 56 B.SetInsertPoint(TrueBB); in TEST() 77 Updater.AddAvailableValue(VarNum, TrueBB, AddOp1); in TEST() 83 Updater.AddAvailableValue(VarNum, TrueBB, SubOp1); in TEST() 94 EXPECT_EQ(UpdatePhiA->getIncomingValueForBlock(TrueBB), AddOp1); in TEST() 100 EXPECT_EQ(UpdatePhiB->getIncomingValueForBlock(TrueBB), SubOp1); in TEST()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
D | IfConversion.cpp | 148 MachineBasicBlock *TrueBB = nullptr; member 301 return BBI.IsBrAnalyzable && BBI.TrueBB == nullptr; in blockAlwaysFallThrough() 413 : BBI.TrueBB->getNumber()) in INITIALIZE_PASS_DEPENDENCY() 439 << " (T:" << BBI.TrueBB->getNumber() in INITIALIZE_PASS_DEPENDENCY() 457 << " (T:" << BBI.TrueBB->getNumber() in INITIALIZE_PASS_DEPENDENCY() 469 << " (T:" << BBI.TrueBB->getNumber() in INITIALIZE_PASS_DEPENDENCY() 510 MachineBasicBlock *TrueBB) { in findFalseBlock() argument 512 if (SuccBB != TrueBB) in findFalseBlock() 524 TII->insertBranch(*BBI.BB, BBI.FalseBB, BBI.TrueBB, BBI.BrCond, dl); in reverseBranchCondition() 525 std::swap(BBI.TrueBB, BBI.FalseBB); in reverseBranchCondition() [all …]
|
D | BranchFolding.cpp | 1862 MachineBasicBlock *TrueBB) { in findFalseBlock() argument 1864 if (SuccBB != TrueBB) in findFalseBlock()
|
/external/llvm/lib/CodeGen/ |
D | IfConversion.cpp | 125 MachineBasicBlock *TrueBB; member 133 ExtraCost(0), ExtraCost2(0), BB(nullptr), TrueBB(nullptr), in BBInfo() 247 return BBI.IsBrAnalyzable && BBI.TrueBB == nullptr; in blockAlwaysFallThrough() 360 : BBI.TrueBB->getNumber()) << ") "); in INITIALIZE_PASS_DEPENDENCY() 385 << BBI.TrueBB->getNumber() << ",F:" in INITIALIZE_PASS_DEPENDENCY() 403 << BBI.TrueBB->getNumber() << ",F:" in INITIALIZE_PASS_DEPENDENCY() 441 MachineBasicBlock *TrueBB) { in findFalseBlock() argument 445 if (SuccBB != TrueBB) in findFalseBlock() 457 TII->InsertBranch(*BBI.BB, BBI.FalseBB, BBI.TrueBB, BBI.BrCond, dl); in ReverseBranchCondition() 458 std::swap(BBI.TrueBB, BBI.FalseBB); in ReverseBranchCondition() [all …]
|
D | BranchFolding.cpp | 1638 MachineBasicBlock *TrueBB) { in findFalseBlock() argument 1640 if (SuccBB != TrueBB) in findFalseBlock()
|
/external/llvm/lib/Target/Mips/ |
D | MipsDelaySlotFiller.cpp | 813 MachineBasicBlock *TrueBB = nullptr, *FalseBB = nullptr; in getBranch() local 818 TII->analyzeBranch(MBB, TrueBB, FalseBB, Cond, false, BranchInstrs); in getBranch() 827 assert(((R != MipsInstrInfo::BT_Uncond) || (TrueBB == &Dst))); in getBranch() 832 assert((TrueBB == &Dst) || (FalseBB == &Dst)); in getBranch()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Mips/ |
D | MipsDelaySlotFiller.cpp | 855 MachineBasicBlock *TrueBB = nullptr, *FalseBB = nullptr; in getBranch() local 860 TII->analyzeBranch(MBB, TrueBB, FalseBB, Cond, false, BranchInstrs); in getBranch() 869 assert(((R != MipsInstrInfo::BT_Uncond) || (TrueBB == &Dst))); in getBranch() 874 assert((TrueBB == &Dst) || (FalseBB == &Dst)); in getBranch()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPUMachineCFGStructurizer.cpp | 1903 MachineBasicBlock *TrueBB = nullptr; in rewriteCodeBBTerminator() local 1907 TII->analyzeBranch(*CodeBB, TrueBB, FalseBB, Cond); in rewriteCodeBBTerminator() 1911 if (FalseBB == nullptr && TrueBB == nullptr && FallthroughBB == nullptr) { in rewriteCodeBBTerminator() 1921 if (FalseBB == nullptr && TrueBB == nullptr) { in rewriteCodeBBTerminator() 1922 TrueBB = FallthroughBB; in rewriteCodeBBTerminator() 1923 } else if (TrueBB != nullptr) { in rewriteCodeBBTerminator() 1925 (FallthroughBB && (FallthroughBB != TrueBB)) ? FallthroughBB : FalseBB; in rewriteCodeBBTerminator() 1928 if ((TrueBB != nullptr && FalseBB == nullptr) || (TrueBB == FalseBB)) { in rewriteCodeBBTerminator() 1930 BBSelectReg, TrueBB->getNumber()); in rewriteCodeBBTerminator() 1936 TrueBBReg, TrueBB->getNumber()); in rewriteCodeBBTerminator()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/GlobalISel/ |
D | IRTranslator.cpp | 343 MachineBasicBlock &TrueBB = getMBB(TrueTgt); in translateBr() local 344 MIRBuilder.buildBrCond(Tst, TrueBB); in translateBr() 380 const BasicBlock *TrueBB = CaseIt.getCaseSuccessor(); in translateSwitch() local 381 MachineBasicBlock &TrueMBB = getMBB(*TrueBB); in translateSwitch() 385 addMachineCFGPred({OrigBB, TrueBB}, &CurMBB); in translateSwitch()
|
/external/llvm/lib/Transforms/Utils/ |
D | SimplifyCFG.cpp | 3008 BasicBlock *TrueBB, BasicBlock *FalseBB, in SimplifyTerminatorOnSelect() argument 3015 BasicBlock *KeepEdge1 = TrueBB; in SimplifyTerminatorOnSelect() 3016 BasicBlock *KeepEdge2 = TrueBB != FalseBB ? FalseBB : nullptr; in SimplifyTerminatorOnSelect() 3035 if (TrueBB == FalseBB) in SimplifyTerminatorOnSelect() 3038 Builder.CreateBr(TrueBB); in SimplifyTerminatorOnSelect() 3042 BranchInst *NewBI = Builder.CreateCondBr(Cond, TrueBB, FalseBB); in SimplifyTerminatorOnSelect() 3048 } else if (KeepEdge1 && (KeepEdge2 || TrueBB == FalseBB)) { in SimplifyTerminatorOnSelect() 3058 Builder.CreateBr(TrueBB); in SimplifyTerminatorOnSelect() 3081 BasicBlock *TrueBB = SI->findCaseValue(TrueVal).getCaseSuccessor(); in SimplifySwitchOnSelect() local 3099 return SimplifyTerminatorOnSelect(SI, Condition, TrueBB, FalseBB, TrueWeight, in SimplifySwitchOnSelect() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | SimplifyCFG.cpp | 3406 BasicBlock *TrueBB, BasicBlock *FalseBB, in SimplifyTerminatorOnSelect() argument 3413 BasicBlock *KeepEdge1 = TrueBB; in SimplifyTerminatorOnSelect() 3414 BasicBlock *KeepEdge2 = TrueBB != FalseBB ? FalseBB : nullptr; in SimplifyTerminatorOnSelect() 3433 if (TrueBB == FalseBB) in SimplifyTerminatorOnSelect() 3436 Builder.CreateBr(TrueBB); in SimplifyTerminatorOnSelect() 3440 BranchInst *NewBI = Builder.CreateCondBr(Cond, TrueBB, FalseBB); in SimplifyTerminatorOnSelect() 3444 } else if (KeepEdge1 && (KeepEdge2 || TrueBB == FalseBB)) { in SimplifyTerminatorOnSelect() 3454 Builder.CreateBr(TrueBB); in SimplifyTerminatorOnSelect() 3477 BasicBlock *TrueBB = SI->findCaseValue(TrueVal)->getCaseSuccessor(); in SimplifySwitchOnSelect() local 3495 return SimplifyTerminatorOnSelect(SI, Condition, TrueBB, FalseBB, TrueWeight, in SimplifySwitchOnSelect() [all …]
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAGBuilder.h | 225 TrueBB(truebb), FalseBB(falsebb), ThisBB(me), TrueProb(trueprob), in CC() 237 MachineBasicBlock *TrueBB, *FalseBB; member
|
D | SelectionDAGISel.cpp | 1793 Succs.push_back(SDB->SwitchCases[i].TrueBB); in FinishBasicBlock() 1794 if (SDB->SwitchCases[i].TrueBB != SDB->SwitchCases[i].FalseBB) in FinishBasicBlock()
|
D | SelectionDAGBuilder.cpp | 1775 if (Cases[0].CC == ISD::SETEQ && Cases[0].TrueBB == Cases[1].ThisBB) in ShouldEmitAsBranches() 1912 addSuccessorWithProb(SwitchBB, CB.TrueBB, CB.TrueProb); in visitSwitchCase() 1915 if (CB.TrueBB != CB.FalseBB) in visitSwitchCase() 1921 if (CB.TrueBB == NextBlock(SwitchBB)) { in visitSwitchCase() 1922 std::swap(CB.TrueBB, CB.FalseBB); in visitSwitchCase() 1929 DAG.getBasicBlock(CB.TrueBB)); in visitSwitchCase()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAGBuilder.h | 238 MachineBasicBlock *TrueBB, *FalseBB; member 257 TrueBB(truebb), FalseBB(falsebb), ThisBB(me), DL(dl), in CC()
|
D | SelectionDAGISel.cpp | 2057 Succs.push_back(SDB->SwitchCases[i].TrueBB); in FinishBasicBlock() 2058 if (SDB->SwitchCases[i].TrueBB != SDB->SwitchCases[i].FalseBB) in FinishBasicBlock()
|
D | SelectionDAGBuilder.cpp | 1956 if (Cases[0].CC == ISD::SETEQ && Cases[0].TrueBB == Cases[1].ThisBB) in ShouldEmitAsBranches() 2093 addSuccessorWithProb(SwitchBB, CB.TrueBB, CB.TrueProb); in visitSwitchCase() 2096 if (CB.TrueBB != CB.FalseBB) in visitSwitchCase() 2102 if (CB.TrueBB == NextBlock(SwitchBB)) { in visitSwitchCase() 2103 std::swap(CB.TrueBB, CB.FalseBB); in visitSwitchCase() 2110 DAG.getBasicBlock(CB.TrueBB)); in visitSwitchCase()
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Transforms/Scalar/ |
D | LoopPassManagerTest.cpp | 905 auto CreateCondBr = [&](BasicBlock *TrueBB, BasicBlock *FalseBB, in TEST_F() 908 BranchInst::Create(TrueBB, FalseBB, Cond, BB); in TEST_F() 1107 auto CreateCondBr = [&](BasicBlock *TrueBB, BasicBlock *FalseBB, in TEST_F() 1110 BranchInst::Create(TrueBB, FalseBB, Cond, BB); in TEST_F()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstructionCombining.cpp | 2046 BasicBlock *TrueBB, *FalseBB; in tryToMoveFreeBeforeNullTest() local 2048 if (!match(TI, m_Br(m_ICmp(Pred, m_Specific(Op), m_Zero()), TrueBB, FalseBB))) in tryToMoveFreeBeforeNullTest() 2054 if (SuccBB != (Pred == ICmpInst::ICMP_EQ ? TrueBB : FalseBB)) in tryToMoveFreeBeforeNullTest() 2056 assert(FreeInstrBB == (Pred == ICmpInst::ICMP_EQ ? FalseBB : TrueBB) && in tryToMoveFreeBeforeNullTest()
|
D | InstCombineCompares.cpp | 3336 BasicBlock *TrueBB, *FalseBB; in visitICmpInst() local 3339 TrueBB, FalseBB)) && in visitICmpInst() 3340 TrueBB != FalseBB) { in visitICmpInst() 3344 (Parent == TrueBB) in visitICmpInst()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
D | InstructionCombining.cpp | 2249 BasicBlock *TrueBB, *FalseBB; in tryToMoveFreeBeforeNullTest() local 2251 if (!match(TI, m_Br(m_ICmp(Pred, m_Specific(Op), m_Zero()), TrueBB, FalseBB))) in tryToMoveFreeBeforeNullTest() 2257 if (SuccBB != (Pred == ICmpInst::ICMP_EQ ? TrueBB : FalseBB)) in tryToMoveFreeBeforeNullTest() 2259 assert(FreeInstrBB == (Pred == ICmpInst::ICMP_EQ ? FalseBB : TrueBB) && in tryToMoveFreeBeforeNullTest()
|
D | InstCombineCompares.cpp | 1377 BasicBlock *TrueBB, *FalseBB; in foldICmpWithConstant() local 1380 TrueBB, FalseBB)) && in foldICmpWithConstant() 1381 TrueBB != FalseBB) { in foldICmpWithConstant() 1385 (Parent == TrueBB) in foldICmpWithConstant()
|
/external/llvm/lib/Analysis/ |
D | ScalarEvolutionExpander.cpp | 1902 BasicBlock *TrueBB, *FalseBB; in findExistingExpansion() local 1906 TrueBB, FalseBB))) in findExistingExpansion()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | ScalarEvolutionExpander.cpp | 2017 BasicBlock *TrueBB, *FalseBB; in getRelatedExistingExpansion() local 2021 TrueBB, FalseBB))) in getRelatedExistingExpansion()
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64ISelLowering.cpp | 989 MachineBasicBlock *TrueBB = MF->CreateMachineBasicBlock(LLVM_BB); in EmitF128CSEL() local 991 MF->insert(It, TrueBB); in EmitF128CSEL() 999 BuildMI(MBB, DL, TII->get(AArch64::Bcc)).addImm(CondCode).addMBB(TrueBB); in EmitF128CSEL() 1001 MBB->addSuccessor(TrueBB); in EmitF128CSEL() 1005 TrueBB->addSuccessor(EndBB); in EmitF128CSEL() 1008 TrueBB->addLiveIn(AArch64::NZCV); in EmitF128CSEL() 1014 .addMBB(TrueBB) in EmitF128CSEL()
|