Home
last modified time | relevance | path

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

12345678910>>...24

/external/llvm/lib/Transforms/Utils/
DSSAUpdater.cpp38 SSAUpdater::SSAUpdater(SmallVectorImpl<PHINode*> *NewPHI) in SSAUpdater()
65 static bool IsEquivalentPHI(PHINode *PHI, in IsEquivalentPHI()
100 if (PHINode *SomePhi = dyn_cast<PHINode>(BB->begin())) { in GetValueInMiddleOfBlock()
138 if (isa<PHINode>(BB->begin())) { in GetValueInMiddleOfBlock()
141 PHINode *SomePHI; in GetValueInMiddleOfBlock()
143 (SomePHI = dyn_cast<PHINode>(It)); ++It) { in GetValueInMiddleOfBlock()
150 PHINode *InsertedPHI = PHINode::Create(ProtoType, PredValues.size(), in GetValueInMiddleOfBlock()
182 if (PHINode *UserPN = dyn_cast<PHINode>(User)) in RewriteUse()
199 if (PHINode *UserPN = dyn_cast<PHINode>(User)) in RewriteUseAfterInsertions()
213 typedef PHINode PhiT;
[all …]
DLoopUnrollRuntime.cpp77 PHINode *PN = dyn_cast<PHINode>(&BBI); in ConnectProlog()
83 PHINode *NewPN = PHINode::Create(PN->getType(), 2, PN->getName() + ".unr", in ConnectProlog()
176 PHINode *PN = dyn_cast<PHINode>(&BBI); in ConnectEpilog()
192 PHINode *EpilogPN = cast<PHINode> (PN->use_begin()->getUser()); in ConnectEpilog()
227 PHINode *PN = dyn_cast<PHINode>(&BBI); in ConnectEpilog()
233 PHINode *NewPN = PHINode::Create(PN->getType(), 2, PN->getName() + ".unr", in ConnectEpilog()
242 PHINode *VPN = cast<PHINode>(VMap[&BBI]); in ConnectEpilog()
320 PHINode *NewIdx = PHINode::Create(NewIter->getType(), 2, in CloneLoopBlocks()
338 for (BasicBlock::iterator I = Header->begin(); isa<PHINode>(I); ++I) { in CloneLoopBlocks()
339 PHINode *NewPHI = cast<PHINode>(VMap[&*I]); in CloneLoopBlocks()
[all …]
DBreakCriticalEdges.cpp92 PHINode *PN = dyn_cast<PHINode>(I); ++I) { in createPHIsForSplitLoopExit()
98 if (const PHINode *VP = dyn_cast<PHINode>(V)) in createPHIsForSplitLoopExit()
103 PHINode *NewPN = PHINode::Create( in createPHIsForSplitLoopExit()
149 for (BasicBlock::iterator I = DestBB->begin(); isa<PHINode>(I); ++I) { in SplitCriticalEdge()
153 PHINode *PN = cast<PHINode>(I); in SplitCriticalEdge()
196 if (PHINode *PN = dyn_cast<PHINode>(DestBB->begin())) { in SplitCriticalEdge()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DSSAUpdater.cpp47 SSAUpdater::SSAUpdater(SmallVectorImpl<PHINode *> *NewPHI) in SSAUpdater()
79 static bool IsEquivalentPHI(PHINode *PHI, in IsEquivalentPHI()
114 if (PHINode *SomePhi = dyn_cast<PHINode>(BB->begin())) { in GetValueInMiddleOfBlock()
152 if (isa<PHINode>(BB->begin())) { in GetValueInMiddleOfBlock()
155 for (PHINode &SomePHI : BB->phis()) { in GetValueInMiddleOfBlock()
162 PHINode *InsertedPHI = PHINode::Create(ProtoType, PredValues.size(), in GetValueInMiddleOfBlock()
194 if (PHINode *UserPN = dyn_cast<PHINode>(User)) in RewriteUse()
211 if (PHINode *UserPN = dyn_cast<PHINode>(User)) in RewriteUseAfterInsertions()
226 using PhiT = PHINode;
234 PHINode *PHI;
[all …]
DBreakCriticalEdges.cpp109 for (PHINode &PN : DestBB->phis()) { in createPHIsForSplitLoopExit()
115 if (const PHINode *VP = dyn_cast<PHINode>(V)) in createPHIsForSplitLoopExit()
120 PHINode *NewPN = PHINode::Create( in createPHIsForSplitLoopExit()
166 for (BasicBlock::iterator I = DestBB->begin(); isa<PHINode>(I); ++I) { in SplitCriticalEdge()
170 PHINode *PN = cast<PHINode>(I); in SplitCriticalEdge()
305 PHINode *PN = dyn_cast<PHINode>(BB->begin()); in findIBRPredecessor()
420 PHINode *DirPHI = cast<PHINode>(Direct); in SplitIndirectBrCriticalEdges()
421 PHINode *IndPHI = cast<PHINode>(Indirect); in SplitIndirectBrCriticalEdges()
432 PHINode *NewIndPHI = PHINode::Create(IndPHI->getType(), 1, "ind", IndPHI); in SplitIndirectBrCriticalEdges()
438 PHINode *MergePHI = in SplitIndirectBrCriticalEdges()
[all …]
DLCSSA.cpp78 SmallSetVector<PHINode *, 16> PHIsToRemove; in formLCSSAForInstructions()
106 if (auto *PN = dyn_cast<PHINode>(User)) in formLCSSAForInstructions()
129 SmallVector<PHINode *, 16> AddedPHIs; in formLCSSAForInstructions()
130 SmallVector<PHINode *, 8> PostProcessPHIs; in formLCSSAForInstructions()
132 SmallVector<PHINode *, 4> InsertedPHIs; in formLCSSAForInstructions()
146 PHINode *PN = PHINode::Create(I->getType(), PredCache.size(ExitBB), in formLCSSAForInstructions()
190 if (auto *PN = dyn_cast<PHINode>(User)) in formLCSSAForInstructions()
193 if (isa<PHINode>(UserBB->begin()) && isExitBlock(UserBB, ExitBlocks)) { in formLCSSAForInstructions()
222 for (PHINode *InsertedPN : InsertedPHIs) { in formLCSSAForInstructions()
237 SmallVector<PHINode *, 2> NeedDbgValues; in formLCSSAForInstructions()
[all …]
/external/llvm/lib/Transforms/InstCombine/
DInstCombinePHI.cpp28 Instruction *InstCombiner::FoldPHIArgBinOpIntoPHI(PHINode &PN) { in FoldPHIArgBinOpIntoPHI()
69 PHINode *NewLHS = nullptr, *NewRHS = nullptr; in FoldPHIArgBinOpIntoPHI()
71 NewLHS = PHINode::Create(LHSType, PN.getNumIncomingValues(), in FoldPHIArgBinOpIntoPHI()
79 NewRHS = PHINode::Create(RHSType, PN.getNumIncomingValues(), in FoldPHIArgBinOpIntoPHI()
121 Instruction *InstCombiner::FoldPHIArgGEPIntoPHI(PHINode &PN) { in FoldPHIArgGEPIntoPHI()
192 SmallVector<PHINode*, 16> OperandPhis(FixedOperands.size()); in FoldPHIArgGEPIntoPHI()
198 PHINode *NewPN = PHINode::Create(FirstOp->getType(), e, in FoldPHIArgGEPIntoPHI()
216 if (PHINode *OpPhi = OperandPhis[op]) in FoldPHIArgGEPIntoPHI()
276 Instruction *InstCombiner::FoldPHIArgLoadIntoPHI(PHINode &PN) { in FoldPHIArgLoadIntoPHI()
337 PHINode *NewPN = PHINode::Create(FirstLI->getOperand(0)->getType(), in FoldPHIArgLoadIntoPHI()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombinePHI.cpp33 void InstCombiner::PHIArgMergedDebugLoc(Instruction *Inst, PHINode &PN) { in PHIArgMergedDebugLoc()
96 Instruction *InstCombiner::FoldIntegerTypedPHI(PHINode &PN) { in FoldIntegerTypedPHI()
159 if (isa<PHINode>(Arg)) { in FoldIntegerTypedPHI()
182 PHINode *MatchingPtrPHI = nullptr; in FoldIntegerTypedPHI()
189 PHINode *PtrPHI = dyn_cast<PHINode>(II); in FoldIntegerTypedPHI()
230 PHINode *NewPtrPHI = PHINode::Create( in FoldIntegerTypedPHI()
246 assert((isa<PHINode>(IncomingVal) || in FoldIntegerTypedPHI()
266 if (isa<PHINode>(IncomingI)) in FoldIntegerTypedPHI()
284 Instruction *InstCombiner::FoldPHIArgBinOpIntoPHI(PHINode &PN) { in FoldPHIArgBinOpIntoPHI()
325 PHINode *NewLHS = nullptr, *NewRHS = nullptr; in FoldPHIArgBinOpIntoPHI()
[all …]
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombinePHI.cpp24 Instruction *InstCombiner::FoldPHIArgBinOpIntoPHI(PHINode &PN) { in FoldPHIArgBinOpIntoPHI()
81 PHINode *NewLHS = 0, *NewRHS = 0; in FoldPHIArgBinOpIntoPHI()
83 NewLHS = PHINode::Create(LHSType, PN.getNumIncomingValues(), in FoldPHIArgBinOpIntoPHI()
91 NewRHS = PHINode::Create(RHSType, PN.getNumIncomingValues(), in FoldPHIArgBinOpIntoPHI()
130 Instruction *InstCombiner::FoldPHIArgGEPIntoPHI(PHINode &PN) { in FoldPHIArgGEPIntoPHI()
201 SmallVector<PHINode*, 16> OperandPhis(FixedOperands.size()); in FoldPHIArgGEPIntoPHI()
207 PHINode *NewPN = PHINode::Create(FirstOp->getType(), e, in FoldPHIArgGEPIntoPHI()
225 if (PHINode *OpPhi = OperandPhis[op]) in FoldPHIArgGEPIntoPHI()
287 Instruction *InstCombiner::FoldPHIArgLoadIntoPHI(PHINode &PN) { in FoldPHIArgLoadIntoPHI()
348 PHINode *NewPN = PHINode::Create(FirstLI->getOperand(0)->getType(), in FoldPHIArgLoadIntoPHI()
[all …]
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/
DSSAUpdater.cpp38 SSAUpdater::SSAUpdater(SmallVectorImpl<PHINode*> *NewPHI) in SSAUpdater()
73 static bool IsEquivalentPHI(PHINode *PHI, in IsEquivalentPHI()
129 if (PHINode *SomePhi = dyn_cast<PHINode>(BB->begin())) { in GetValueInMiddleOfBlock()
167 if (isa<PHINode>(BB->begin())) { in GetValueInMiddleOfBlock()
170 PHINode *SomePHI; in GetValueInMiddleOfBlock()
172 (SomePHI = dyn_cast<PHINode>(It)); ++It) { in GetValueInMiddleOfBlock()
179 PHINode *InsertedPHI = PHINode::Create(ProtoType, PredValues.size(), in GetValueInMiddleOfBlock()
209 if (PHINode *UserPN = dyn_cast<PHINode>(User)) in RewriteUse()
225 if (PHINode *UserPN = dyn_cast<PHINode>(User)) in RewriteUseAfterInsertions()
238 PHINode *PHI;
[all …]
DLocal.cpp323 bool llvm::RecursivelyDeleteDeadPHINode(PHINode *PN) { in RecursivelyDeleteDeadPHINode()
391 if (!isa<PHINode>(BB->begin())) in RemovePredecessorAndSimplify()
400 while (PHINode *PN = dyn_cast<PHINode>(PhiIt)) { in RemovePredecessorAndSimplify()
428 while (PHINode *PN = dyn_cast<PHINode>(DestBB->begin())) { in MergeBasicBlockIntoOnlyPred()
507 for (BasicBlock::iterator I = Succ->begin(); isa<PHINode>(I); ++I) { in CanPropagatePredecessorsForPHIs()
508 PHINode *PN = cast<PHINode>(I); in CanPropagatePredecessorsForPHIs()
513 PHINode *BBPN = dyn_cast<PHINode>(PN->getIncomingValueForBlock(BB)); in CanPropagatePredecessorsForPHIs()
577 while (isa<PHINode>(*BBI)) { in TryToSimplifyUncondBranchFromEmptyBlock()
580 if (PHINode* PN = dyn_cast<PHINode>(*UI)) { in TryToSimplifyUncondBranchFromEmptyBlock()
593 if (isa<PHINode>(Succ->begin())) { in TryToSimplifyUncondBranchFromEmptyBlock()
[all …]
DBasicBlockUtils.cpp68 if (!isa<PHINode>(BB->begin())) return; in FoldSingleEntryPHINodes()
77 while (PHINode *PN = dyn_cast<PHINode>(BB->begin())) { in FoldSingleEntryPHINodes()
102 PHINode *PN = dyn_cast<PHINode>(I); ++I) in DeleteDeadPHIs()
107 if (PHINode *PN = dyn_cast_or_null<PHINode>(PHIs[i].operator Value*())) in DeleteDeadPHIs()
141 if (PHINode *PN = dyn_cast<PHINode>(BI)) { in MergeBlockIntoPredecessor()
150 if (isa<PHINode>(BB->front())) in MergeBlockIntoPredecessor()
290 while (isa<PHINode>(SplitIt) || isa<LandingPadInst>(SplitIt)) in SplitBlock()
401 for (BasicBlock::iterator I = OrigBB->begin(); isa<PHINode>(I); ) { in UpdatePHINodes()
402 PHINode *PN = cast<PHINode>(I++); in UpdatePHINodes()
425 PHINode *NewPHI = in UpdatePHINodes()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DPhiValues.cpp40 void PhiValues::processPhi(const PHINode *Phi, in processPhi()
41 SmallVector<const PHINode *, 8> &Stack) { in processPhi() argument
50 if (PHINode *PhiPhiOp = dyn_cast<PHINode>(PhiOp)) { in processPhi()
73 const PHINode *ComponentPhi = Stack.pop_back_val(); in processPhi()
77 if (PHINode *PhiOp = dyn_cast<PHINode>(Op)) { in processPhi()
95 if (!isa<PHINode>(V)) in processPhi()
101 const PhiValues::ValueSet &PhiValues::getValuesForPhi(const PHINode *PN) { in getValuesForPhi()
103 SmallVector<const PHINode *, 8> Stack; in getValuesForPhi()
120 if (const PHINode *PN = dyn_cast<PHINode>(V)) in invalidateValue()
137 for (const PHINode &PN : BB.phis()) { in print()
[all …]
/external/llvm/lib/Target/PowerPC/
DPPCBoolRetToInt.cpp82 if (PHINode *P = dyn_cast<PHINode>(V)) { in translate()
86 PHINode *Q = in translate()
87 PHINode::Create(Int32Ty, P->getNumIncomingValues(), P->getName(), P); in translate()
102 typedef SmallPtrSet<const PHINode *, 8> PHINodeSet;
117 if (const PHINode *P = dyn_cast<PHINode>(&I)) in getPromotablePHINodes()
121 SmallVector<const PHINode *, 8> ToRemove; in getPromotablePHINodes()
122 for (const PHINode *P : Promotable) { in getPromotablePHINodes()
125 return isa<ReturnInst>(V) || isa<CallInst>(V) || isa<PHINode>(V) || in getPromotablePHINodes()
130 isa<PHINode>(V); in getPromotablePHINodes()
141 const PHINode *Phi = dyn_cast<PHINode>(V); in getPromotablePHINodes()
[all …]
/external/llvm/lib/Transforms/Scalar/
DLoopInterchange.cpp301 static PHINode *getInductionVariable(Loop *L, ScalarEvolution *SE) { in getInductionVariable()
302 PHINode *InnerIndexVar = L->getCanonicalInductionVariable(); in getInductionVariable()
307 for (BasicBlock::iterator I = L->getHeader()->begin(); isa<PHINode>(I); ++I) { in getInductionVariable()
308 PHINode *PhiVar = cast<PHINode>(I); in getInductionVariable()
342 bool isLoopStructureUnderstood(PHINode *InnerInductionVar);
354 SmallVector<PHINode *, 8> &Inductions,
355 SmallVector<PHINode *, 8> &Reductions);
542 if (isa<PHINode>(LoopNestExit->begin())) { in processLoopList()
603 PHINode *UserIns = dyn_cast<PHINode>(U); in areAllUsesReductions()
629 PHINode *PHI = dyn_cast<PHINode>(L->getOperand(0)); in containsUnsafeInstructionsInLatch()
[all …]
DIndVarSimplify.cpp101 void handleFloatingPointIV(Loop *L, PHINode *PH);
111 PHINode *IndVar, SCEVExpander &Rewriter);
186 PHINode *PHI = dyn_cast<PHINode>(User); in getInsertPointForUses()
246 void IndVarSimplify::handleFloatingPointIV(Loop *L, PHINode *PN) { in handleFloatingPointIV()
399 PHINode *NewPHI = PHINode::Create(Int32Ty, 2, PN->getName()+".int", PN); in handleFloatingPointIV()
451 PHINode *PN = dyn_cast<PHINode>(I); ++I) in rewriteNonIntegerIVs()
455 if (PHINode *PN = dyn_cast_or_null<PHINode>(&*PHIs[i])) in rewriteNonIntegerIVs()
469 PHINode *PN;
474 RewritePhi(PHINode *P, unsigned I, Value *V, bool H) in RewritePhi()
521 PHINode *PN = dyn_cast<PHINode>(ExitBB->begin()); in rewriteLoopExitValues()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/PowerPC/
DPPCBoolRetToInt.cpp99 if (auto *P = dyn_cast<PHINode>(V)) { in translate()
103 PHINode *Q = in translate()
104 PHINode::Create(IntTy, P->getNumIncomingValues(), P->getName(), P); in translate()
119 typedef SmallPtrSet<const PHINode *, 8> PHINodeSet;
134 if (const auto *P = dyn_cast<PHINode>(&I)) in getPromotablePHINodes()
138 SmallVector<const PHINode *, 8> ToRemove; in getPromotablePHINodes()
139 for (const PHINode *P : Promotable) { in getPromotablePHINodes()
142 return isa<ReturnInst>(V) || isa<CallInst>(V) || isa<PHINode>(V) || in getPromotablePHINodes()
147 isa<PHINode>(V); in getPromotablePHINodes()
158 const auto *Phi = dyn_cast<PHINode>(V); in getPromotablePHINodes()
[all …]
/external/swiftshader/third_party/LLVM/lib/VMCore/
DBasicBlock.cpp136 while (isa<PHINode>(i)) ++i; in getFirstNonPHI()
146 while (isa<PHINode>(i) || isa<DbgInfoIntrinsic>(i)) ++i; in getFirstNonPHIOrDbg()
157 if (isa<PHINode>(i) || isa<DbgInfoIntrinsic>(i)) in getFirstNonPHIOrDbgOrLifetime()
223 PHINode *APN = dyn_cast<PHINode>(&front()); in removePredecessor()
250 while (PHINode *PN = dyn_cast<PHINode>(&front())) { in removePredecessor()
270 PHINode *PN; in removePredecessor()
271 for (iterator II = begin(); (PN = dyn_cast<PHINode>(II)); ) { in removePredecessor()
324 PHINode *PN; in splitBasicBlock()
326 (PN = dyn_cast<PHINode>(II)); ++II) { in splitBasicBlock()
348 PHINode *PN = dyn_cast<PHINode>(II); in replaceSuccessorsPhiUsesWith()
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DIndVarSimplify.cpp117 void HandleFloatingPointIV(Loop *L, PHINode *PH);
127 PHINode *IndVar, SCEVExpander &Rewriter);
202 PHINode *PHI = dyn_cast<PHINode>(User); in getInsertPointForUses()
253 void IndVarSimplify::HandleFloatingPointIV(Loop *L, PHINode *PN) { in HandleFloatingPointIV()
408 PHINode *NewPHI = PHINode::Create(Int32Ty, 2, PN->getName()+".int", PN); in HandleFloatingPointIV()
465 PHINode *PN = dyn_cast<PHINode>(I); ++I) in RewriteNonIntegerIVs()
469 if (PHINode *PN = dyn_cast_or_null<PHINode>(&*PHIs[i])) in RewriteNonIntegerIVs()
509 PHINode *PN = dyn_cast<PHINode>(ExitBB->begin()); in RewriteLoopExitValues()
516 while ((PN = dyn_cast<PHINode>(BBI++))) { in RewriteLoopExitValues()
583 PHINode *NewPN = cast<PHINode>(PN->clone()); in RewriteLoopExitValues()
[all …]
DCodeGenPrepare.cpp196 if (!isa<DbgInfoIntrinsic>(BBI) && !isa<PHINode>(BBI)) in EliminateMostlyEmptyBlocks()
223 while (const PHINode *PN = dyn_cast<PHINode>(BBI++)) { in CanMergeBlocks()
227 if (User->getParent() != DestBB || !isa<PHINode>(User)) in CanMergeBlocks()
233 if (const PHINode *UPN = dyn_cast<PHINode>(User)) in CanMergeBlocks()
247 const PHINode *DestBBPN = dyn_cast<PHINode>(DestBB->begin()); in CanMergeBlocks()
252 if (const PHINode *BBPN = dyn_cast<PHINode>(BB->begin())) { in CanMergeBlocks()
265 while (const PHINode *PN = dyn_cast<PHINode>(BBI++)) { in CanMergeBlocks()
270 if (const PHINode *V2PN = dyn_cast<PHINode>(V2)) in CanMergeBlocks()
311 PHINode *PN; in EliminateMostlyEmptyBlock()
313 (PN = dyn_cast<PHINode>(BBI)); ++BBI) { in EliminateMostlyEmptyBlock()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DSIAnnotateControlFlow.cpp88 bool isElse(PHINode *Phi);
90 void eraseIfUnused(PHINode *Phi);
97 handleLoopCondition(Value *Cond, PHINode *Broken, llvm::Loop *L,
184 bool SIAnnotateControlFlow::isElse(PHINode *Phi) { in isElse()
202 void SIAnnotateControlFlow::eraseIfUnused(PHINode *Phi) { in eraseIfUnused()
230 Value *Cond, PHINode *Broken, llvm::Loop *L, BranchInst *Term, in handleLoopCondition()
237 PHINode *Phi = nullptr; in handleLoopCondition()
238 if ((Phi = dyn_cast<PHINode>(Cond)) && L->contains(Phi)) { in handleLoopCondition()
240 PHINode *NewPhi = PHINode::Create(Int64, 0, "loop.phi", &Parent->front()); in handleLoopCondition()
336 PHINode *Broken = PHINode::Create(Int64, 0, "phi.broken", &Target->front()); in handleLoop()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DSpeculateAroundPHIs.cpp50 isSafeToSpeculatePHIUsers(PHINode &PN, DominatorTree &DT, in isSafeToSpeculatePHIUsers()
111 if (isa<PHINode>(OpI)) { in isSafeToSpeculatePHIUsers()
196 PHINode &PN, SmallDenseMap<PHINode *, int, 16> &CostSavingsMap, in isSafeAndProfitableToSpeculateAroundPHI() argument
336 static void visitPHIUsersAndDepsInPostOrder(ArrayRef<PHINode *> PNs, in visitPHIUsersAndDepsInPostOrder()
413 static SmallVector<PHINode *, 16>
414 findProfitablePHIs(ArrayRef<PHINode *> PNs, in findProfitablePHIs()
415 const SmallDenseMap<PHINode *, int, 16> &CostSavingsMap, in findProfitablePHIs() argument
418 SmallVector<PHINode *, 16> SpecPNs; in findProfitablePHIs()
423 SmallDenseMap<Instruction *, TinyPtrVector<PHINode *>, 16> UserToPNMap; in findProfitablePHIs()
424 SmallDenseMap<PHINode *, int, 16> PNUserCountMap; in findProfitablePHIs()
[all …]
DLoopInterchange.cpp297 static PHINode *getInductionVariable(Loop *L, ScalarEvolution *SE) { in getInductionVariable()
298 PHINode *InnerIndexVar = L->getCanonicalInductionVariable(); in getInductionVariable()
303 for (BasicBlock::iterator I = L->getHeader()->begin(); isa<PHINode>(I); ++I) { in getInductionVariable()
304 PHINode *PhiVar = cast<PHINode>(I); in getInductionVariable()
341 bool isLoopStructureUnderstood(PHINode *InnerInductionVar);
353 SmallVector<PHINode *, 8> &Inductions,
354 SmallVector<PHINode *, 8> &Reductions);
616 auto *UserIns = dyn_cast<PHINode>(U); in areAllUsesReductions()
642 if (!isa<PHINode>(L->getOperand(0))) in containsUnsafeInstructionsInLatch()
682 PHINode *InnerInduction) { in isLoopStructureUnderstood()
[all …]
/external/llvm/lib/IR/
DBasicBlock.cpp182 if (!isa<PHINode>(I)) in getFirstNonPHI()
189 if (!isa<PHINode>(I) && !isa<DbgInfoIntrinsic>(I)) in getFirstNonPHIOrDbg()
196 if (isa<PHINode>(I) || isa<DbgInfoIntrinsic>(I)) in getFirstNonPHIOrDbgOrLifetime()
288 PHINode *APN = dyn_cast<PHINode>(&front()); in removePredecessor()
315 while (PHINode *PN = dyn_cast<PHINode>(&front())) { in removePredecessor()
335 PHINode *PN; in removePredecessor()
336 for (iterator II = begin(); (PN = dyn_cast<PHINode>(II)); ) { in removePredecessor()
401 PHINode *PN; in splitBasicBlock()
403 (PN = dyn_cast<PHINode>(II)); ++II) { in splitBasicBlock()
424 PHINode *PN = dyn_cast<PHINode>(II); in replaceSuccessorsPhiUsesWith()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/
DPhiValues.h35 class PHINode; variable
54 const ValueSet &getValuesForPhi(const PHINode *PN);
75 using PhiSet = SmallPtrSet<const PHINode *, 4>;
83 DenseMap<const PHINode *, unsigned int> DepthMap;
96 void processPhi(const PHINode *PN, SmallVector<const PHINode *, 8> &Stack);

12345678910>>...24