aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Optimizations/LevelChange.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Optimizations/LevelChange.h')
-rw-r--r--include/llvm/Optimizations/LevelChange.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/Optimizations/LevelChange.h b/include/llvm/Optimizations/LevelChange.h
index 745b893d84..2afbb390dc 100644
--- a/include/llvm/Optimizations/LevelChange.h
+++ b/include/llvm/Optimizations/LevelChange.h
@@ -9,6 +9,7 @@
#ifndef LLVM_OPT_LEVELCHANGE_H
#define LLVM_OPT_LEVELCHANGE_H
+#include "llvm/Transforms/Pass.h"
#include "llvm/Module.h"
#include "llvm/Method.h"
@@ -50,6 +51,13 @@ namespace opt {
return DoRaiseRepresentation(M, Level::Highest);
}
+ struct RaiseRepresentation : public StatelessPass<RaiseRepresentation> {
+ inline static bool doPerMethodWork(Method *M) {
+ return DoRaiseRepresentation(M);
+ }
+ };
+
+
// DoEliminateAuxillaryInductionVariables - Eliminate all aux indvars. This
// is one of the transformations performed by DoRaiseRepresentation, that
// converts all induction variables to reference a cannonical induction