diff options
author | Chris Lattner <sabre@nondot.org> | 2003-09-20 14:39:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-09-20 14:39:18 +0000 |
commit | 5dac64f6297e679a7cbbe2ae01b4160bb9db60b1 (patch) | |
tree | d535c05b0364b360cc3822368d8a814c0893eddb /llvm/lib/Transforms | |
parent | 21f750fabb16cfa94b81000a2c298daf7ed53428 (diff) | |
download | bcm5719-llvm-5dac64f6297e679a7cbbe2ae01b4160bb9db60b1.tar.gz bcm5719-llvm-5dac64f6297e679a7cbbe2ae01b4160bb9db60b1.zip |
Rename Function::getEntryNode -> getEntryBlock
llvm-svn: 8625
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/IPO/LowerSetJmp.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/TraceValues.cpp | 4 | ||||
-rw-r--r-- | llvm/lib/Transforms/Scalar/ADCE.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Transforms/Scalar/Mem2Reg.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp | 4 | ||||
-rw-r--r-- | llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp | 2 |
8 files changed, 10 insertions, 10 deletions
diff --git a/llvm/lib/Transforms/IPO/LowerSetJmp.cpp b/llvm/lib/Transforms/IPO/LowerSetJmp.cpp index fc9af5bc57f..d6c02569a73 100644 --- a/llvm/lib/Transforms/IPO/LowerSetJmp.cpp +++ b/llvm/lib/Transforms/IPO/LowerSetJmp.cpp @@ -268,7 +268,7 @@ AllocaInst* LowerSetJmp::GetSetJmpMap(Function* Func) // Insert the setjmp map initialization before the first instruction in // the function. - Instruction* Inst = Func->getEntryNode().begin(); + Instruction* Inst = Func->getEntryBlock().begin(); assert(Inst && "Couldn't find even ONE instruction in entry block!"); // Fill in the alloca and call to initialize the SJ map. diff --git a/llvm/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp b/llvm/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp index e94f0b7876e..aa46048ae03 100644 --- a/llvm/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp +++ b/llvm/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp @@ -228,7 +228,7 @@ bool ProfilePaths::runOnFunction(Function &F){ // insert initialization code in first (entry) BB // this includes initializing r and count - insertInTopBB(&F.getEntryNode(),numPaths, rVar, threshold); + insertInTopBB(&F.getEntryBlock(), numPaths, rVar, threshold); //now process the graph: get path numbers, //get increments along different paths, diff --git a/llvm/lib/Transforms/Instrumentation/TraceValues.cpp b/llvm/lib/Transforms/Instrumentation/TraceValues.cpp index 375a45d69a1..45799727c3f 100644 --- a/llvm/lib/Transforms/Instrumentation/TraceValues.cpp +++ b/llvm/lib/Transforms/Instrumentation/TraceValues.cpp @@ -348,7 +348,7 @@ static void TraceValuesAtBBExit(BasicBlock *BB, static inline void InsertCodeToShowFunctionEntry(Function &F, Function *Printf, Function* HashPtrToSeqNum){ // Get an iterator to point to the insertion location - BasicBlock &BB = F.getEntryNode(); + BasicBlock &BB = F.getEntryBlock(); Instruction *InsertPos = BB.begin(); std::ostringstream OutStr; @@ -398,7 +398,7 @@ bool InsertTraceCode::runOnFunction(Function &F) { // Push a pointer set for recording alloca'd pointers at entry. if (!DisablePtrHashing) new CallInst(externalFuncs.PushOnEntryFunc, vector<Value*>(), "", - F.getEntryNode().begin()); + F.getEntryBlock().begin()); for (Function::iterator BB = F.begin(); BB != F.end(); ++BB) { if (isa<ReturnInst>(BB->getTerminator())) diff --git a/llvm/lib/Transforms/Scalar/ADCE.cpp b/llvm/lib/Transforms/Scalar/ADCE.cpp index 897e2093fcd..8d716054060 100644 --- a/llvm/lib/Transforms/Scalar/ADCE.cpp +++ b/llvm/lib/Transforms/Scalar/ADCE.cpp @@ -195,7 +195,7 @@ bool ADCE::doADCE() { // transformations safely. // PostDominatorTree &DT = getAnalysis<PostDominatorTree>(); - if (DT[&Func->getEntryNode()] == 0) { + if (DT[&Func->getEntryBlock()] == 0) { WorkList.clear(); return MadeChanges; } diff --git a/llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp b/llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp index 545c256d454..6003c81278d 100644 --- a/llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp +++ b/llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp @@ -291,7 +291,7 @@ bool CEE::runOnFunction(Function &F) { DT = &getAnalysis<DominatorTree>(); std::set<BasicBlock*> VisitedBlocks; - bool Changed = TransformRegion(&F.getEntryNode(), VisitedBlocks); + bool Changed = TransformRegion(&F.getEntryBlock(), VisitedBlocks); RegionInfoMap.clear(); RankMap.clear(); diff --git a/llvm/lib/Transforms/Scalar/Mem2Reg.cpp b/llvm/lib/Transforms/Scalar/Mem2Reg.cpp index b731ab1a4f7..16d05d8213d 100644 --- a/llvm/lib/Transforms/Scalar/Mem2Reg.cpp +++ b/llvm/lib/Transforms/Scalar/Mem2Reg.cpp @@ -38,7 +38,7 @@ bool PromotePass::runOnFunction(Function &F) { std::vector<AllocaInst*> Allocas; const TargetData &TD = getAnalysis<TargetData>(); - BasicBlock &BB = F.getEntryNode(); // Get the entry node for the function + BasicBlock &BB = F.getEntryBlock(); // Get the entry node for the function bool Changed = false; diff --git a/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp b/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp index 2a6bddfb325..adcbaffac00 100644 --- a/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp +++ b/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp @@ -75,7 +75,7 @@ bool SROA::performPromotion(Function &F) { std::vector<AllocaInst*> Allocas; const TargetData &TD = getAnalysis<TargetData>(); - BasicBlock &BB = F.getEntryNode(); // Get the entry node for the function + BasicBlock &BB = F.getEntryBlock(); // Get the entry node for the function bool Changed = false; @@ -108,7 +108,7 @@ bool SROA::performScalarRepl(Function &F) { std::vector<AllocationInst*> WorkList; // Scan the entry basic block, adding any alloca's and mallocs to the worklist - BasicBlock &BB = F.getEntryNode(); + BasicBlock &BB = F.getEntryBlock(); for (BasicBlock::iterator I = BB.begin(), E = BB.end(); I != E; ++I) if (AllocationInst *A = dyn_cast<AllocationInst>(I)) WorkList.push_back(A); diff --git a/llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp b/llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp index c8ac4c5ff77..447c0ae849e 100644 --- a/llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp +++ b/llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp @@ -62,7 +62,7 @@ bool TailCallElim::runOnFunction(Function &F) { // Ok, so this is the first tail call we have found in this // function. Insert a new entry block into the function, allowing // us to branch back to the old entry block. - OldEntry = &F.getEntryNode(); + OldEntry = &F.getEntryBlock(); BasicBlock *NewEntry = new BasicBlock("tailrecurse", OldEntry); NewEntry->getInstList().push_back(new BranchInst(OldEntry)); |