[llvm-commits] CVS: llvm/include/llvm/PassManagers.h
Devang Patel
dpatel at apple.com
Mon Mar 5 12:01:57 PST 2007
Changes in directory llvm/include/llvm:
PassManagers.h updated: 1.10 -> 1.11
---
Log message:
Avoid constructing std::strings unless pass debugging is ON.
---
Diffs of the changes: (+15 -2)
PassManagers.h | 17 +++++++++++++++--
1 files changed, 15 insertions(+), 2 deletions(-)
Index: llvm/include/llvm/PassManagers.h
diff -u llvm/include/llvm/PassManagers.h:1.10 llvm/include/llvm/PassManagers.h:1.11
--- llvm/include/llvm/PassManagers.h:1.10 Tue Feb 27 09:00:39 2007
+++ llvm/include/llvm/PassManagers.h Mon Mar 5 14:01:30 2007
@@ -93,6 +93,18 @@
TLM_Pass // PassManager
};
+// enums for debugging strings
+enum PassDebuggingString {
+ EXECUTION_MSG, // "Executing Pass '"
+ MODIFICATION_MSG, // "' Made Modification '"
+ FREEING_MSG, // " Freeing Pass '"
+ ON_BASICBLOCK_MSG, // "' on BasicBlock '" + PassName + "'...\n"
+ ON_FUNCTION_MSG, // "' on Function '" + FunctionName + "'...\n"
+ ON_MODULE_MSG, // "' on Module '" + ModuleName + "'...\n"
+ ON_LOOP_MSG, // " 'on Loop ...\n'"
+ ON_CG_MSG // "' on Call Graph ...\n'"
+};
+
//===----------------------------------------------------------------------===//
// PMTopLevelManager
//
@@ -202,7 +214,7 @@
void removeNotPreservedAnalysis(Pass *P);
/// Remove dead passes
- void removeDeadPasses(Pass *P, std::string &Msg);
+ void removeDeadPasses(Pass *P, std::string Msg, enum PassDebuggingString);
/// Add pass P into the PassVector. Update
/// AvailableAnalysis appropriately if ProcessAnalysis is true.
@@ -238,7 +250,8 @@
// Print routines used by debug-pass
void dumpLastUses(Pass *P, unsigned Offset) const;
void dumpPassArguments() const;
- void dumpPassInfo(Pass *P, std::string &Msg1, std::string &Msg2) const;
+ void dumpPassInfo(Pass *P, enum PassDebuggingString S1,
+ enum PassDebuggingString S2, std::string Msg);
void dumpAnalysisSetInfo(const char *Msg, Pass *P,
const std::vector<AnalysisID> &Set) const;
More information about the llvm-commits
mailing list