aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-07-23 19:56:27 +0000
committerChris Lattner <sabre@nondot.org>2002-07-23 19:56:27 +0000
commit5c5db0eeb4e57b6d576e6a428bddf8a2ecf1ebf1 (patch)
tree4936e4380622b169c54b1686a010bd0aeb3e5a5a
parent28fe8ce18f7db33a8dc2b47ad07e6e0da491710f (diff)
* Rename to IPO.h
* Add ConstantMerge.h contents git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3032 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Transforms/IPO.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/include/llvm/Transforms/IPO.h b/include/llvm/Transforms/IPO.h
index ab85ea68f5..70b5d8aaef 100644
--- a/include/llvm/Transforms/IPO.h
+++ b/include/llvm/Transforms/IPO.h
@@ -1,5 +1,7 @@
-//===- llvm/Transforms/IPO.h - Interprocedural Optimiations -----*- C++ -*-===//
+//===- llvm/Transforms/IPO.h - Interprocedural Transformations --*- C++ -*-===//
//
+// This header file defines prototypes for accessor functions that expose passes
+// in the IPO transformations library.
//
//===----------------------------------------------------------------------===//
@@ -9,6 +11,16 @@
class Pass;
//===----------------------------------------------------------------------===//
+// createConstantMergePass - This function returns a new pass that merges
+// duplicate global constants together into a single constant that is shared.
+// This is useful because some passes (ie TraceValues) insert a lot of string
+// constants into the program, regardless of whether or not they duplicate an
+// existing string.
+//
+Pass *createConstantMergePass();
+
+
+//===----------------------------------------------------------------------===//
// createDeadTypeEliminationPass - Return a new pass that eliminates symbol
// table entries for types that are never used.
//