/macosx-10.10.1/llvmCore-3425.0.34/lib/Transforms/InstCombine/ |
H A D | InstCombinePHI.cpp | 24 Instruction *InstCombiner::FoldPHIArgBinOpIntoPHI(PHINode &PN) { argument 25 Instruction *FirstInst = cast<Instruction>(PN.getIncomingValue(0)); 44 for (unsigned i = 1; i != PN.getNumIncomingValues(); ++i) { 45 Instruction *I = dyn_cast<Instruction>(PN.getIncomingValue(i)); 83 NewLHS = PHINode::Create(LHSType, PN.getNumIncomingValues(), 85 NewLHS->addIncoming(InLHS, PN.getIncomingBlock(0)); 86 InsertNewInstBefore(NewLHS, PN); 91 NewRHS = PHINode::Create(RHSType, PN.getNumIncomingValues(), 93 NewRHS->addIncoming(InRHS, PN.getIncomingBlock(0)); 94 InsertNewInstBefore(NewRHS, PN); 130 FoldPHIArgGEPIntoPHI(PHINode &PN) argument 287 FoldPHIArgLoadIntoPHI(PHINode &PN) argument 391 FoldPHIArgOpIntoPHI(PHINode &PN) argument 508 DeadPHICycle(PHINode *PN, SmallPtrSet<PHINode*, 16> &PotentiallyDeadPHIs) argument 530 PHIsEqualValue(PHINode *PN, Value *NonPhiInVal, SmallPtrSet<PHINode*, 16> &ValueEqualPHIs) argument 575 PHINode *PN; // The PHI that was lowered. member in struct:__anon10357::LoweredPHIRecord 636 PHINode *PN = PHIsToSlice[PHIId]; local 706 PHINode *PN = PHIsToSlice[PHIId]; local 794 visitPHINode(PHINode &PN) argument [all...] |
/macosx-10.10.1/llvmCore-3425.0.34/lib/VMCore/ |
H A D | BasicBlock.cpp | 250 while (PHINode *PN = dyn_cast<PHINode>(&front())) { 252 PN->removeIncomingValue(Pred, !DontDeleteUselessPHIs); 256 if (PN->getIncomingValue(0) != PN) 257 PN->replaceAllUsesWith(PN->getIncomingValue(0)); 260 PN->replaceAllUsesWith(UndefValue::get(PN->getType())); 270 PHINode *PN; local 271 for (iterator II = begin(); (PN 324 PHINode *PN; local 348 PHINode *PN = dyn_cast<PHINode>(II); local [all...] |
H A D | Dominators.cpp | 222 PHINode *PN = dyn_cast<PHINode>(UserInst); local 223 if (PN && PN->getParent() == BBE.getEnd() && 224 PN->getIncomingBlock(U) == BBE.getStart()) 230 if (PN) 231 UseBB = PN->getIncomingBlock(U); 246 if (PHINode *PN = dyn_cast<PHINode>(UserInst)) 247 UseBB = PN->getIncomingBlock(U); 297 if (PHINode *PN = dyn_cast<PHINode>(I)) 298 return isReachableFromEntry(PN [all...] |
/macosx-10.10.1/llvmCore-3425.0.34/lib/Transforms/Utils/ |
H A D | LoopSimplify.cpp | 266 PHINode *PN; local 268 (PN = dyn_cast<PHINode>(I++)); ) 269 if (Value *V = SimplifyInstruction(PN, 0, 0, DT)) { 270 if (AA) AA->deleteValue(PN); 271 if (SE) SE->forgetValue(PN); 272 PN->replaceAllUsesWith(V); 273 PN->eraseFromParent(); 464 PHINode *PN = cast<PHINode>(I); local 466 if (Value *V = SimplifyInstruction(PN, 0, 0, DT)) { 468 PN 549 PHINode *PN = FindPHIToPartitionLoops(L, DT, AA, LI); local 687 PHINode *PN = cast<PHINode>(I); local [all...] |
H A D | BasicBlockUtils.cpp | 77 while (PHINode *PN = dyn_cast<PHINode>(BB->begin())) { 78 if (PN->getIncomingValue(0) != PN) 79 PN->replaceAllUsesWith(PN->getIncomingValue(0)); 81 PN->replaceAllUsesWith(UndefValue::get(PN->getType())); 84 MemDep->removeInstruction(PN); // Memdep updates AA itself. 85 else if (AA && isa<PointerType>(PN->getType())) 86 AA->deleteValue(PN); 401 PHINode *PN = cast<PHINode>(I++); local 588 PHINode *PN = PHINode::Create(LPad->getType(), 2, "lpad.phi", LPad); local [all...] |
H A D | DemoteRegToStack.cpp | 43 if (PHINode *PN = dyn_cast<PHINode>(U)) { 54 for (unsigned i = 0, e = PN->getNumIncomingValues(); i != e; ++i) 55 if (PN->getIncomingValue(i) == &I) { 56 Value *&V = Loads[PN->getIncomingBlock(i)]; 60 PN->getIncomingBlock(i)->getTerminator()); 62 PN->setIncomingValue(i, V);
|
H A D | UnifyFunctionExitNodes.cpp | 94 PHINode *PN = 0; local 99 PN = PHINode::Create(F.getReturnType(), ReturningBlocks.size(), 101 NewRetBlock->getInstList().push_back(PN); 102 ReturnInst::Create(F.getContext(), PN, NewRetBlock); 114 if (PN) 115 PN->addIncoming(BB->getTerminator()->getOperand(0), BB);
|
H A D | LCSSA.cpp | 188 if (PHINode *PN = dyn_cast<PHINode>(U)) 189 UserBB = PN->getIncomingBlock(UI); 225 PHINode *PN = PHINode::Create(Inst->getType(), local 232 PN->addIncoming(Inst, *PI); 239 &PN->getOperandUse( 240 PN->getOperandNumForIncomingValue(PN->getNumIncomingValues()-1))); 243 AddedPHIs.push_back(PN); 246 SSAUpdate.AddAvailableValue(ExitBB, PN); 258 if (PHINode *PN [all...] |
H A D | Local.cpp | 375 bool llvm::RecursivelyDeleteDeadPHINode(PHINode *PN, argument 378 for (Instruction *I = PN; areAllUsesEqual(I) && !I->mayHaveSideEffects(); 459 while (PHINode *PN = dyn_cast<PHINode>(PhiIt)) { 463 if (!recursivelySimplifyInstruction(PN, TD)) 481 while (PHINode *PN = dyn_cast<PHINode>(DestBB->begin())) { 482 Value *NewVal = PN->getIncomingValue(0); 484 if (NewVal == PN) NewVal = UndefValue::get(PN->getType()); 485 PN->replaceAllUsesWith(NewVal); 486 PN 547 PHINode *PN = cast<PHINode>(I); local 640 PHINode *PN = cast<PHINode>(I); local [all...] |
H A D | BreakCriticalEdges.cpp | 134 PHINode *PN = dyn_cast<PHINode>(I); ++I) { 135 unsigned Idx = PN->getBasicBlockIndex(SplitBB); 136 Value *V = PN->getIncomingValue(Idx); 146 PHINode::Create(PN->getType(), Preds.size(), "split", 153 PN->setIncomingValue(Idx, NewPN); 213 PHINode *PN = cast<PHINode>(I); local 220 if (PN->getIncomingBlock(BBIdx) != TIBB) 221 BBIdx = PN->getBasicBlockIndex(TIBB); 222 PN->setIncomingBlock(BBIdx, NewBB); 263 if (PHINode *PN [all...] |
H A D | CloneFunction.cpp | 408 if (const PHINode *PN = dyn_cast<PHINode>(I)) 409 PHIToResolve.push_back(PN); 432 PHINode *PN = cast<PHINode>(VMap[OPN]); local 434 Value *V = VMap[PN->getIncomingBlock(pred)]; 436 Value *InVal = MapValue(PN->getIncomingValue(pred), 440 PN->setIncomingValue(pred, InVal); 441 PN->setIncomingBlock(pred, MappedBlock); 443 PN->removeIncomingValue(pred, false); 454 PHINode *PN = cast<PHINode>(NewBB->begin()); local 456 if (NumPreds != PN [all...] |
H A D | LoopUnrollRuntime.cpp | 71 PHINode *PN = dyn_cast<PHINode>(BBI); ++BBI) { 75 PHINode *NewPN = PHINode::Create(PN->getType(), 2, PN->getName()+".unr", 79 if (L->contains(PN)) { 80 NewPN->addIncoming(PN->getIncomingValueForBlock(NewPH), OrigPH); 82 NewPN->addIncoming(Constant::getNullValue(PN->getType()), OrigPH); 85 Value *V = PN->getIncomingValueForBlock(Latch); 98 if (L->contains(PN)) { 99 PN->setIncomingValue(PN [all...] |
H A D | CodeExtractor.cpp | 191 PHINode *PN = dyn_cast<PHINode>(Header->begin()); local 192 if (!PN) return; // No PHI nodes. 197 for (unsigned i = 0, e = PN->getNumIncomingValues(); i != e; ++i) 198 if (Blocks.count(PN->getIncomingBlock(i))) 231 PHINode *PN = cast<PHINode>(OldPred->begin()); local 234 for (unsigned i = 0, e = PN->getNumIncomingValues(); i != e; ++i) 235 if (Blocks.count(PN->getIncomingBlock(i))) { 236 TerminatorInst *TI = PN->getIncomingBlock(i)->getTerminator(); 243 PHINode *PN = cast<PHINode>(AfterPHIs); local 245 // from OldPred of PN 742 PHINode *PN = cast<PHINode>(I); local 755 PHINode *PN = cast<PHINode>(I); local [all...] |
H A D | LoopUnroll.cpp | 50 if (PHINode *PN = dyn_cast<PHINode>(I)) { 51 for (unsigned i = 0, e = PN->getNumIncomingValues(); i != e; ++i) { 52 ValueToValueMapTy::iterator It = VMap.find(PN->getIncomingBlock(i)); 54 PN->setIncomingBlock(i, cast<BasicBlock>(It->second)); 332 PHINode *PN = OrigPHINode[i]; local 334 PN->replaceAllUsesWith(PN->getIncomingValueForBlock(Preheader)); 335 Header->getInstList().erase(PN); 338 Value *InVal = PN->removeIncomingValue(LatchBlock, false); 346 PN [all...] |
H A D | SimplifyCFG.cpp | 124 PHINode *PN = cast<PHINode>(BBI); local 125 if (PN->getIncomingValueForBlock(SI1BB) != 126 PN->getIncomingValueForBlock(SI2BB)) 165 PHINode *PN = cast<PHINode>(BBI); local 166 if (PN->getIncomingValueForBlock(SI1BB) != Cond || 167 !isa<ConstantInt>(PN->getIncomingValueForBlock(SI2BB))) 169 PhiNodes.push_back(PN); 182 PHINode *PN; 184 (PN = dyn_cast<PHINode>(I)); ++I) 185 PN 1039 PHINode *PN; local 1135 PHINode *PN; local 1515 PHINode *PN = dyn_cast<PHINode>(BI->getCondition()); local 1609 FoldTwoEntryPHINode(PHINode *PN, const TargetData *TD) argument 1642 PHINode *PN = cast<PHINode>(II++); local 2363 PHINode *PN; local 2730 PHINode *PN = cast<PHINode>(BBI); local [all...] |
H A D | LowerSwitch.cpp | 207 PHINode* PN = cast<PHINode>(I); local 212 PN->removeIncomingValue(OrigBlock); 215 int BlockIdx = PN->getBasicBlockIndex(OrigBlock); 217 PN->setIncomingBlock((unsigned)BlockIdx, NewLeaf); 282 PHINode *PN = cast<PHINode>(I); local 283 int BlockIdx = PN->getBasicBlockIndex(OrigBlock); 285 PN->setIncomingBlock((unsigned)BlockIdx, NewDefault);
|
/macosx-10.10.1/tcl-105/tcl_ext/tkimg/tkimg/tests/visualtests/utils/ |
H A D | testReadWrite.tcl | 34 PN "File read 1: " 49 PN "[format "%.2f " [expr ($eTime - $sTime) / 1.0E3]]" 57 PN "File read 2: " 77 PN "[format "%.2f " [expr ($eTime - $sTime) / 1.0E3]]" 84 PN "Binary read 1: " 108 PN "[format "%.2f " [expr ($eTime - $sTime) / 1.0E3]]" 116 PN "Binary read 2: " 145 PN "[format "%.2f " [expr ($eTime - $sTime) / 1.0E3]]" 152 PN "String read: " 170 PN "[forma [all...] |
H A D | testUtil.tcl | 5 proc PN { str } { procedure
|
/macosx-10.10.1/llvmCore-3425.0.34/lib/Analysis/ |
H A D | SparsePropagation.cpp | 229 void SparseSolver::visitPHINode(PHINode &PN) { argument 233 if (LatticeFunc->IsSpecialCasedPHI(&PN)) { 234 LatticeVal IV = LatticeFunc->ComputeInstructionState(PN, *this); 236 UpdateState(PN, IV); 240 LatticeVal PNIV = getOrInitValueState(&PN); 249 if (PN.getNumIncomingValues() > 64) { 250 UpdateState(PN, Overdefined); 257 for (unsigned i = 0, e = PN.getNumIncomingValues(); i != e; ++i) { 259 if (!isEdgeFeasible(PN.getIncomingBlock(i), PN [all...] |
H A D | ScalarEvolutionNormalization.cpp | 47 PHINode *PN = dyn_cast<PHINode>(User); 48 if (!PN || !Operand) return false; // not a phi, not dominated by latch block. 53 for (unsigned i = 0, e = PN->getNumIncomingValues(); i != e; ++i) 54 if (PN->getIncomingValue(i) == Operand && 55 !DT->dominates(LatchBlock, PN->getIncomingBlock(i))) 58 // Okay, all uses of Operand by PN are in predecessor blocks that really are
|
/macosx-10.10.1/llvmCore-3425.0.34/lib/Transforms/Scalar/ |
H A D | CodeGenPrepare.cpp | 390 while (const PHINode *PN = dyn_cast<PHINode>(BBI++)) { 391 for (Value::const_use_iterator UI = PN->use_begin(), E = PN->use_end(); 432 while (const PHINode *PN = dyn_cast<PHINode>(BBI++)) { 433 const Value *V1 = PN->getIncomingValueForBlock(Pred); 434 const Value *V2 = PN->getIncomingValueForBlock(BB); 478 PHINode *PN; local 480 (PN = dyn_cast<PHINode>(BBI)); ++BBI) { 482 Value *InVal = PN->removeIncomingValue(BB, false); 490 PN 1320 PHINode *PN = PHINode::Create(SI->getType(), 2, "", NextBlock->begin()); local [all...] |
H A D | IndVarSimplify.cpp | 243 void IndVarSimplify::HandleFloatingPointIV(Loop *L, PHINode *PN) { argument 244 unsigned IncomingEdge = L->contains(PN->getIncomingBlock(0)); 249 dyn_cast<ConstantFP>(PN->getIncomingValue(IncomingEdge)); 255 // Check IV increment. Reject this PN if increment operation is not 258 dyn_cast<BinaryOperator>(PN->getIncomingValue(BackEdge)); 265 if (IncValueVal == 0 || Incr->getOperand(0) != PN || 269 // Check Incr uses. One user is PN and the other user is an exit condition 395 IntegerType *Int32Ty = Type::getInt32Ty(PN->getContext()); 398 PHINode *NewPHI = PHINode::Create(Int32Ty, 2, PN->getName()+".int", PN); 494 PHINode *PN = dyn_cast<PHINode>(ExitBB->begin()); local [all...] |
H A D | LoopRotation.cpp | 101 for (I = OrigHeader->begin(); PHINode *PN = dyn_cast<PHINode>(I); ++I) 102 PN->removeIncomingValue(PN->getBasicBlockIndex(OrigPreheader)); 324 for (; PHINode *PN = dyn_cast<PHINode>(I); ++I) 325 ValueMap[PN] = PN->getIncomingValueForBlock(OrigPreheader); 377 PHINode *PN = dyn_cast<PHINode>(BI); ++BI) 378 PN->addIncoming(PN->getIncomingValueForBlock(OrigHeader), OrigPreheader);
|
/macosx-10.10.1/llvmCore-3425.0.34/lib/CodeGen/SelectionDAG/ |
H A D | FunctionLoweringInfo.cpp | 159 const PHINode *PN = dyn_cast<PHINode>(I); ++I) { 160 if (PN->use_empty()) continue; 163 if (PN->getType()->isEmptyTy()) 166 DebugLoc DL = PN->getDebugLoc(); 167 unsigned PHIReg = ValueMap[PN]; 171 ComputeValueVTs(TLI, PN->getType(), ValueVTs); 265 void FunctionLoweringInfo::ComputePHILiveOutRegInfo(const PHINode *PN) { argument 266 Type *Ty = PN->getType(); 276 if (TLI.getNumRegisters(PN->getContext(), IntVT) != 1) 278 IntVT = TLI.getTypeToTransformTo(PN [all...] |
/macosx-10.10.1/llvmCore-3425.0.34/include/llvm/Analysis/ |
H A D | ScalarEvolutionExpander.h | 186 void setChainedPhi(PHINode *PN) { ChainedPhis.insert(PN); } argument 255 bool isNormalAddRecExprPHI(PHINode *PN, Instruction *IncV, const Loop *L); 257 bool isExpandedAddRecExprPHI(PHINode *PN, Instruction *IncV, const Loop *L); 264 Value *expandIVInc(PHINode *PN, Value *StepV, const Loop *L,
|