diff options
author | Chris Lattner <sabre@nondot.org> | 2002-06-25 16:12:52 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-06-25 16:12:52 +0000 |
commit | 18961504fc2b299578dba817900a0696cf3ccc4d (patch) | |
tree | c34853ffc064b841932d0897e25305c81c3a7338 /include/llvm/Transforms | |
parent | a2204e1ff25265a1da00ecbb3ebb22c05acf7194 (diff) | |
download | external_llvm-18961504fc2b299578dba817900a0696cf3ccc4d.zip external_llvm-18961504fc2b299578dba817900a0696cf3ccc4d.tar.gz external_llvm-18961504fc2b299578dba817900a0696cf3ccc4d.tar.bz2 |
*** empty log message ***
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2777 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms')
-rw-r--r-- | include/llvm/Transforms/FunctionInlining.h | 2 | ||||
-rw-r--r-- | include/llvm/Transforms/IPO/ConstantMerge.h | 5 | ||||
-rw-r--r-- | include/llvm/Transforms/Utils/BasicBlockUtils.h | 8 | ||||
-rw-r--r-- | include/llvm/Transforms/Utils/Local.h | 7 | ||||
-rw-r--r-- | include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h | 2 |
5 files changed, 4 insertions, 20 deletions
diff --git a/include/llvm/Transforms/FunctionInlining.h b/include/llvm/Transforms/FunctionInlining.h index 08fe9d9..e68b081 100644 --- a/include/llvm/Transforms/FunctionInlining.h +++ b/include/llvm/Transforms/FunctionInlining.h @@ -7,7 +7,6 @@ #ifndef LLVM_TRANSFORMS_FUNCTION_INLINING_H #define LLVM_TRANSFORMS_FUNCTION_INLINING_H -#include "llvm/BasicBlock.h" class CallInst; class Pass; @@ -24,6 +23,5 @@ Pass *createFunctionInliningPass(); // function by one level. // bool InlineFunction(CallInst *C); -bool InlineFunction(BasicBlock::iterator CI); // *CI must be CallInst #endif diff --git a/include/llvm/Transforms/IPO/ConstantMerge.h b/include/llvm/Transforms/IPO/ConstantMerge.h index b25fb66..1415339 100644 --- a/include/llvm/Transforms/IPO/ConstantMerge.h +++ b/include/llvm/Transforms/IPO/ConstantMerge.h @@ -8,10 +8,6 @@ // Algorithm: ConstantMerge is designed to build up a map of available constants // and elminate duplicates when it is initialized. // -// The DynamicConstantMerge method is a superset of the ConstantMerge algorithm -// that checks for each method to see if constants have been added to the -// constant pool since it was last run... if so, it processes them. -// //===----------------------------------------------------------------------===// #ifndef LLVM_TRANSFORMS_CONSTANTMERGE_H @@ -19,6 +15,5 @@ class Pass; Pass *createConstantMergePass(); -Pass *createDynamicConstantMergePass(); #endif diff --git a/include/llvm/Transforms/Utils/BasicBlockUtils.h b/include/llvm/Transforms/Utils/BasicBlockUtils.h index 08d173d..282be5e 100644 --- a/include/llvm/Transforms/Utils/BasicBlockUtils.h +++ b/include/llvm/Transforms/Utils/BasicBlockUtils.h @@ -34,12 +34,4 @@ void ReplaceInstWithInst(BasicBlock::InstListType &BIL, // void ReplaceInstWithInst(Instruction *From, Instruction *To); -// InsertInstBeforeInst - Insert 'NewInst' into the basic block that 'Existing' -// is already in, and put it right before 'Existing'. This instruction should -// only be used when there is no iterator to Existing already around. The -// returned iterator points to the new instruction. -// -BasicBlock::iterator InsertInstBeforeInst(Instruction *NewInst, - Instruction *Existing); - #endif diff --git a/include/llvm/Transforms/Utils/Local.h b/include/llvm/Transforms/Utils/Local.h index 69bb5a66..95aaffd 100644 --- a/include/llvm/Transforms/Utils/Local.h +++ b/include/llvm/Transforms/Utils/Local.h @@ -52,12 +52,11 @@ bool dceInstruction(BasicBlock::iterator &BBI); // SimplifyCFG - This function is used to do simplification of a CFG. For // example, it adjusts branches to branches to eliminate the extra hop, it // eliminates unreachable basic blocks, and does other "peephole" optimization -// of the CFG. It returns true if a modification was made, and returns an -// iterator that designates the first element remaining after the block that -// was deleted. +// of the CFG. It returns true if a modification was made, possibly deleting +// the basic block that was pointed to. // // WARNING: The entry node of a method may not be simplified. // -bool SimplifyCFG(Function::iterator &BBIt); +bool SimplifyCFG(BasicBlock *BB); #endif diff --git a/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h b/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h index 0d54aca..042a419 100644 --- a/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h +++ b/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h @@ -23,7 +23,7 @@ public: BasicBlock *getExitNode() const { return ExitNode; } virtual const char *getPassName() const { return "Unify Function Exit Nodes";} - virtual bool runOnFunction(Function *F); + virtual bool runOnFunction(Function &F); virtual void getAnalysisUsage(AnalysisUsage &AU) const { AU.addProvided(ID); } }; |