summaryrefslogtreecommitdiffstats
path: root/include/llvm/Transforms/IPO
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-01-30 23:29:35 +0000
committerChris Lattner <sabre@nondot.org>2002-01-30 23:29:35 +0000
commit967a04442d92f224911eb65b4c06102048f318c2 (patch)
treea4cbe8ad2490fd3bf9ad319a14e14db94e753482 /include/llvm/Transforms/IPO
parentfacd752d3afaeca7dee46648f2a2ae209a94e5e9 (diff)
downloadexternal_llvm-967a04442d92f224911eb65b4c06102048f318c2.zip
external_llvm-967a04442d92f224911eb65b4c06102048f318c2.tar.gz
external_llvm-967a04442d92f224911eb65b4c06102048f318c2.tar.bz2
Convert xforms over to use new pass structure
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1596 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms/IPO')
-rw-r--r--include/llvm/Transforms/IPO/ConstantMerge.h1
-rw-r--r--include/llvm/Transforms/IPO/GlobalDCE.h8
-rw-r--r--include/llvm/Transforms/IPO/SimpleStructMutation.h9
3 files changed, 16 insertions, 2 deletions
diff --git a/include/llvm/Transforms/IPO/ConstantMerge.h b/include/llvm/Transforms/IPO/ConstantMerge.h
index 54f699a..efc91f4 100644
--- a/include/llvm/Transforms/IPO/ConstantMerge.h
+++ b/include/llvm/Transforms/IPO/ConstantMerge.h
@@ -18,7 +18,6 @@
#define LLVM_TRANSFORMS_CONSTANTMERGE_H
#include "llvm/Pass.h"
-#include <map>
class Constant;
class GlobalVariable;
diff --git a/include/llvm/Transforms/IPO/GlobalDCE.h b/include/llvm/Transforms/IPO/GlobalDCE.h
index c4c7447..497416c 100644
--- a/include/llvm/Transforms/IPO/GlobalDCE.h
+++ b/include/llvm/Transforms/IPO/GlobalDCE.h
@@ -18,6 +18,14 @@ struct GlobalDCE : public Pass {
// the specified callgraph to reflect the changes.
//
bool run(Module *M);
+
+ // getAnalysisUsageInfo - This function works on the call graph of a module.
+ // It is capable of updating the call graph to reflect the new state of the
+ // module.
+ //
+ virtual void getAnalysisUsageInfo(Pass::AnalysisSet &Required,
+ Pass::AnalysisSet &Destroyed,
+ Pass::AnalysisSet &Provided);
};
#endif
diff --git a/include/llvm/Transforms/IPO/SimpleStructMutation.h b/include/llvm/Transforms/IPO/SimpleStructMutation.h
index 49c34e3..f159c4d 100644
--- a/include/llvm/Transforms/IPO/SimpleStructMutation.h
+++ b/include/llvm/Transforms/IPO/SimpleStructMutation.h
@@ -23,8 +23,15 @@ public:
return Changed;
}
+ // getAnalysisUsageInfo - This function needs the results of the
+ // FindUsedTypes and FindUnsafePointerTypes analysis passes...
+ //
+ virtual void getAnalysisUsageInfo(Pass::AnalysisSet &Required,
+ Pass::AnalysisSet &Destroyed,
+ Pass::AnalysisSet &Provided);
+
private:
- static TransformsType getTransforms(Module *M, enum Transform);
+ TransformsType getTransforms(Module *M, enum Transform);
};
#endif