Home
last modified time | relevance | path

Searched refs:CondInst (Results 1 – 7 of 7) sorted by relevance

/llvm-project-15.0.7/llvm/examples/Fibonacci/
H A Dfibonacci.cpp76 Value *CondInst = new ICmpInst(*BB, ICmpInst::ICMP_SLE, ArgX, Two, "cond"); in CreateFibFunction() local
77 BranchInst::Create(RetBB, RecurseBB, CondInst, BB); in CreateFibFunction()
/llvm-project-15.0.7/llvm/examples/ParallelJIT/
H A DParallelJIT.cpp107 Value *CondInst = new ICmpInst(*BB, ICmpInst::ICMP_SLE, ArgX, Two, "cond"); in CreateFibFunction() local
108 BranchInst::Create(RetBB, RecurseBB, CondInst, BB); in CreateFibFunction()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DJumpThreading.cpp1126 Instruction *CondInst = dyn_cast<Instruction>(Condition); in processBlock() local
1129 if (!CondInst) { in processBlock()
1137 Value *CondWithoutFreeze = CondInst; in processBlock()
1138 if (auto *FI = dyn_cast<FreezeInst>(CondInst)) in processBlock()
1193 if (PHINode *PN = dyn_cast<PHINode>(CondInst)) in processBlock()
1210 if (CondInst->getOpcode() == Instruction::Xor && in processBlock()
1212 return processBranchOnXOR(cast<BinaryOperator>(CondInst)); in processBlock()
1725 if (auto *CondInst = dyn_cast<Instruction>(Cond)) { in processThreadableEdges() local
1726 if (CondInst->use_empty() && !CondInst->mayHaveSideEffects()) in processThreadableEdges()
1727 CondInst->eraseFromParent(); in processThreadableEdges()
[all …]
H A DEarlyCSE.cpp830 bool handleBranchCondition(Instruction *CondInst, const BranchInst *BI,
1060 bool EarlyCSE::handleBranchCondition(Instruction *CondInst, in handleBranchCondition() argument
1064 assert(BI->getCondition() == CondInst && "Wrong condition?"); in handleBranchCondition()
1088 WorkList.push_back(CondInst); in handleBranchCondition()
1223 auto *CondInst = dyn_cast<Instruction>(BI->getCondition()); in processNode() local
1224 if (CondInst && SimpleValue::canHandle(CondInst)) in processNode()
1225 Changed |= handleBranchCondition(CondInst, BI, BB, Pred); in processNode()
H A DSimpleLoopUnswitch.cpp467 if (auto *CondInst = dyn_cast<Instruction>(Cond)) in unswitchTrivialBranch() local
468 Invariants = collectHomogenousInstGraphLoopInvariants(L, *CondInst, LI); in unswitchTrivialBranch()
/llvm-project-15.0.7/llvm/unittests/Frontend/
H A DOpenMPIRBuilderTest.cpp2372 CmpInst *CondInst = cast<CmpInst>(EntryBr->getCondition()); in TEST_F() local
2373 EXPECT_TRUE(isa<CallInst>(CondInst->getOperand(0))); in TEST_F()
2375 CallInst *MasterEntryCI = cast<CallInst>(CondInst->getOperand(0)); in TEST_F()
2451 CmpInst *CondInst = cast<CmpInst>(EntryBr->getCondition()); in TEST_F() local
2452 EXPECT_TRUE(isa<CallInst>(CondInst->getOperand(0))); in TEST_F()
2454 CallInst *MaskedEntryCI = cast<CallInst>(CondInst->getOperand(0)); in TEST_F()
2942 CmpInst *CondInst = cast<CmpInst>(EntryBr->getCondition()); in TEST_F() local
2943 EXPECT_TRUE(isa<CallInst>(CondInst->getOperand(0))); in TEST_F()
2945 CallInst *SingleEntryCI = cast<CallInst>(CondInst->getOperand(0)); in TEST_F()
3032 CmpInst *CondInst = cast<CmpInst>(EntryBr->getCondition()); in TEST_F() local
[all …]
/llvm-project-15.0.7/polly/lib/CodeGen/
H A DBlockGenerators.cpp642 if (auto *CondInst = dyn_cast<Instruction>(Cond)) in generateConditionalExecution() local
643 CondInst->setName("polly." + Subject + ".cond"); in generateConditionalExecution()