Home
last modified time | relevance | path

Searched refs:CondBr (Results 1 – 25 of 25) sorted by relevance

/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
DAArch64RedundantCopyElimination.cpp93 bool knownRegValInBlock(MachineInstr &CondBr, MachineBasicBlock *MBB,
125 MachineInstr &CondBr, MachineBasicBlock *MBB, in knownRegValInBlock() argument
127 unsigned Opc = CondBr.getOpcode(); in knownRegValInBlock()
132 MBB == CondBr.getOperand(1).getMBB()) || in knownRegValInBlock()
134 MBB != CondBr.getOperand(1).getMBB())) { in knownRegValInBlock()
135 FirstUse = CondBr; in knownRegValInBlock()
136 KnownRegs.push_back(RegImm(CondBr.getOperand(0).getReg(), 0)); in knownRegValInBlock()
145 AArch64CC::CondCode CC = (AArch64CC::CondCode)CondBr.getOperand(0).getImm(); in knownRegValInBlock()
149 MachineBasicBlock *BrTarget = CondBr.getOperand(1).getMBB(); in knownRegValInBlock()
156 assert(PredMBB == CondBr.getParent() && in knownRegValInBlock()
[all …]
/external/llvm-project/llvm/lib/Target/AArch64/
DAArch64RedundantCopyElimination.cpp93 bool knownRegValInBlock(MachineInstr &CondBr, MachineBasicBlock *MBB,
125 MachineInstr &CondBr, MachineBasicBlock *MBB, in knownRegValInBlock() argument
127 unsigned Opc = CondBr.getOpcode(); in knownRegValInBlock()
132 MBB == CondBr.getOperand(1).getMBB()) || in knownRegValInBlock()
134 MBB != CondBr.getOperand(1).getMBB())) { in knownRegValInBlock()
135 FirstUse = CondBr; in knownRegValInBlock()
136 KnownRegs.push_back(RegImm(CondBr.getOperand(0).getReg(), 0)); in knownRegValInBlock()
145 AArch64CC::CondCode CC = (AArch64CC::CondCode)CondBr.getOperand(0).getImm(); in knownRegValInBlock()
149 MachineBasicBlock *BrTarget = CondBr.getOperand(1).getMBB(); in knownRegValInBlock()
156 assert(PredMBB == CondBr.getParent() && in knownRegValInBlock()
[all …]
/external/llvm-project/llvm/lib/Transforms/Scalar/
DJumpThreading.cpp220 BranchInst *CondBr = dyn_cast<BranchInst>(BB->getTerminator()); in updatePredecessorProfileMetadata() local
221 if (!CondBr) in updatePredecessorProfileMetadata()
225 if (!CondBr->extractProfMetadata(TrueWeight, FalseWeight)) in updatePredecessorProfileMetadata()
1134 BranchInst *CondBr = dyn_cast<BranchInst>(BB->getTerminator()); in processBlock() local
1136 if (CondBr && CondConst) { in processBlock()
1140 assert(CondBr->isConditional() && "Threading on unconditional terminator"); in processBlock()
1144 CondConst, CondBr); in processBlock()
1148 BasicBlock *ToRemoveSucc = CondBr->getSuccessor(ToRemove); in processBlock()
1151 BranchInst::Create(CondBr->getSuccessor(ToKeep), CondBr); in processBlock()
1152 UncondBr->setDebugLoc(CondBr->getDebugLoc()); in processBlock()
[all …]
/external/llvm-project/polly/lib/CodeGen/
DUtils.cpp149 BranchInst *CondBr = Builder.CreateCondBr(RTC, StartBlock, S.getEntry()); in executeScopConditionally() local
218 return std::make_pair(std::make_pair(StartBlock, ExitingBlock), CondBr); in executeScopConditionally()
DPPCGCodeGeneration.cpp3466 BranchInst *CondBr = nullptr; in generateCode() local
3467 std::tie(StartExitBlocks, CondBr) = in generateCode()
3471 assert(CondBr && "CondBr not initialized by executeScopConditionally"); in generateCode()
3543 CondBr->setOperand(0, Builder.getFalse()); in generateCode()
3546 CondBr->setOperand(0, Builder.getFalse()); in generateCode()
/external/llvm-project/llvm/unittests/FuzzMutate/
DOperationsTest.cpp202 auto *CondBr = cast<BranchInst>(BB1->getTerminator()); in TEST() local
203 EXPECT_THAT(CondBr->getCondition(), Eq(Cond)); in TEST()
204 ASSERT_THAT(CondBr->getNumSuccessors(), Eq(2u)); in TEST()
205 ASSERT_THAT(CondBr->getSuccessor(0), Eq(BB1)); in TEST()
206 auto *BB2 = CondBr->getSuccessor(1); in TEST()
/external/llvm/lib/Transforms/Scalar/
DJumpThreading.cpp812 BranchInst *CondBr = dyn_cast<BranchInst>(BB->getTerminator()); in ProcessBlock() local
814 if (CondBr && CondConst && CondBr->isConditional()) { in ProcessBlock()
817 CondConst, CondBr); in ProcessBlock()
821 CondBr->getSuccessor(ToRemove)->removePredecessor(BB, true); in ProcessBlock()
822 BranchInst::Create(CondBr->getSuccessor(ToKeep), CondBr); in ProcessBlock()
823 CondBr->eraseFromParent(); in ProcessBlock()
839 if (CondBr && CondConst && TryToUnfoldSelect(CondCmp, BB)) in ProcessBlock()
1836 BranchInst *CondBr = dyn_cast<BranchInst>(BB->getTerminator()); in TryToUnfoldSelect() local
1840 if (!CondBr || !CondBr->isConditional() || !CondLHS || in TryToUnfoldSelect()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DJumpThreading.cpp212 BranchInst *CondBr = dyn_cast<BranchInst>(BB->getTerminator()); in updatePredecessorProfileMetadata() local
213 if (!CondBr) in updatePredecessorProfileMetadata()
218 if (!CondBr->extractProfMetadata(TrueWeight, FalseWeight)) in updatePredecessorProfileMetadata()
1101 BranchInst *CondBr = dyn_cast<BranchInst>(BB->getTerminator()); in ProcessBlock() local
1103 if (CondBr && CondConst) { in ProcessBlock()
1107 assert(CondBr->isConditional() && "Threading on unconditional terminator"); in ProcessBlock()
1115 CondConst, CondBr); in ProcessBlock()
1119 BasicBlock *ToRemoveSucc = CondBr->getSuccessor(ToRemove); in ProcessBlock()
1122 BranchInst::Create(CondBr->getSuccessor(ToKeep), CondBr); in ProcessBlock()
1123 UncondBr->setDebugLoc(CondBr->getDebugLoc()); in ProcessBlock()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Vectorize/
DVPlan.cpp223 auto *CondBr = BranchInst::Create(NewBB, nullptr, NewCond); in execute() local
224 CondBr->setSuccessor(0, nullptr); in execute()
225 ReplaceInstWithInst(CurrentTerminator, CondBr); in execute()
DLoopVectorize.cpp7466 auto *CondBr = BranchInst::Create(State.CFG.PrevBB, nullptr, ConditionBit); in execute() local
7467 CondBr->setSuccessor(0, nullptr); in execute()
7468 ReplaceInstWithInst(CurrentTerminator, CondBr); in execute()
/external/llvm-project/llvm/lib/Target/X86/
DX86SpeculativeLoadHardening.cpp720 for (auto *CondBr : CondBrs) in tracePredStateThroughCFG() local
721 ++SuccCounts[CondBr->getOperand(0).getMBB()]; in tracePredStateThroughCFG()
786 for (auto *CondBr : CondBrs) { in tracePredStateThroughCFG() local
787 MachineBasicBlock &Succ = *CondBr->getOperand(0).getMBB(); in tracePredStateThroughCFG()
790 X86::CondCode Cond = X86::getCondFromBranch(*CondBr); in tracePredStateThroughCFG()
794 BuildCheckingBlockForSuccAndConds(MBB, Succ, SuccCount, CondBr, UncondBr, in tracePredStateThroughCFG()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86CondBrFolding.cpp577 X86CondBrFolding CondBr(TII, MBPI, MF); in runOnMachineFunction() local
578 return CondBr.optimize(); in runOnMachineFunction()
DX86SpeculativeLoadHardening.cpp719 for (auto *CondBr : CondBrs) in tracePredStateThroughCFG() local
720 ++SuccCounts[CondBr->getOperand(0).getMBB()]; in tracePredStateThroughCFG()
785 for (auto *CondBr : CondBrs) { in tracePredStateThroughCFG() local
786 MachineBasicBlock &Succ = *CondBr->getOperand(0).getMBB(); in tracePredStateThroughCFG()
789 X86::CondCode Cond = X86::getCondFromBranch(*CondBr); in tracePredStateThroughCFG()
793 BuildCheckingBlockForSuccAndConds(MBB, Succ, SuccCount, CondBr, UncondBr, in tracePredStateThroughCFG()
/external/llvm-project/llvm/lib/Transforms/Vectorize/
DVPlan.cpp368 auto *CondBr = BranchInst::Create(NewBB, nullptr, NewCond); in execute() local
369 CondBr->setSuccessor(0, nullptr); in execute()
370 ReplaceInstWithInst(CurrentTerminator, CondBr); in execute()
DLoopVectorize.cpp8786 auto *CondBr = BranchInst::Create(State.CFG.PrevBB, nullptr, ConditionBit); in execute() local
8787 CondBr->setSuccessor(0, nullptr); in execute()
8788 ReplaceInstWithInst(CurrentTerminator, CondBr); in execute()
/external/tensorflow/tensorflow/compiler/xla/service/llvm_ir/
Dir_builder_mixin.h98 llvm::BranchInst* CondBr(Args&&... args) { in CondBr() function
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dir_emitter.cc489 CondBr(ExtractValue(ret_value, 1, "success"), loop_exit_bb, loop_body_bb); in EmitAtomicOperationUsingCAS()
/external/llvm-project/llvm/lib/Target/AMDGPU/
DSIInstrInfo.cpp2412 MachineInstr *CondBr = in insertBranch() local
2417 preserveCondRegFlags(CondBr->getOperand(1), Cond[1]); in insertBranch()
2418 fixImplicitOperands(*CondBr); in insertBranch()
2427 MachineInstr *CondBr = in insertBranch() local
2433 MachineOperand &CondReg = CondBr->getOperand(1); in insertBranch()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DSIInstrInfo.cpp2082 MachineInstr *CondBr = in insertBranch() local
2087 preserveCondRegFlags(CondBr->getOperand(1), Cond[1]); in insertBranch()
2096 MachineInstr *CondBr = in insertBranch() local
2102 MachineOperand &CondReg = CondBr->getOperand(1); in insertBranch()
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Dir_emitter.cc2427 CondBr(while_predicate, body_bb, exit_bb); in HandleWhile()
/external/tensorflow/tensorflow/compiler/xla/service/
Delemental_ir_emitter.cc1845 CondBr(ICmpULT(source_index[concat_dim], in EmitElementalConcatenate()
/external/llvm/lib/Target/PowerPC/
DPPCInstrInfo.td609 let Name = "CondBr"; let PredicateMethod = "isCondBr";
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/
DPPCInstrInfo.td744 let Name = "CondBr"; let PredicateMethod = "isCondBr";
/external/llvm-project/llvm/lib/Target/PowerPC/
DPPCInstrInfo.td867 let Name = "CondBr"; let PredicateMethod = "isCondBr";
/external/swiftshader/third_party/llvm-10.0/configs/common/lib/Target/PowerPC/
DPPCGenAsmMatcher.inc3380 // 'CondBr' class