diff options
author | Tobias Grosser <grosser@fim.uni-passau.de> | 2013-02-05 09:40:22 +0000 |
---|---|---|
committer | Tobias Grosser <grosser@fim.uni-passau.de> | 2013-02-05 09:40:22 +0000 |
commit | af3c00b87bcc4b877016c4a688607935f94d10b8 (patch) | |
tree | 107852dde7275b29abb7eba8b9c7fdae5e1caaa9 | |
parent | a885dbeb966bc33759b4f0fd89d7f73780a546b9 (diff) | |
download | bcm5719-llvm-af3c00b87bcc4b877016c4a688607935f94d10b8.tar.gz bcm5719-llvm-af3c00b87bcc4b877016c4a688607935f94d10b8.zip |
ScopDetection: clang-format some more code
llvm-svn: 174362
-rw-r--r-- | polly/lib/Analysis/ScopDetection.cpp | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/polly/lib/Analysis/ScopDetection.cpp b/polly/lib/Analysis/ScopDetection.cpp index be7feeef735..731bd933f48 100644 --- a/polly/lib/Analysis/ScopDetection.cpp +++ b/polly/lib/Analysis/ScopDetection.cpp @@ -70,9 +70,8 @@ using namespace llvm; using namespace polly; static cl::opt<std::string> -OnlyFunction("polly-detect-only", - cl::desc("Only detect scops in function"), cl::Hidden, - cl::value_desc("The function name to detect scops in"), +OnlyFunction("polly-detect-only", cl::desc("Only detect scops in function"), + cl::Hidden, cl::value_desc("The function name to detect scops in"), cl::ValueRequired, cl::init("")); static cl::opt<bool> @@ -81,8 +80,7 @@ IgnoreAliasing("polly-ignore-aliasing", cl::Hidden, cl::init(false)); static cl::opt<bool> -ReportLevel("polly-report", - cl::desc("Print information about Polly"), +ReportLevel("polly-report", cl::desc("Print information about Polly"), cl::Hidden, cl::init(false)); static cl::opt<bool> @@ -267,8 +265,8 @@ bool ScopDetection::isValidMemoryAccess(Instruction &Inst, // Check if the base pointer of the memory access does alias with // any other pointer. This cannot be handled at the moment. AliasSet &AS = - Context.AST.getAliasSetForPointer(BaseValue, AliasAnalysis::UnknownSize, - Inst.getMetadata(LLVMContext::MD_tbaa)); + Context.AST.getAliasSetForPointer(BaseValue, AliasAnalysis::UnknownSize, + Inst.getMetadata(LLVMContext::MD_tbaa)); // INVALID triggers an assertion in verifying mode, if it detects that a SCoP // was detected by SCoP detection and that this SCoP was invalidated by a pass @@ -291,7 +289,8 @@ bool ScopDetection::isValidMemoryAccess(Instruction &Inst, std::sort(Pointers.begin(), Pointers.end()); for (std::vector<Value*>::iterator PI = Pointers.begin(), - PE = Pointers.end();;) { + PE = Pointers.end(); + ;) { Value *V = *PI; if (V->getName().size() == 0) @@ -481,8 +480,9 @@ void ScopDetection::findScops(Region &R) { for (Region::iterator I = R.begin(), E = R.end(); I != E; ++I) ToExpand.push_back(*I); - for (std::vector<Region*>::iterator RI = ToExpand.begin(), - RE = ToExpand.end(); RI != RE; ++RI) { + for (std::vector<Region *>::iterator RI = ToExpand.begin(), + RE = ToExpand.end(); + RI != RE; ++RI) { Region *CurrentRegion = *RI; // Skip invalid regions. Regions may become invalid, if they are element of @@ -599,7 +599,7 @@ void ScopDetection::printLocations() { if (FileName.empty()) { outs() << "Scop detected at unknown location. Compile with debug info " - "(-g) to get more precise information. \n"; + "(-g) to get more precise information. \n"; return; } @@ -639,7 +639,8 @@ void polly::ScopDetection::verifyRegion(const Region &R) const { void polly::ScopDetection::verifyAnalysis() const { for (RegionSet::const_iterator I = ValidRegions.begin(), - E = ValidRegions.end(); I != E; ++I) + E = ValidRegions.end(); + I != E; ++I) verifyRegion(**I); } @@ -654,9 +655,10 @@ void ScopDetection::getAnalysisUsage(AnalysisUsage &AU) const { AU.setPreservesAll(); } -void ScopDetection::print(raw_ostream &OS, const Module *) const { +void ScopDetection::print(raw_ostream &OS, const Module *)const { for (RegionSet::const_iterator I = ValidRegions.begin(), - E = ValidRegions.end(); I != E; ++I) + E = ValidRegions.end(); + I != E; ++I) OS << "Valid Region for Scop: " << (*I)->getNameStr() << '\n'; OS << "\n"; |