diff options
-rw-r--r-- | include/llvm/Transforms/IPO.h | 14 |
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. // |