diff --git a/polly/lib/Support/RegisterPasses.cpp b/polly/lib/Support/RegisterPasses.cpp --- a/polly/lib/Support/RegisterPasses.cpp +++ b/polly/lib/Support/RegisterPasses.cpp @@ -48,12 +48,10 @@ #include "llvm/Transforms/IPO.h" #include "llvm/Transforms/IPO/PassManagerBuilder.h" -using namespace llvm; -using namespace polly; - cl::OptionCategory PollyCategory("Polly Options", "Configure the polly loop optimizer"); +namespace polly { static cl::opt PollyEnabled("polly", cl::desc("Enable the polly optimizer (with -O1, -O2 or -O3)"), @@ -112,17 +110,17 @@ ), cl::init(TARGET_CPU), cl::ZeroOrMore, cl::cat(PollyCategory)); -VectorizerChoice polly::PollyVectorizerChoice; -static cl::opt Vectorizer( +VectorizerChoice PollyVectorizerChoice; + +static cl::opt Vectorizer( "polly-vectorizer", cl::desc("Select the vectorization strategy"), cl::values( - clEnumValN(polly::VECTORIZER_NONE, "none", "No Vectorization"), - clEnumValN(polly::VECTORIZER_POLLY, "polly", - "Polly internal vectorizer"), + clEnumValN(VECTORIZER_NONE, "none", "No Vectorization"), + clEnumValN(VECTORIZER_POLLY, "polly", "Polly internal vectorizer"), clEnumValN( - polly::VECTORIZER_STRIPMINE, "stripmine", + VECTORIZER_STRIPMINE, "stripmine", "Strip-mine outer loops for the loop-vectorizer to trigger")), - cl::location(PollyVectorizerChoice), cl::init(polly::VECTORIZER_NONE), + cl::location(PollyVectorizerChoice), cl::init(VECTORIZER_NONE), cl::ZeroOrMore, cl::cat(PollyCategory)); static cl::opt ImportJScop( @@ -237,7 +235,6 @@ static StaticInitializer InitializeEverything; } // end of anonymous namespace. -namespace polly { void initializePollyPasses(PassRegistry &Registry) { initializeCodeGenerationPass(Registry);