[polly] r174362 - ScopDetection: clang-format some more code

Tobias Grosser grosser at fim.uni-passau.de
Tue Feb 5 01:40:22 PST 2013


Author: grosser
Date: Tue Feb  5 03:40:22 2013
New Revision: 174362

URL: http://llvm.org/viewvc/llvm-project?rev=174362&view=rev
Log:
ScopDetection: clang-format some more code

Modified:
    polly/trunk/lib/Analysis/ScopDetection.cpp

Modified: polly/trunk/lib/Analysis/ScopDetection.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopDetection.cpp?rev=174362&r1=174361&r2=174362&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopDetection.cpp (original)
+++ polly/trunk/lib/Analysis/ScopDetection.cpp Tue Feb  5 03:40:22 2013
@@ -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(
   // 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(
     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(
 
 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(Ana
   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";





More information about the llvm-commits mailing list