/aosp_15_r20/external/swiftshader/third_party/llvm-16.0/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombinePHI.cpp | 43 void InstCombinerImpl::PHIArgMergedDebugLoc(Instruction *Inst, PHINode &PN) { in PHIArgMergedDebugLoc() 106 bool InstCombinerImpl::foldIntegerTypedPHI(PHINode &PN) { in foldIntegerTypedPHI() 307 Instruction *InstCombinerImpl::foldPHIArgIntToPtrToPHI(PHINode &PN) { in foldPHIArgIntToPtrToPHI() 331 InstCombinerImpl::foldPHIArgInsertValueInstructionIntoPHI(PHINode &PN) { in foldPHIArgInsertValueInstructionIntoPHI() 371 InstCombinerImpl::foldPHIArgExtractValueInstructionIntoPHI(PHINode &PN) { in foldPHIArgExtractValueInstructionIntoPHI() 407 Instruction *InstCombinerImpl::foldPHIArgBinOpIntoPHI(PHINode &PN) { in foldPHIArgBinOpIntoPHI() 502 Instruction *InstCombinerImpl::foldPHIArgGEPIntoPHI(PHINode &PN) { in foldPHIArgGEPIntoPHI() 665 Instruction *InstCombinerImpl::foldPHIArgLoadIntoPHI(PHINode &PN) { in foldPHIArgLoadIntoPHI() 862 Instruction *InstCombinerImpl::foldPHIArgOpIntoPHI(PHINode &PN) { in foldPHIArgOpIntoPHI() 976 static bool isDeadPHICycle(PHINode *PN, in isDeadPHICycle() [all …]
|
/aosp_15_r20/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombinePHI.cpp | 33 void InstCombiner::PHIArgMergedDebugLoc(Instruction *Inst, PHINode &PN) { in PHIArgMergedDebugLoc() 96 Instruction *InstCombiner::FoldIntegerTypedPHI(PHINode &PN) { in FoldIntegerTypedPHI() 295 Instruction *InstCombiner::FoldPHIArgBinOpIntoPHI(PHINode &PN) { in FoldPHIArgBinOpIntoPHI() 388 Instruction *InstCombiner::FoldPHIArgGEPIntoPHI(PHINode &PN) { in FoldPHIArgGEPIntoPHI() 543 Instruction *InstCombiner::FoldPHIArgLoadIntoPHI(PHINode &PN) { in FoldPHIArgLoadIntoPHI() 736 Instruction *InstCombiner::FoldPHIArgOpIntoPHI(PHINode &PN) { in FoldPHIArgOpIntoPHI() 844 static bool DeadPHICycle(PHINode *PN, in DeadPHICycle() 866 static bool PHIsEqualValue(PHINode *PN, Value *NonPhiInVal, in PHIsEqualValue() 891 static ConstantInt *GetAnyNonZeroConstInt(PHINode &PN) { in GetAnyNonZeroConstInt() 920 PHINode *PN; // The PHI that was lowered. member [all …]
|
/aosp_15_r20/external/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombinePHI.cpp | 28 Instruction *InstCombiner::FoldPHIArgBinOpIntoPHI(PHINode &PN) { in FoldPHIArgBinOpIntoPHI() 121 Instruction *InstCombiner::FoldPHIArgGEPIntoPHI(PHINode &PN) { in FoldPHIArgGEPIntoPHI() 276 Instruction *InstCombiner::FoldPHIArgLoadIntoPHI(PHINode &PN) { in FoldPHIArgLoadIntoPHI() 467 Instruction *InstCombiner::FoldPHIArgOpIntoPHI(PHINode &PN) { in FoldPHIArgOpIntoPHI() 575 static bool DeadPHICycle(PHINode *PN, in DeadPHICycle() 597 static bool PHIsEqualValue(PHINode *PN, Value *NonPhiInVal, in PHIsEqualValue() 622 static ConstantInt *GetAnyNonZeroConstInt(PHINode &PN) { in GetAnyNonZeroConstInt() 651 PHINode *PN; // The PHI that was lowered. member 710 PHINode *PN = PHIsToSlice[PHIId]; in SliceUpIllegalIntegerPHI() local 778 PHINode *PN = PHIsToSlice[PHIId]; in SliceUpIllegalIntegerPHI() local [all …]
|
/aosp_15_r20/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
H A D | SpeculateAroundPHIs.cpp | 49 isSafeToSpeculatePHIUsers(PHINode &PN, DominatorTree &DT, in isSafeToSpeculatePHIUsers() 203 PHINode &PN, SmallDenseMap<PHINode *, int, 16> &CostSavingsMap, in isSafeAndProfitableToSpeculateAroundPHI() argument 347 for (auto *PN : PNs) in visitPHIUsersAndDepsInPostOrder() local 433 for (auto *PN : PNs) { in findProfitablePHIs() local 492 for (auto *PN : llvm::make_range(UserPNsSplitIt, UserPNs.end())) { in findProfitablePHIs() local 756 [&](PHINode *PN) { in tryToSpeculatePHIs() 813 while (auto *PN = dyn_cast<PHINode>(&*BBI)) { in run() local
|
H A D | LICM.cpp | 649 bool canHoistPHI(PHINode *PN) { in canHoistPHI() 913 if (PHINode *PN = dyn_cast<PHINode>(&I)) { in hoistRegion() local 1296 static bool isTriviallyReplaceablePHI(const PHINode &PN, const Instruction &I) { in isTriviallyReplaceablePHI() 1340 if (const PHINode *PN = dyn_cast<PHINode>(UI)) { in isNotUsedOrFreeInLoop() local 1366 Instruction &I, BasicBlock &ExitBlock, PHINode &PN, const LoopInfo *LI, in CloneInstructionInExitBlock() 1483 static bool canSplitPredecessors(PHINode *PN, LoopSafetyInfo *SafetyInfo) { in canSplitPredecessors() 1502 static void splitPredecessorsOfLoopExit(PHINode *PN, DominatorTree *DT, in splitPredecessorsOfLoopExit() 1607 PHINode *PN = cast<PHINode>(User); in sink() local 1659 PHINode *PN = cast<PHINode>(User); in sink() local 1768 PHINode *PN = PHINode::Create(I->getType(), PredCache.size(BB), in maybeInsertLCSSAPHI() local
|
/aosp_15_r20/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
H A D | PhiValues.cpp | 126 const PhiValues::ValueSet &PhiValues::getValuesForPhi(const PHINode *PN) { in getValuesForPhi() 147 if (const PHINode *PN = dyn_cast<PHINode>(V)) in invalidateValue() local 168 for (const PHINode &PN : BB.phis()) { in print() local 201 for (const PHINode &PN : BB.phis()) in run() local
|
/aosp_15_r20/external/swiftshader/third_party/llvm-16.0/llvm/lib/Analysis/ |
H A D | PhiValues.cpp | 125 const PhiValues::ValueSet &PhiValues::getValuesForPhi(const PHINode *PN) { in getValuesForPhi() 146 if (const PHINode *PN = dyn_cast<PHINode>(V)) in invalidateValue() local 167 for (const PHINode &PN : BB.phis()) { in print() local 200 for (const PHINode &PN : BB.phis()) in run() local
|
/aosp_15_r20/external/llvm/lib/Transforms/Utils/ |
H A D | BasicBlockUtils.cpp | 66 while (PHINode *PN = dyn_cast<PHINode>(BB->begin())) { in FoldSingleEntryPHINodes() local 89 if (PHINode *PN = dyn_cast_or_null<PHINode>(PHIs[i].operator Value*())) in DeleteDeadPHIs() local 124 if (PHINode *PN = dyn_cast<PHINode>(BI)) { in MergeBlockIntoPredecessor() local 356 PHINode *PN = cast<PHINode>(I++); in UpdatePHINodes() local 563 PHINode *PN = PHINode::Create(LPad->getType(), 2, "lpad.phi", LPad); in SplitLandingPadPredecessors() local 598 if (PHINode *PN = dyn_cast<PHINode>(V)) { in FoldReturnIntoUncondBranch() local
|
H A D | Local.cpp | 408 bool llvm::RecursivelyDeleteDeadPHINode(PHINode *PN, in RecursivelyDeleteDeadPHINode() 548 while (PHINode *PN = dyn_cast<PHINode>(PhiIt)) { in RemovePredecessorAndSimplify() local 570 while (PHINode *PN = dyn_cast<PHINode>(DestBB->begin())) { in MergeBasicBlockIntoOnlyPred() local 640 PHINode *PN = cast<PHINode>(I); in CanPropagatePredecessorsForPHIs() local 720 static void gatherIncomingValuesToPhi(PHINode *PN, in gatherIncomingValuesToPhi() 736 static void replaceUndefValuesInPhi(PHINode *PN, in replaceUndefValuesInPhi() 760 PHINode *PN) { in redirectValuesFromPredecessorsToPhi() 846 if (PHINode* PN = dyn_cast<PHINode>(U.getUser())) { in TryToSimplifyUncondBranchFromEmptyBlock() local 867 PHINode *PN = cast<PHINode>(I); in TryToSimplifyUncondBranchFromEmptyBlock() local 882 while (PHINode *PN = dyn_cast<PHINode>(&BB->front())) { in TryToSimplifyUncondBranchFromEmptyBlock() local
|
H A D | CodeExtractor.cpp | 188 PHINode *PN = dyn_cast<PHINode>(Header->begin()); in severSplitPHINodes() local 228 PHINode *PN = cast<PHINode>(OldPred->begin()); in severSplitPHINodes() local 240 PHINode *PN = cast<PHINode>(AfterPHIs); in severSplitPHINodes() local 729 PHINode *PN = cast<PHINode>(I); in extractCodeRegion() local 742 PHINode *PN = cast<PHINode>(I); in extractCodeRegion() local
|
H A D | SimplifyCFG.cpp | 191 PHINode *PN = cast<PHINode>(BBI); in SafeToMergeTerminators() local 231 PHINode *PN = cast<PHINode>(BBI); in isProfitableToFoldUnconditional() local 249 PHINode *PN; in AddPredecessorToBlock() local 1155 PHINode *PN; in isSafeToHoistInvoke() local 1254 PHINode *PN; in HoistThenElseCodeToIf() local 1291 PHINode *PN; in HoistThenElseCodeToIf() local 1349 if (PHINode *PN = dyn_cast<PHINode>(I)) { in SinkThenElseCodeToEnd() local 1808 PHINode *PN = dyn_cast<PHINode>(BI->getCondition()); in FoldCondBranchOnPHI() local 1867 if (PHINode *PN = dyn_cast<PHINode>(BBI)) { in FoldCondBranchOnPHI() local 1918 static bool FoldTwoEntryPHINode(PHINode *PN, const TargetTransformInfo &TTI, in FoldTwoEntryPHINode() [all …]
|
/aosp_15_r20/external/llvm/lib/IR/ |
H A D | BasicBlock.cpp | 315 while (PHINode *PN = dyn_cast<PHINode>(&front())) { in removePredecessor() local 335 PHINode *PN; in removePredecessor() local 401 PHINode *PN; in splitBasicBlock() local 424 PHINode *PN = dyn_cast<PHINode>(II); in replaceSuccessorsPhiUsesWith() local
|
H A D | Dominators.cpp | 199 PHINode *PN = dyn_cast<PHINode>(UserInst); in dominates() local 222 if (PHINode *PN = dyn_cast<PHINode>(UserInst)) in dominates() local 273 if (PHINode *PN = dyn_cast<PHINode>(I)) in isReachableFromEntry() local
|
/aosp_15_r20/external/swiftshader/third_party/llvm-16.0/llvm/lib/IR/ |
H A D | Dominators.cpp | 124 if (auto *PN = dyn_cast<PHINode>(UserInst)) in dominates() local 260 PHINode *PN = dyn_cast<PHINode>(UserInst); in dominates() local 290 if (PHINode *PN = dyn_cast<PHINode>(UserInst)) in dominates() local 343 if (PHINode *PN = dyn_cast<PHINode>(I)) in isReachableFromEntry() local
|
H A D | SafepointIRVerifier.cpp | 83 bool hasLiveIncomingEdge(const PHINode *PN, const BasicBlock *InBB) const { in hasLiveIncomingEdge() argument 350 if (const auto *PN = dyn_cast<PHINode>(V)) { in getBaseType() local 469 bool hasLiveIncomingEdge(const PHINode *PN, const BasicBlock *InBB) const { in hasLiveIncomingEdge() argument 667 if (const PHINode *PN = dyn_cast<PHINode>(&I)) { in removeValidUnrelocatedDefs() local 803 if (const PHINode *PN = dyn_cast<PHINode>(&I)) { in verifyInstruction() local
|
/aosp_15_r20/external/llvm/lib/Analysis/ |
H A D | ScalarEvolutionExpander.cpp | 821 bool SCEVExpander::isNormalAddRecExprPHI(PHINode *PN, Instruction *IncV, in isNormalAddRecExprPHI() 963 bool SCEVExpander::isExpandedAddRecExprPHI(PHINode *PN, Instruction *IncV, in isExpandedAddRecExprPHI() 977 Value *SCEVExpander::expandIVInc(PHINode *PN, Value *StepV, const Loop *L, in expandIVInc() 1108 auto *PN = dyn_cast<PHINode>(&I); in getAddRecExprPHILiterally() local 1217 PHINode *PN = Builder.CreatePHI(ExpandTy, std::distance(HPB, HPE), in getAddRecExprPHILiterally() local 1311 PHINode *PN = getAddRecExprPHILiterally(Normalized, L, ExpandTy, IntTy, in expandAddRecExprLiterally() local 1406 if (PHINode *PN = L->getCanonicalInductionVariable()) in visitAddRecExpr() local 1758 if (auto *PN = dyn_cast<PHINode>(&I)) in replaceCongruentIVs() local 1778 auto SimplifyPHINode = [&](PHINode *PN) -> Value * { in replaceCongruentIVs() 1861 if (PHINode *PN = dyn_cast<PHINode>(OrigInc)) in replaceCongruentIVs() local
|
/aosp_15_r20/external/swiftshader/third_party/llvm-16.0/llvm/lib/Transforms/Scalar/ |
H A D | LICM.cpp | 711 bool canHoistPHI(PHINode *PN) { in canHoistPHI() 971 if (PHINode *PN = dyn_cast<PHINode>(&I)) { in hoistRegion() local 1321 static bool isTriviallyReplaceablePHI(const PHINode &PN, const Instruction &I) { in isTriviallyReplaceablePHI() 1369 if (const PHINode *PN = dyn_cast<PHINode>(UI)) { in isNotUsedOrFreeInLoop() local 1404 Instruction &I, BasicBlock &ExitBlock, PHINode &PN, const LoopInfo *LI, in cloneInstructionInExitBlock() 1514 static bool canSplitPredecessors(PHINode *PN, LoopSafetyInfo *SafetyInfo) { in canSplitPredecessors() 1531 static void splitPredecessorsOfLoopExit(PHINode *PN, DominatorTree *DT, in splitPredecessorsOfLoopExit() 1627 PHINode *PN = cast<PHINode>(User); in sink() local 1691 PHINode *PN = cast<PHINode>(User); in sink() local 1806 PHINode *PN = PHINode::Create(I->getType(), PredCache.size(BB), in maybeInsertLCSSAPHI() local
|
/aosp_15_r20/external/llvm/lib/Transforms/IPO/ |
H A D | GlobalOpt.cpp | 605 } else if (const PHINode *PN = dyn_cast<PHINode>(U)) { in AllUsesOfValueWillTrapIfNull() local 941 if (const PHINode *PN = dyn_cast<PHINode>(Inst)) { in ValueIsOnlyUsedLocallyOrStoredToOneGlobal() local 976 } else if (PHINode *PN = dyn_cast<PHINode>(U)) { in ReplaceUsesOfMallocWithGlobal() local 1033 if (const PHINode *PN = dyn_cast<PHINode>(UI)) { in LoadUsesSimpleEnoughForHeapSRA() local 1077 for (const PHINode *PN : LoadUsingPHIs) { in AllGlobalLoadUsesSimpleEnoughForHeapSRA() local 1129 PHINode *PN = cast<PHINode>(V); in GetHeapSROAValue() local 1197 PHINode *PN = cast<PHINode>(LoadUser); in RewriteHeapSROALoadUser() local 1375 PHINode *PN = PHIsToRewrite.back().first; in PerformHeapAllocSRoA() local 1394 if (PHINode *PN = dyn_cast<PHINode>(I->first)) in PerformHeapAllocSRoA() local 1404 if (PHINode *PN = dyn_cast<PHINode>(I->first)) in PerformHeapAllocSRoA() local
|
/aosp_15_r20/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
H A D | SafepointIRVerifier.cpp | 84 bool hasLiveIncomingEdge(const PHINode *PN, const BasicBlock *InBB) const { in hasLiveIncomingEdge() argument 351 if (const auto *PN = dyn_cast<PHINode>(V)) { in getBaseType() local 460 bool hasLiveIncomingEdge(const PHINode *PN, const BasicBlock *InBB) const { in hasLiveIncomingEdge() argument 659 if (const PHINode *PN = dyn_cast<PHINode>(&I)) { in removeValidUnrelocatedDefs() local 795 if (const PHINode *PN = dyn_cast<PHINode>(&I)) { in verifyInstruction() local
|
H A D | Dominators.cpp | 234 PHINode *PN = dyn_cast<PHINode>(UserInst); in dominates() local 257 if (PHINode *PN = dyn_cast<PHINode>(UserInst)) in dominates() local 308 if (PHINode *PN = dyn_cast<PHINode>(I)) in isReachableFromEntry() local
|
/aosp_15_r20/external/AFLplusplus/instrumentation/ |
H A D | split-compares-pass.so.cc | 355 PHINode *PN = PHINode::Create(Int1Ty, 2, ""); in simplifyFPCompares() local 453 PHINode *PN = PHINode::Create(Int1Ty, 2, ""); in simplifyOrEqualsCompare() local 576 PHINode *PN = PHINode::Create(Int1Ty, 2, ""); in simplifySignedCompare() local 669 PHINode *PN = nullptr; in splitCompare() local 1634 PHINode *PN = PHINode::Create(Int1Ty, 4, ""); in splitFPCompares() local
|
/aosp_15_r20/external/swiftshader/third_party/llvm-16.0/llvm/lib/Target/Hexagon/ |
H A D | HexagonVectorLoopCarriedReuse.cpp | 381 PHINode *PN = cast<PHINode>(D->front()); in findValueToReuse() local 514 PHINode *PN = dyn_cast<PHINode>(Op); in findValueInBlock() local 603 PHINode *PN = dyn_cast<PHINode>(I); in findDepChainFromPHI() local 650 auto *PN = cast<PHINode>(I); in findLoopCarriedDeps() local
|
/aosp_15_r20/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/ |
H A D | HexagonVectorLoopCarriedReuse.cpp | 460 PHINode *PN = cast<PHINode>(D->front()); in findValueToReuse() local 596 PHINode *PN = dyn_cast<PHINode>(Op); in findValueInBlock() local 685 PHINode *PN = dyn_cast<PHINode>(I); in findDepChainFromPHI() local 732 auto *PN = cast<PHINode>(I); in findLoopCarriedDeps() local
|
/aosp_15_r20/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
H A D | Local.cpp | 523 bool llvm::RecursivelyDeleteDeadPHINode(PHINode *PN, in RecursivelyDeleteDeadPHINode() 654 while (PHINode *PN = dyn_cast<PHINode>(PhiIt)) { in RemovePredecessorAndSimplify() local 674 while (PHINode *PN = dyn_cast<PHINode>(DestBB->begin())) { in MergeBasicBlockIntoOnlyPred() local 774 PHINode *PN = cast<PHINode>(I); in CanPropagatePredecessorsForPHIs() local 856 static void gatherIncomingValuesToPhi(PHINode *PN, in gatherIncomingValuesToPhi() 872 static void replaceUndefValuesInPhi(PHINode *PN, in replaceUndefValuesInPhi() 896 PHINode *PN) { in redirectValuesFromPredecessorsToPhi() 978 if (PHINode* PN = dyn_cast<PHINode>(U.getUser())) { in TryToSimplifyUncondBranchFromEmptyBlock() local 1023 PHINode *PN = cast<PHINode>(I); in TryToSimplifyUncondBranchFromEmptyBlock() local 1038 while (PHINode *PN = dyn_cast<PHINode>(&BB->front())) { in TryToSimplifyUncondBranchFromEmptyBlock() local [all …]
|
H A D | BasicBlockUtils.cpp | 143 while (PHINode *PN = dyn_cast<PHINode>(BB->begin())) { in FoldSingleEntryPHINodes() local 165 if (PHINode *PN = dyn_cast_or_null<PHINode>(PHIs[i].operator Value*())) in DeleteDeadPHIs() local 649 PHINode *PN = cast<PHINode>(I++); in UpdatePHINodes() local 868 PHINode *PN = PHINode::Create(LPad->getType(), 2, "lpad.phi", LPad); in SplitLandingPadPredecessors() local 904 if (PHINode *PN = dyn_cast<PHINode>(V)) { in FoldReturnIntoUncondBranch() local
|