diff options
author | Tobias Grosser <grosser@fim.uni-passau.de> | 2013-05-07 07:31:10 +0000 |
---|---|---|
committer | Tobias Grosser <grosser@fim.uni-passau.de> | 2013-05-07 07:31:10 +0000 |
commit | 637bd631237d5d08666341bf371a60af1c58ab96 (patch) | |
tree | 2a15cacc65175cd3effd678095056fd9889e62be /polly/lib/Pocc.cpp | |
parent | e602a07662a5b64fbbeb9af916d29956d330ad47 (diff) | |
download | bcm5719-llvm-637bd631237d5d08666341bf371a60af1c58ab96.tar.gz bcm5719-llvm-637bd631237d5d08666341bf371a60af1c58ab96.zip |
Move polly options into separate option category
Use the new cl::OptionCategory support to move the Polly options into a separate
option category. The aim is to hide most options and show by default only the
options a user needs to influence '-O3 -polly'. The available options probably
need some care, but here is the current status:
Polly Options:
Configure the polly loop optimizer
-enable-polly-openmp - Generate OpenMP parallel code
-polly - Enable the polly optimizer (only at -O3)
-polly-no-tiling - Disable tiling in the scheduler
-polly-only-func=<function-name> - Only run on a single function
-polly-report - Print information about the activities
of Polly
-polly-vectorizer - Select the vectorization strategy
=none - No Vectorization
=polly - Polly internal vectorizer
=unroll-only - Only grouped unroll the vectorize
candidate loops
=bb - The Basic Block vectorizer driven by
Polly
llvm-svn: 181295
Diffstat (limited to 'polly/lib/Pocc.cpp')
-rw-r--r-- | polly/lib/Pocc.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/polly/lib/Pocc.cpp b/polly/lib/Pocc.cpp index c81179a1b3a..8e0c91cb4d1 100644 --- a/polly/lib/Pocc.cpp +++ b/polly/lib/Pocc.cpp @@ -21,6 +21,7 @@ #ifdef SCOPLIB_FOUND #include "polly/CodeGen/CodeGeneration.h" #include "polly/Dependences.h" +#include "polly/Options.h" #include "polly/ScheduleOptimizer.h" #include "polly/ScopInfo.h" @@ -29,7 +30,6 @@ #include "llvm/Support/Path.h" #include "llvm/Support/Program.h" #include "llvm/Support/MemoryBuffer.h" -#include "llvm/Support/CommandLine.h" #include "llvm/Support/system_error.h" #include "llvm/ADT/OwningPtr.h" @@ -44,7 +44,8 @@ using namespace polly; static cl::opt<std::string> PlutoFuse("pluto-fuse", cl::desc(""), cl::Hidden, cl::value_desc("Set fuse mode of Pluto"), - cl::init("maxfuse")); + cl::init("maxfuse"), + cl::cat(PollyCategory)); namespace { |