diff options
author | Chris Lattner <sabre@nondot.org> | 2002-01-21 07:31:50 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-01-21 07:31:50 +0000 |
commit | f4de63f65fa995e68e3cd268117ab065068be413 (patch) | |
tree | 2fd8cd44af0f23dafd94102c1c0152b1cd82fe4d /lib/Analysis/IPA | |
parent | aff5bcebb7fb9880e0a3518a8e7c999e738d531c (diff) | |
download | external_llvm-f4de63f65fa995e68e3cd268117ab065068be413.zip external_llvm-f4de63f65fa995e68e3cd268117ab065068be413.tar.gz external_llvm-f4de63f65fa995e68e3cd268117ab065068be413.tar.bz2 |
Implement a more powerful, simpler, pass system. This pass system can figure
out how to run a collection of passes optimially given their behaviors and
charactaristics.
Convert code to use it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1507 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/IPA')
-rw-r--r-- | lib/Analysis/IPA/FindUnsafePointerTypes.cpp | 4 | ||||
-rw-r--r-- | lib/Analysis/IPA/FindUsedTypes.cpp | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/Analysis/IPA/FindUnsafePointerTypes.cpp b/lib/Analysis/IPA/FindUnsafePointerTypes.cpp index 1058e6e..85b5da8 100644 --- a/lib/Analysis/IPA/FindUnsafePointerTypes.cpp +++ b/lib/Analysis/IPA/FindUnsafePointerTypes.cpp @@ -45,11 +45,11 @@ static inline bool isSafeInstruction(const Instruction *I) { } -// doPerMethodWork - Inspect the operations that the specified method does on +// runOnMethod - Inspect the operations that the specified method does on // values of various types. If they are deemed to be 'unsafe' note that the // type is not safe to transform. // -bool FindUnsafePointerTypes::doPerMethodWork(Method *Meth) { +bool FindUnsafePointerTypes::runOnMethod(Method *Meth) { const Method *M = Meth; // We don't need/want write access for (Method::const_inst_iterator I = M->inst_begin(), E = M->inst_end(); I != E; ++I) { diff --git a/lib/Analysis/IPA/FindUsedTypes.cpp b/lib/Analysis/IPA/FindUsedTypes.cpp index 1d98983..c439407 100644 --- a/lib/Analysis/IPA/FindUsedTypes.cpp +++ b/lib/Analysis/IPA/FindUsedTypes.cpp @@ -35,10 +35,10 @@ void FindUsedTypes::IncorporateSymbolTable(const SymbolTable *ST) { } -// doPassInitialization - This loops over global constants defined in the +// doInitialization - This loops over global constants defined in the // module, converting them to their new type. // -bool FindUsedTypes::doPassInitialization(Module *m) { +bool FindUsedTypes::doInitialization(Module *m) { const Module *M = m; if (IncludeSymbolTables && M->hasSymbolTable()) IncorporateSymbolTable(M->getSymbolTable()); // Add symtab first... @@ -51,7 +51,7 @@ bool FindUsedTypes::doPassInitialization(Module *m) { // doPerMethodWork - This incorporates all types used by the specified method // -bool FindUsedTypes::doPerMethodWork(Method *m) { +bool FindUsedTypes::runOnMethod(Method *m) { const Method *M = m; if (IncludeSymbolTables && M->hasSymbolTable()) IncorporateSymbolTable(M->getSymbolTable()); // Add symtab first... |