/external/llvm-project/llvm/lib/Transforms/InstCombine/ |
D | InstCombinePHI.cpp | 42 void InstCombinerImpl::PHIArgMergedDebugLoc(Instruction *Inst, PHINode &PN) { in PHIArgMergedDebugLoc() argument 43 auto *FirstInst = cast<Instruction>(PN.getIncomingValue(0)); in PHIArgMergedDebugLoc() 49 for (unsigned i = 1; i != PN.getNumIncomingValues(); ++i) { in PHIArgMergedDebugLoc() 50 auto *I = cast<Instruction>(PN.getIncomingValue(i)); in PHIArgMergedDebugLoc() 105 Instruction *InstCombinerImpl::foldIntegerTypedPHI(PHINode &PN) { in foldIntegerTypedPHI() argument 106 if (!PN.getType()->isIntegerTy()) in foldIntegerTypedPHI() 108 if (!PN.hasOneUse()) in foldIntegerTypedPHI() 111 auto *IntToPtr = dyn_cast<IntToPtrInst>(PN.user_back()); in foldIntegerTypedPHI() 141 for (unsigned i = 0; i != PN.getNumIncomingValues(); ++i) { in foldIntegerTypedPHI() 142 Value *Arg = PN.getIncomingValue(i); in foldIntegerTypedPHI() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombinePHI.cpp | 33 void InstCombiner::PHIArgMergedDebugLoc(Instruction *Inst, PHINode &PN) { in PHIArgMergedDebugLoc() argument 34 auto *FirstInst = cast<Instruction>(PN.getIncomingValue(0)); in PHIArgMergedDebugLoc() 40 for (unsigned i = 1; i != PN.getNumIncomingValues(); ++i) { in PHIArgMergedDebugLoc() 41 auto *I = cast<Instruction>(PN.getIncomingValue(i)); in PHIArgMergedDebugLoc() 96 Instruction *InstCombiner::FoldIntegerTypedPHI(PHINode &PN) { in FoldIntegerTypedPHI() argument 97 if (!PN.getType()->isIntegerTy()) in FoldIntegerTypedPHI() 99 if (!PN.hasOneUse()) in FoldIntegerTypedPHI() 102 auto *IntToPtr = dyn_cast<IntToPtrInst>(PN.user_back()); in FoldIntegerTypedPHI() 132 for (unsigned i = 0; i != PN.getNumIncomingValues(); ++i) { in FoldIntegerTypedPHI() 133 Value *Arg = PN.getIncomingValue(i); in FoldIntegerTypedPHI() [all …]
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombinePHI.cpp | 28 Instruction *InstCombiner::FoldPHIArgBinOpIntoPHI(PHINode &PN) { in FoldPHIArgBinOpIntoPHI() argument 29 Instruction *FirstInst = cast<Instruction>(PN.getIncomingValue(0)); in FoldPHIArgBinOpIntoPHI() 39 for (unsigned i = 1; i != PN.getNumIncomingValues(); ++i) { in FoldPHIArgBinOpIntoPHI() 40 Instruction *I = dyn_cast<Instruction>(PN.getIncomingValue(i)); in FoldPHIArgBinOpIntoPHI() 71 NewLHS = PHINode::Create(LHSType, PN.getNumIncomingValues(), in FoldPHIArgBinOpIntoPHI() 73 NewLHS->addIncoming(InLHS, PN.getIncomingBlock(0)); in FoldPHIArgBinOpIntoPHI() 74 InsertNewInstBefore(NewLHS, PN); in FoldPHIArgBinOpIntoPHI() 79 NewRHS = PHINode::Create(RHSType, PN.getNumIncomingValues(), in FoldPHIArgBinOpIntoPHI() 81 NewRHS->addIncoming(InRHS, PN.getIncomingBlock(0)); in FoldPHIArgBinOpIntoPHI() 82 InsertNewInstBefore(NewRHS, PN); in FoldPHIArgBinOpIntoPHI() [all …]
|
/external/deqp/external/vulkancts/modules/vulkan/api/ |
D | vktApiFeatureInfo.cpp | 657 #ifdef PN 658 #error PN defined 660 #define PN(_X_) &(_X_), (const char*)(#_X_) macro 718 { PN(checkAlways), PN(limits.maxImageDimension1D), LIM_MIN_UINT32(4096) }, in validateLimits12() 719 { PN(checkAlways), PN(limits.maxImageDimension2D), LIM_MIN_UINT32(4096) }, in validateLimits12() 720 { PN(checkAlways), PN(limits.maxImageDimension3D), LIM_MIN_UINT32(256) }, in validateLimits12() 721 { PN(checkAlways), PN(limits.maxImageDimensionCube), LIM_MIN_UINT32(4096) }, in validateLimits12() 722 { PN(checkAlways), PN(limits.maxImageArrayLayers), LIM_MIN_UINT32(256) }, in validateLimits12() 723 …{ PN(checkAlways), PN(limits.maxTexelBufferElements), LIM_MIN_UINT32(65536) … in validateLimits12() 724 …{ PN(checkAlways), PN(limits.maxUniformBufferRange), LIM_MIN_UINT32(16384) }, in validateLimits12() [all …]
|
/external/llvm/lib/IR/ |
D | BasicBlock.cpp | 315 while (PHINode *PN = dyn_cast<PHINode>(&front())) { in removePredecessor() local 317 PN->removeIncomingValue(Pred, !DontDeleteUselessPHIs); in removePredecessor() 321 if (PN->getIncomingValue(0) != PN) in removePredecessor() 322 PN->replaceAllUsesWith(PN->getIncomingValue(0)); in removePredecessor() 325 PN->replaceAllUsesWith(UndefValue::get(PN->getType())); in removePredecessor() 335 PHINode *PN; in removePredecessor() local 336 for (iterator II = begin(); (PN = dyn_cast<PHINode>(II)); ) { in removePredecessor() 338 PN->removeIncomingValue(Pred, false); in removePredecessor() 342 if (!DontDeleteUselessPHIs && (PNV = PN->hasConstantValue())) in removePredecessor() 343 if (PNV != PN) { in removePredecessor() [all …]
|
/external/llvm/lib/Transforms/Utils/ |
D | BasicBlockUtils.cpp | 66 while (PHINode *PN = dyn_cast<PHINode>(BB->begin())) { in FoldSingleEntryPHINodes() local 67 if (PN->getIncomingValue(0) != PN) in FoldSingleEntryPHINodes() 68 PN->replaceAllUsesWith(PN->getIncomingValue(0)); in FoldSingleEntryPHINodes() 70 PN->replaceAllUsesWith(UndefValue::get(PN->getType())); in FoldSingleEntryPHINodes() 73 MemDep->removeInstruction(PN); // Memdep updates AA itself. in FoldSingleEntryPHINodes() 75 PN->eraseFromParent(); in FoldSingleEntryPHINodes() 84 PHINode *PN = dyn_cast<PHINode>(I); ++I) in DeleteDeadPHIs() 85 PHIs.push_back(PN); in DeleteDeadPHIs() 89 if (PHINode *PN = dyn_cast_or_null<PHINode>(PHIs[i].operator Value*())) in DeleteDeadPHIs() local 90 Changed |= RecursivelyDeleteDeadPHINode(PN, TLI); in DeleteDeadPHIs() [all …]
|
D | LoopSimplify.cpp | 211 PHINode *PN = cast<PHINode>(I); in findPHIToPartitionLoops() local 213 if (Value *V = SimplifyInstruction(PN, DL, nullptr, DT, AC)) { in findPHIToPartitionLoops() 215 PN->replaceAllUsesWith(V); in findPHIToPartitionLoops() 216 PN->eraseFromParent(); in findPHIToPartitionLoops() 221 for (unsigned i = 0, e = PN->getNumIncomingValues(); i != e; ++i) in findPHIToPartitionLoops() 222 if (PN->getIncomingValue(i) == PN && in findPHIToPartitionLoops() 223 L->contains(PN->getIncomingBlock(i))) in findPHIToPartitionLoops() 225 return PN; in findPHIToPartitionLoops() 261 PHINode *PN = findPHIToPartitionLoops(L, DT, AC); in separateNestedLoop() local 262 if (!PN) return nullptr; // No known way to partition. in separateNestedLoop() [all …]
|
D | LCSSA.cpp | 80 if (PHINode *PN = dyn_cast<PHINode>(User)) in processInstruction() local 81 UserBB = PN->getIncomingBlock(U); in processInstruction() 119 PHINode *PN = PHINode::Create(Inst.getType(), PredCache.size(ExitBB), in processInstruction() local 124 PN->addIncoming(&Inst, Pred); in processInstruction() 131 &PN->getOperandUse(PN->getOperandNumForIncomingValue( in processInstruction() 132 PN->getNumIncomingValues() - 1))); in processInstruction() 135 AddedPHIs.push_back(PN); in processInstruction() 138 SSAUpdate.AddAvailableValue(ExitBB, PN); in processInstruction() 150 PostProcessPHIs.push_back(PN); in processInstruction() 162 if (PHINode *PN = dyn_cast<PHINode>(User)) in processInstruction() local [all …]
|
D | LoopUnrollRuntime.cpp | 77 PHINode *PN = dyn_cast<PHINode>(&BBI); in ConnectProlog() local 79 if (!PN) in ConnectProlog() 83 PHINode *NewPN = PHINode::Create(PN->getType(), 2, PN->getName() + ".unr", in ConnectProlog() 87 if (L->contains(PN)) { in ConnectProlog() 88 NewPN->addIncoming(PN->getIncomingValueForBlock(NewPreHeader), in ConnectProlog() 91 NewPN->addIncoming(UndefValue::get(PN->getType()), PreHeader); in ConnectProlog() 94 Value *V = PN->getIncomingValueForBlock(Latch); in ConnectProlog() 107 if (L->contains(PN)) { in ConnectProlog() 108 PN->setIncomingValue(PN->getBasicBlockIndex(NewPreHeader), NewPN); in ConnectProlog() 110 PN->addIncoming(NewPN, PrologExit); in ConnectProlog() [all …]
|
D | BreakCriticalEdges.cpp | 92 PHINode *PN = dyn_cast<PHINode>(I); ++I) { in createPHIsForSplitLoopExit() 93 unsigned Idx = PN->getBasicBlockIndex(SplitBB); in createPHIsForSplitLoopExit() 94 Value *V = PN->getIncomingValue(Idx); in createPHIsForSplitLoopExit() 104 PN->getType(), Preds.size(), "split", in createPHIsForSplitLoopExit() 110 PN->setIncomingValue(Idx, NewPN); in createPHIsForSplitLoopExit() 153 PHINode *PN = cast<PHINode>(I); in SplitCriticalEdge() local 160 if (PN->getIncomingBlock(BBIdx) != TIBB) in SplitCriticalEdge() 161 BBIdx = PN->getBasicBlockIndex(TIBB); in SplitCriticalEdge() 162 PN->setIncomingBlock(BBIdx, NewBB); in SplitCriticalEdge() 196 if (PHINode *PN = dyn_cast<PHINode>(DestBB->begin())) { in SplitCriticalEdge() local [all …]
|
D | CloneFunction.cpp | 450 if (const PHINode *PN = dyn_cast<PHINode>(I)) { in CloneAndPruneIntoFromInst() local 451 if (isa<PHINode>(VMap[PN])) in CloneAndPruneIntoFromInst() 452 PHIToResolve.push_back(PN); in CloneAndPruneIntoFromInst() 480 PHINode *PN = cast<PHINode>(VMap[OPN]); in CloneAndPruneIntoFromInst() local 482 Value *V = VMap.lookup(PN->getIncomingBlock(pred)); in CloneAndPruneIntoFromInst() 484 Value *InVal = MapValue(PN->getIncomingValue(pred), in CloneAndPruneIntoFromInst() 488 PN->setIncomingValue(pred, InVal); in CloneAndPruneIntoFromInst() 489 PN->setIncomingBlock(pred, MappedBlock); in CloneAndPruneIntoFromInst() 491 PN->removeIncomingValue(pred, false); in CloneAndPruneIntoFromInst() 503 PHINode *PN = cast<PHINode>(NewBB->begin()); in CloneAndPruneIntoFromInst() local [all …]
|
/external/llvm-project/llvm/lib/Transforms/Scalar/ |
D | SpeculateAroundPHIs.cpp | 49 isSafeToSpeculatePHIUsers(PHINode &PN, DominatorTree &DT, in isSafeToSpeculatePHIUsers() argument 52 auto *PhiBB = PN.getParent(); in isSafeToSpeculatePHIUsers() 57 for (Use &U : PN.uses()) { in isSafeToSpeculatePHIUsers() 203 PHINode &PN, SmallDenseMap<PHINode *, int, 16> &CostSavingsMap, in isSafeAndProfitableToSpeculateAroundPHI() argument 218 for (int i : llvm::seq<int>(0, PN.getNumIncomingValues())) { in isSafeAndProfitableToSpeculateAroundPHI() 219 auto *IncomingC = dyn_cast<ConstantInt>(PN.getIncomingValue(i)); in isSafeAndProfitableToSpeculateAroundPHI() 224 if (!IncomingConstantBlocks.insert(PN.getIncomingBlock(i)).second) in isSafeAndProfitableToSpeculateAroundPHI() 240 LLVM_DEBUG(dbgs() << " Free: " << PN << "\n"); in isSafeAndProfitableToSpeculateAroundPHI() 247 if (!isSafeToSpeculatePHIUsers(PN, DT, PotentialSpecSet, UnsafeSet)) { in isSafeAndProfitableToSpeculateAroundPHI() 248 LLVM_DEBUG(dbgs() << " Unsafe PHI: " << PN << "\n"); in isSafeAndProfitableToSpeculateAroundPHI() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | SpeculateAroundPHIs.cpp | 49 isSafeToSpeculatePHIUsers(PHINode &PN, DominatorTree &DT, in isSafeToSpeculatePHIUsers() argument 52 auto *PhiBB = PN.getParent(); in isSafeToSpeculatePHIUsers() 57 for (Use &U : PN.uses()) { in isSafeToSpeculatePHIUsers() 203 PHINode &PN, SmallDenseMap<PHINode *, int, 16> &CostSavingsMap, in isSafeAndProfitableToSpeculateAroundPHI() argument 218 for (int i : llvm::seq<int>(0, PN.getNumIncomingValues())) { in isSafeAndProfitableToSpeculateAroundPHI() 219 auto *IncomingC = dyn_cast<ConstantInt>(PN.getIncomingValue(i)); in isSafeAndProfitableToSpeculateAroundPHI() 224 if (!IncomingConstantBlocks.insert(PN.getIncomingBlock(i)).second) in isSafeAndProfitableToSpeculateAroundPHI() 239 LLVM_DEBUG(dbgs() << " Free: " << PN << "\n"); in isSafeAndProfitableToSpeculateAroundPHI() 246 if (!isSafeToSpeculatePHIUsers(PN, DT, PotentialSpecSet, UnsafeSet)) { in isSafeAndProfitableToSpeculateAroundPHI() 247 LLVM_DEBUG(dbgs() << " Unsafe PHI: " << PN << "\n"); in isSafeAndProfitableToSpeculateAroundPHI() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | LCSSA.cpp | 110 if (auto *PN = dyn_cast<PHINode>(User)) in formLCSSAForInstructions() local 111 UserBB = PN->getIncomingBlock(U); in formLCSSAForInstructions() 155 PHINode *PN = PHINode::Create(I->getType(), PredCache.size(ExitBB), in formLCSSAForInstructions() local 158 PN->setDebugLoc(I->getDebugLoc()); in formLCSSAForInstructions() 161 PN->addIncoming(I, Pred); in formLCSSAForInstructions() 168 &PN->getOperandUse(PN->getOperandNumForIncomingValue( in formLCSSAForInstructions() 169 PN->getNumIncomingValues() - 1))); in formLCSSAForInstructions() 172 AddedPHIs.push_back(PN); in formLCSSAForInstructions() 175 SSAUpdate.AddAvailableValue(ExitBB, PN); in formLCSSAForInstructions() 187 PostProcessPHIs.push_back(PN); in formLCSSAForInstructions() [all …]
|
D | LoopSimplify.cpp | 187 PHINode *PN = cast<PHINode>(I); in findPHIToPartitionLoops() local 189 if (Value *V = SimplifyInstruction(PN, {DL, nullptr, DT, AC})) { in findPHIToPartitionLoops() 191 PN->replaceAllUsesWith(V); in findPHIToPartitionLoops() 192 PN->eraseFromParent(); in findPHIToPartitionLoops() 197 for (unsigned i = 0, e = PN->getNumIncomingValues(); i != e; ++i) in findPHIToPartitionLoops() 198 if (PN->getIncomingValue(i) == PN && in findPHIToPartitionLoops() 199 L->contains(PN->getIncomingBlock(i))) in findPHIToPartitionLoops() 201 return PN; in findPHIToPartitionLoops() 237 PHINode *PN = findPHIToPartitionLoops(L, DT, AC); in separateNestedLoop() local 238 if (!PN) return nullptr; // No known way to partition. in separateNestedLoop() [all …]
|
D | BasicBlockUtils.cpp | 143 while (PHINode *PN = dyn_cast<PHINode>(BB->begin())) { in FoldSingleEntryPHINodes() local 144 if (PN->getIncomingValue(0) != PN) in FoldSingleEntryPHINodes() 145 PN->replaceAllUsesWith(PN->getIncomingValue(0)); in FoldSingleEntryPHINodes() 147 PN->replaceAllUsesWith(UndefValue::get(PN->getType())); in FoldSingleEntryPHINodes() 150 MemDep->removeInstruction(PN); // Memdep updates AA itself. in FoldSingleEntryPHINodes() 152 PN->eraseFromParent(); in FoldSingleEntryPHINodes() 160 for (PHINode &PN : BB->phis()) in DeleteDeadPHIs() 161 PHIs.push_back(&PN); in DeleteDeadPHIs() 165 if (PHINode *PN = dyn_cast_or_null<PHINode>(PHIs[i].operator Value*())) in DeleteDeadPHIs() local 166 Changed |= RecursivelyDeleteDeadPHINode(PN, TLI); in DeleteDeadPHIs() [all …]
|
/external/llvm-project/llvm/lib/Transforms/Utils/ |
D | LCSSA.cpp | 118 if (auto *PN = dyn_cast<PHINode>(User)) in formLCSSAForInstructions() local 119 UserBB = PN->getIncomingBlock(U); in formLCSSAForInstructions() 163 PHINode *PN = Builder.CreatePHI(I->getType(), PredCache.size(ExitBB), in formLCSSAForInstructions() local 166 PN->setDebugLoc(I->getDebugLoc()); in formLCSSAForInstructions() 174 PN->addIncoming(I, Pred); in formLCSSAForInstructions() 181 &PN->getOperandUse(PN->getOperandNumForIncomingValue( in formLCSSAForInstructions() 182 PN->getNumIncomingValues() - 1))); in formLCSSAForInstructions() 185 AddedPHIs.push_back(PN); in formLCSSAForInstructions() 188 SSAUpdate.AddAvailableValue(ExitBB, PN); in formLCSSAForInstructions() 200 PostProcessPHIs.push_back(PN); in formLCSSAForInstructions() [all …]
|
D | LoopSimplify.cpp | 186 PHINode *PN = cast<PHINode>(I); in findPHIToPartitionLoops() local 188 if (Value *V = SimplifyInstruction(PN, {DL, nullptr, DT, AC})) { in findPHIToPartitionLoops() 190 PN->replaceAllUsesWith(V); in findPHIToPartitionLoops() 191 PN->eraseFromParent(); in findPHIToPartitionLoops() 196 for (unsigned i = 0, e = PN->getNumIncomingValues(); i != e; ++i) in findPHIToPartitionLoops() 197 if (PN->getIncomingValue(i) == PN && in findPHIToPartitionLoops() 198 L->contains(PN->getIncomingBlock(i))) in findPHIToPartitionLoops() 200 return PN; in findPHIToPartitionLoops() 257 PHINode *PN = findPHIToPartitionLoops(L, DT, AC); in separateNestedLoop() local 258 if (!PN) return nullptr; // No known way to partition. in separateNestedLoop() [all …]
|
/external/llvm-project/llvm/lib/Analysis/ |
D | PhiValues.cpp | 125 const PhiValues::ValueSet &PhiValues::getValuesForPhi(const PHINode *PN) { in getValuesForPhi() argument 126 unsigned int DepthNumber = DepthMap.lookup(PN); in getValuesForPhi() 129 processPhi(PN, Stack); in getValuesForPhi() 130 DepthNumber = DepthMap.lookup(PN); in getValuesForPhi() 146 if (const PHINode *PN = dyn_cast<PHINode>(V)) in invalidateValue() local 147 DepthMap.erase(PN); in invalidateValue() 167 for (const PHINode &PN : BB.phis()) { in print() local 169 PN.printAsOperand(OS, false); in print() 171 unsigned int N = DepthMap.lookup(&PN); in print() 200 for (const PHINode &PN : BB.phis()) in run() local [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | PhiValues.cpp | 126 const PhiValues::ValueSet &PhiValues::getValuesForPhi(const PHINode *PN) { in getValuesForPhi() argument 127 unsigned int DepthNumber = DepthMap.lookup(PN); in getValuesForPhi() 130 processPhi(PN, Stack); in getValuesForPhi() 131 DepthNumber = DepthMap.lookup(PN); in getValuesForPhi() 147 if (const PHINode *PN = dyn_cast<PHINode>(V)) in invalidateValue() local 148 DepthMap.erase(PN); in invalidateValue() 168 for (const PHINode &PN : BB.phis()) { in print() local 170 PN.printAsOperand(OS, false); in print() 172 unsigned int N = DepthMap.lookup(&PN); in print() 201 for (const PHINode &PN : BB.phis()) in run() local [all …]
|
/external/llvm/lib/Analysis/ |
D | SparsePropagation.cpp | 230 void SparseSolver::visitPHINode(PHINode &PN) { in visitPHINode() argument 234 if (LatticeFunc->IsSpecialCasedPHI(&PN)) { in visitPHINode() 235 LatticeVal IV = LatticeFunc->ComputeInstructionState(PN, *this); in visitPHINode() 237 UpdateState(PN, IV); in visitPHINode() 241 LatticeVal PNIV = getOrInitValueState(&PN); in visitPHINode() 250 if (PN.getNumIncomingValues() > 64) { in visitPHINode() 251 UpdateState(PN, Overdefined); in visitPHINode() 258 for (unsigned i = 0, e = PN.getNumIncomingValues(); i != e; ++i) { in visitPHINode() 260 if (!isEdgeFeasible(PN.getIncomingBlock(i), PN.getParent(), true)) in visitPHINode() 264 LatticeVal OpVal = getOrInitValueState(PN.getIncomingValue(i)); in visitPHINode() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | BasicBlock.cpp | 342 while (PHINode *PN = dyn_cast<PHINode>(&front())) { in removePredecessor() local 344 PN->removeIncomingValue(Pred, !KeepOneInputPHIs); in removePredecessor() 348 if (PN->getIncomingValue(0) != PN) in removePredecessor() 349 PN->replaceAllUsesWith(PN->getIncomingValue(0)); in removePredecessor() 352 PN->replaceAllUsesWith(UndefValue::get(PN->getType())); in removePredecessor() 362 PHINode *PN; in removePredecessor() local 363 for (iterator II = begin(); (PN = dyn_cast<PHINode>(II)); ) { in removePredecessor() 365 PN->removeIncomingValue(Pred, false); in removePredecessor() 369 if (!KeepOneInputPHIs && (PNV = PN->hasConstantValue())) in removePredecessor() 370 if (PNV != PN) { in removePredecessor() [all …]
|
/external/llvm-project/llvm/lib/Target/AArch64/ |
D | SVEIntrinsicOpts.cpp | 105 auto *PN = dyn_cast<PHINode>(X->getArgOperand(0)); in processPhiNode() local 106 assert(PN && "Expected Phi Node!"); in processPhiNode() 109 if (!PN->hasOneUse()) in processPhiNode() 112 for (Value *IncValPhi : PN->incoming_values()) { in processPhiNode() 120 LLVMContext &Ctx = PN->getContext(); in processPhiNode() 122 Builder.SetInsertPoint(PN); in processPhiNode() 123 PHINode *NPN = Builder.CreatePHI(RequiredType, PN->getNumIncomingValues()); in processPhiNode() 124 Worklist.push_back(PN); in processPhiNode() 126 for (unsigned I = 0; I < PN->getNumIncomingValues(); I++) { in processPhiNode() 127 auto *Reinterpret = cast<Instruction>(PN->getIncomingValue(I)); in processPhiNode() [all …]
|
/external/llvm-project/llvm/lib/Transforms/ObjCARC/ |
D | ObjCARC.h | 72 void getEquivalentPHIs(PHINodeTy &PN, VectorTy &PHIList) { in getEquivalentPHIs() argument 73 auto *BB = PN.getParent(); in getEquivalentPHIs() 75 if (&P == &PN) // Do not add PN to the list. in getEquivalentPHIs() 77 unsigned I = 0, E = PN.getNumIncomingValues(); in getEquivalentPHIs() 79 auto *BB = PN.getIncomingBlock(I); in getEquivalentPHIs() 80 auto *PNOpnd = PN.getIncomingValue(I)->stripPointerCasts(); in getEquivalentPHIs()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/ObjCARC/ |
D | ObjCARC.h | 86 void getEquivalentPHIs(PHINodeTy &PN, VectorTy &PHIList) { in getEquivalentPHIs() argument 87 auto *BB = PN.getParent(); in getEquivalentPHIs() 89 if (&P == &PN) // Do not add PN to the list. in getEquivalentPHIs() 91 unsigned I = 0, E = PN.getNumIncomingValues(); in getEquivalentPHIs() 93 auto *BB = PN.getIncomingBlock(I); in getEquivalentPHIs() 94 auto *PNOpnd = PN.getIncomingValue(I)->stripPointerCasts(); in getEquivalentPHIs()
|