From 64e8e37dee803b140b3eabeb898628fc3cf38d4c Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Thu, 13 Mar 2014 23:37:43 +0000 Subject: Allow several polly command line options to be provided multiple times Contributed-by: Sam Novak llvm-svn: 203869 --- polly/lib/Analysis/ScopDetection.cpp | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'polly/lib/Analysis/ScopDetection.cpp') diff --git a/polly/lib/Analysis/ScopDetection.cpp b/polly/lib/Analysis/ScopDetection.cpp index 513e970f03b..620793dc11b 100644 --- a/polly/lib/Analysis/ScopDetection.cpp +++ b/polly/lib/Analysis/ScopDetection.cpp @@ -72,12 +72,14 @@ using namespace polly; static cl::opt DetectScopsWithoutLoops("polly-detect-scops-in-functions-without-loops", cl::desc("Detect scops in functions without loops"), - cl::Hidden, cl::init(false), cl::cat(PollyCategory)); + cl::Hidden, cl::init(false), cl::ZeroOrMore, + cl::cat(PollyCategory)); static cl::opt DetectRegionsWithoutLoops("polly-detect-scops-in-regions-without-loops", cl::desc("Detect scops in regions without loops"), - cl::Hidden, cl::init(false), cl::cat(PollyCategory)); + cl::Hidden, cl::init(false), cl::ZeroOrMore, + cl::cat(PollyCategory)); static cl::opt OnlyFunction("polly-only-func", cl::desc("Only run on a single function"), @@ -94,28 +96,31 @@ OnlyRegion("polly-only-region", static cl::opt IgnoreAliasing("polly-ignore-aliasing", cl::desc("Ignore possible aliasing of the array bases"), - cl::Hidden, cl::init(false), cl::cat(PollyCategory)); + cl::Hidden, cl::init(false), cl::ZeroOrMore, + cl::cat(PollyCategory)); static cl::opt ReportLevel("polly-report", cl::desc("Print information about the activities of Polly"), - cl::init(false), cl::cat(PollyCategory)); + cl::init(false), cl::ZeroOrMore, cl::cat(PollyCategory)); static cl::opt AllowNonAffine("polly-allow-nonaffine", cl::desc("Allow non affine access functions in arrays"), - cl::Hidden, cl::init(false), cl::cat(PollyCategory)); + cl::Hidden, cl::init(false), cl::ZeroOrMore, + cl::cat(PollyCategory)); static cl::opt TrackFailures("polly-detect-track-failures", cl::desc("Track failure strings in detecting scop regions"), - cl::location(PollyTrackFailures), cl::Hidden, cl::init(false), - cl::cat(PollyCategory)); + cl::location(PollyTrackFailures), cl::Hidden, cl::ZeroOrMore, + cl::init(false), cl::cat(PollyCategory)); static cl::opt VerifyScops("polly-detect-verify", cl::desc("Verify the detected SCoPs after each transformation"), - cl::Hidden, cl::init(false), cl::cat(PollyCategory)); + cl::Hidden, cl::init(false), cl::ZeroOrMore, + cl::cat(PollyCategory)); bool polly::PollyTrackFailures = false; -- cgit v1.2.3