[llvm-commits] [polly] r144902 - in /polly/trunk/lib: Analysis/Dependences.cpp Analysis/ScopGraphPrinter.cpp Analysis/ScopInfo.cpp Cloog.cpp CodeGeneration.cpp Exchange/OpenScopExporter.cpp IndependentBlocks.cpp Support/SCEVValidator.cpp Support/ScopHelper.cpp

Tobias Grosser grosser at fim.uni-passau.de
Thu Nov 17 04:56:10 PST 2011


Author: grosser
Date: Thu Nov 17 06:56:10 2011
New Revision: 144902

URL: http://llvm.org/viewvc/llvm-project?rev=144902&view=rev
Log:
Fix placement of the '*' that marks a pointer

Suggested by Sebastian Pop.

Modified:
    polly/trunk/lib/Analysis/Dependences.cpp
    polly/trunk/lib/Analysis/ScopGraphPrinter.cpp
    polly/trunk/lib/Analysis/ScopInfo.cpp
    polly/trunk/lib/Cloog.cpp
    polly/trunk/lib/CodeGeneration.cpp
    polly/trunk/lib/Exchange/OpenScopExporter.cpp
    polly/trunk/lib/IndependentBlocks.cpp
    polly/trunk/lib/Support/SCEVValidator.cpp
    polly/trunk/lib/Support/ScopHelper.cpp

Modified: polly/trunk/lib/Analysis/Dependences.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/Dependences.cpp?rev=144902&r1=144901&r2=144902&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/Dependences.cpp (original)
+++ polly/trunk/lib/Analysis/Dependences.cpp Thu Nov 17 06:56:10 2011
@@ -235,7 +235,7 @@
   return isValid;
 }
 
-isl_union_map* getCombinedScheduleForSpace(Scop *scop, unsigned dimLevel) {
+isl_union_map *getCombinedScheduleForSpace(Scop *scop, unsigned dimLevel) {
   isl_space *Space = scop->getParamSpace();
   isl_union_map *schedule = isl_union_map_empty(Space);
 
@@ -454,6 +454,6 @@
 INITIALIZE_PASS_END(Dependences, "polly-dependences",
                     "Polly - Calculate dependences", false, false)
 
-Pass* polly::createDependencesPass() {
+Pass *polly::createDependencesPass() {
   return new Dependences();
 }

Modified: polly/trunk/lib/Analysis/ScopGraphPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopGraphPrinter.cpp?rev=144902&r1=144901&r2=144902&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopGraphPrinter.cpp (original)
+++ polly/trunk/lib/Analysis/ScopGraphPrinter.cpp Thu Nov 17 06:56:10 2011
@@ -31,7 +31,7 @@
     static NodeType *getEntryNode(ScopDetection *SD) {
       return GraphTraits<RegionInfo*>::getEntryNode(SD->getRI());
     }
-    static nodes_iterator nodes_begin(ScopDetection* SD) {
+    static nodes_iterator nodes_begin(ScopDetection *SD) {
       return nodes_iterator::begin(getEntryNode(SD));
     }
     static nodes_iterator nodes_end(ScopDetection *SD) {
@@ -144,7 +144,7 @@
 
     O.indent(2 * depth) << "}\n";
   }
-  static void addCustomGraphFeatures(const ScopDetection* SD,
+  static void addCustomGraphFeatures(const ScopDetection *SD,
                                      GraphWriter<ScopDetection*> &GW) {
     raw_ostream &O = GW.getOStream();
     O << "\tcolorscheme = \"paired12\"\n";
@@ -199,18 +199,18 @@
 N("dot-scops-only",
   "Polly - Print Scops of function (with no function bodies)");
 
-Pass* polly::createDOTViewerPass() {
+Pass *polly::createDOTViewerPass() {
   return new ScopViewer();
 }
 
-Pass* polly::createDOTOnlyViewerPass() {
+Pass *polly::createDOTOnlyViewerPass() {
   return new ScopOnlyViewer();
 }
 
-Pass* polly::createDOTPrinterPass() {
+Pass *polly::createDOTPrinterPass() {
   return new ScopPrinter();
 }
 
-Pass* polly::createDOTOnlyPrinterPass() {
+Pass *polly::createDOTOnlyPrinterPass() {
   return new ScopOnlyPrinter();
 }

Modified: polly/trunk/lib/Analysis/ScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopInfo.cpp?rev=144902&r1=144901&r2=144902&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Thu Nov 17 06:56:10 2011
@@ -140,21 +140,21 @@
     return isl_pw_aff_alloc(Domain, Affine);
   }
 
-  __isl_give isl_pw_aff *visitTruncateExpr(const SCEVTruncateExpr* Expr) {
+  __isl_give isl_pw_aff *visitTruncateExpr(const SCEVTruncateExpr *Expr) {
     assert(0 && "Not yet supported");
   }
 
-  __isl_give isl_pw_aff *visitZeroExtendExpr(const SCEVZeroExtendExpr * Expr) {
+  __isl_give isl_pw_aff *visitZeroExtendExpr(const SCEVZeroExtendExpr *Expr) {
     assert(0 && "Not yet supported");
   }
 
-  __isl_give isl_pw_aff *visitSignExtendExpr(const SCEVSignExtendExpr* Expr) {
+  __isl_give isl_pw_aff *visitSignExtendExpr(const SCEVSignExtendExpr *Expr) {
     // Assuming the value is signed, a sign extension is basically a noop.
     // TODO: Reconsider this as soon as we support unsigned values.
     return visit(Expr->getOperand());
   }
 
-  __isl_give isl_pw_aff *visitAddExpr(const SCEVAddExpr* Expr) {
+  __isl_give isl_pw_aff *visitAddExpr(const SCEVAddExpr *Expr) {
     isl_pw_aff *Sum = visit(Expr->getOperand(0));
 
     for (int i = 1, e = Expr->getNumOperands(); i < e; ++i) {
@@ -167,7 +167,7 @@
     return Sum;
   }
 
-  __isl_give isl_pw_aff *visitMulExpr(const SCEVMulExpr* Expr) {
+  __isl_give isl_pw_aff *visitMulExpr(const SCEVMulExpr *Expr) {
     isl_pw_aff *Product = visit(Expr->getOperand(0));
 
     for (int i = 1, e = Expr->getNumOperands(); i < e; ++i) {
@@ -186,7 +186,7 @@
     return Product;
   }
 
-  __isl_give isl_pw_aff *visitUDivExpr(const SCEVUDivExpr* Expr) {
+  __isl_give isl_pw_aff *visitUDivExpr(const SCEVUDivExpr *Expr) {
     assert(0 && "Not yet supported");
   }
 
@@ -197,7 +197,7 @@
     return L->getLoopDepth() - outerLoop->getLoopDepth();
   }
 
-  __isl_give isl_pw_aff *visitAddRecExpr(const SCEVAddRecExpr* Expr) {
+  __isl_give isl_pw_aff *visitAddRecExpr(const SCEVAddRecExpr *Expr) {
     assert(Expr->isAffine() && "Only affine AddRecurrences allowed");
     assert(scop->getRegion().contains(Expr->getLoop())
            && "Scop does not contain the loop referenced in this AddRec");
@@ -217,7 +217,7 @@
     return isl_pw_aff_add(Start, isl_pw_aff_mul(Step, LPwAff));
   }
 
-  __isl_give isl_pw_aff *visitSMaxExpr(const SCEVSMaxExpr* Expr) {
+  __isl_give isl_pw_aff *visitSMaxExpr(const SCEVSMaxExpr *Expr) {
     isl_pw_aff *Max = visit(Expr->getOperand(0));
 
     for (int i = 1, e = Expr->getNumOperands(); i < e; ++i) {
@@ -228,11 +228,11 @@
     return Max;
   }
 
-  __isl_give isl_pw_aff *visitUMaxExpr(const SCEVUMaxExpr* Expr) {
+  __isl_give isl_pw_aff *visitUMaxExpr(const SCEVUMaxExpr *Expr) {
     assert(0 && "Not yet supported");
   }
 
-  __isl_give isl_pw_aff *visitUnknown(const SCEVUnknown* Expr) {
+  __isl_give isl_pw_aff *visitUnknown(const SCEVUnknown *Expr) {
     Value *Value = Expr->getValue();
 
     isl_space *Space;
@@ -843,7 +843,7 @@
 //===----------------------------------------------------------------------===//
 /// Scop class implement
 
-void Scop::setContext(__isl_take isl_set* NewContext) {
+void Scop::setContext(__isl_take isl_set *NewContext) {
   NewContext = isl_set_align_params(NewContext, isl_set_get_space(Context));
   isl_set_free(Context);
   Context = NewContext;

Modified: polly/trunk/lib/Cloog.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Cloog.cpp?rev=144902&r1=144901&r2=144902&view=diff
==============================================================================
--- polly/trunk/lib/Cloog.cpp (original)
+++ polly/trunk/lib/Cloog.cpp Thu Nov 17 06:56:10 2011
@@ -260,7 +260,7 @@
                                     " (Writes a .cloog file for each Scop)"
                                     );
 
-llvm::Pass* polly::createCloogExporterPass() {
+llvm::Pass *polly::createCloogExporterPass() {
   return new CloogExporter();
 }
 
@@ -323,6 +323,6 @@
 INITIALIZE_PASS_END(CloogInfo, "polly-cloog",
                     "Execute Cloog code generation", false, false)
 
-Pass* polly::createCloogInfoPass() {
+Pass *polly::createCloogInfoPass() {
   return new CloogInfo();
 }

Modified: polly/trunk/lib/CodeGeneration.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGeneration.cpp?rev=144902&r1=144901&r2=144902&view=diff
==============================================================================
--- polly/trunk/lib/CodeGeneration.cpp (original)
+++ polly/trunk/lib/CodeGeneration.cpp Thu Nov 17 06:56:10 2011
@@ -158,7 +158,7 @@
     return S.getRegion();
   }
 
-  Value* makeVectorOperand(Value *operand, int vectorWidth) {
+  Value *makeVectorOperand(Value *operand, int vectorWidth) {
     if (operand->getType()->isVectorTy())
       return operand;
 
@@ -176,7 +176,7 @@
     return Builder.CreateShuffleVector(vector, vector, splatVector);
   }
 
-  Value* getOperand(const Value *oldOperand, ValueMapT &BBMap,
+  Value *getOperand(const Value *oldOperand, ValueMapT &BBMap,
                     ValueMapT *VectorMap = 0) {
     const Instruction *OpInst = dyn_cast<Instruction>(oldOperand);
 
@@ -912,7 +912,7 @@
   }
 
   /// @brief Add a new definition of an openmp subfunction.
-  Function* addOpenMPSubfunction(Module *M) {
+  Function *addOpenMPSubfunction(Module *M) {
     Function *F = Builder.GetInsertBlock()->getParent();
     const std::string &Name = F->getNameStr() + ".omp_subfn";
 
@@ -1608,6 +1608,6 @@
 INITIALIZE_PASS_END(CodeGeneration, "polly-codegen",
                       "Polly - Create LLVM-IR form SCoPs", false, false)
 
-Pass* polly::createCodeGenerationPass() {
+Pass *polly::createCodeGenerationPass() {
   return new CodeGeneration();
 }

Modified: polly/trunk/lib/Exchange/OpenScopExporter.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Exchange/OpenScopExporter.cpp?rev=144902&r1=144901&r2=144902&view=diff
==============================================================================
--- polly/trunk/lib/Exchange/OpenScopExporter.cpp (original)
+++ polly/trunk/lib/Exchange/OpenScopExporter.cpp Thu Nov 17 06:56:10 2011
@@ -153,7 +153,7 @@
 
 
   // Statement name
-  const char* entryName = stmt->getBaseName();
+  const char *entryName = stmt->getBaseName();
   Stmt->body = (char*)malloc(sizeof(char) * (strlen(entryName) + 1));
   strcpy(Stmt->body, entryName);
 

Modified: polly/trunk/lib/IndependentBlocks.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/IndependentBlocks.cpp?rev=144902&r1=144901&r2=144902&view=diff
==============================================================================
--- polly/trunk/lib/IndependentBlocks.cpp (original)
+++ polly/trunk/lib/IndependentBlocks.cpp Thu Nov 17 06:56:10 2011
@@ -550,6 +550,6 @@
 INITIALIZE_PASS_END(IndependentBlocks, "polly-independent",
                     "Polly - Create independent blocks", false, false)
 
-Pass* polly::createIndependentBlocksPass() {
+Pass *polly::createIndependentBlocksPass() {
   return new IndependentBlocks();
 }

Modified: polly/trunk/lib/Support/SCEVValidator.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Support/SCEVValidator.cpp?rev=144902&r1=144901&r2=144902&view=diff
==============================================================================
--- polly/trunk/lib/Support/SCEVValidator.cpp (original)
+++ polly/trunk/lib/Support/SCEVValidator.cpp Thu Nov 17 06:56:10 2011
@@ -25,7 +25,7 @@
   };
 
   ValidatorResult(SCEVType::TYPE type) : type(type) {};
-  ValidatorResult(SCEVType::TYPE type, const SCEV* Expr) : type(type) {
+  ValidatorResult(SCEVType::TYPE type, const SCEV *Expr) : type(type) {
     Parameters.push_back(Expr);
   };
 
@@ -68,7 +68,7 @@
     return ValidatorResult(SCEVType::INT);
   }
 
-  struct ValidatorResult visitTruncateExpr(const SCEVTruncateExpr* Expr) {
+  struct ValidatorResult visitTruncateExpr(const SCEVTruncateExpr *Expr) {
     ValidatorResult Op = visit(Expr->getOperand());
 
     // We currently do not represent a truncate expression as an affine
@@ -80,7 +80,7 @@
     return ValidatorResult (SCEVType::INVALID);
   }
 
-  struct ValidatorResult visitZeroExtendExpr(const SCEVZeroExtendExpr * Expr) {
+  struct ValidatorResult visitZeroExtendExpr(const SCEVZeroExtendExpr *Expr) {
     ValidatorResult Op = visit(Expr->getOperand());
 
     // We currently do not represent a zero extend expression as an affine
@@ -92,7 +92,7 @@
     return ValidatorResult(SCEVType::INVALID);
   }
 
-  struct ValidatorResult visitSignExtendExpr(const SCEVSignExtendExpr* Expr) {
+  struct ValidatorResult visitSignExtendExpr(const SCEVSignExtendExpr *Expr) {
     // We currently allow only signed SCEV expressions. In the case of a
     // signed value, a sign extend is a noop.
     //
@@ -100,7 +100,7 @@
     return visit(Expr->getOperand());
   }
 
-  struct ValidatorResult visitAddExpr(const SCEVAddExpr* Expr) {
+  struct ValidatorResult visitAddExpr(const SCEVAddExpr *Expr) {
     ValidatorResult Return(SCEVType::INT);
 
     for (int i = 0, e = Expr->getNumOperands(); i < e; ++i) {
@@ -117,7 +117,7 @@
     return Return;
   }
 
-  struct ValidatorResult visitMulExpr(const SCEVMulExpr* Expr) {
+  struct ValidatorResult visitMulExpr(const SCEVMulExpr *Expr) {
     ValidatorResult Return(SCEVType::INT);
 
     for (int i = 0, e = Expr->getNumOperands(); i < e; ++i) {
@@ -137,7 +137,7 @@
     return Return;
   }
 
-  struct ValidatorResult visitUDivExpr(const SCEVUDivExpr* Expr) {
+  struct ValidatorResult visitUDivExpr(const SCEVUDivExpr *Expr) {
     ValidatorResult LHS = visit(Expr->getLHS());
     ValidatorResult RHS = visit(Expr->getRHS());
 
@@ -150,7 +150,7 @@
     return ValidatorResult(SCEVType::INVALID);
   }
 
-  struct ValidatorResult visitAddRecExpr(const SCEVAddRecExpr* Expr) {
+  struct ValidatorResult visitAddRecExpr(const SCEVAddRecExpr *Expr) {
     if (!Expr->isAffine())
       return ValidatorResult(SCEVType::INVALID);
 
@@ -176,7 +176,7 @@
     return Result;
   }
 
-  struct ValidatorResult visitSMaxExpr(const SCEVSMaxExpr* Expr) {
+  struct ValidatorResult visitSMaxExpr(const SCEVSMaxExpr *Expr) {
     ValidatorResult Return(SCEVType::INT);
 
     for (int i = 0, e = Expr->getNumOperands(); i < e; ++i) {
@@ -192,7 +192,7 @@
     return Return;
   }
 
-  struct ValidatorResult visitUMaxExpr(const SCEVUMaxExpr* Expr) {
+  struct ValidatorResult visitUMaxExpr(const SCEVUMaxExpr *Expr) {
     ValidatorResult Return(SCEVType::PARAM);
 
     // We do not support unsigned operations. If 'Expr' is constant during Scop
@@ -209,7 +209,7 @@
     return Return;
   }
 
-  ValidatorResult visitUnknown(const SCEVUnknown* Expr) {
+  ValidatorResult visitUnknown(const SCEVUnknown *Expr) {
     Value *V = Expr->getValue();
 
     if (isa<UndefValue>(V))

Modified: polly/trunk/lib/Support/ScopHelper.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Support/ScopHelper.cpp?rev=144902&r1=144901&r2=144902&view=diff
==============================================================================
--- polly/trunk/lib/Support/ScopHelper.cpp (original)
+++ polly/trunk/lib/Support/ScopHelper.cpp Thu Nov 17 06:56:10 2011
@@ -37,7 +37,7 @@
     return true;
   }
 
-  bool visitUnknown(const SCEVUnknown* S) {
+  bool visitUnknown(const SCEVUnknown *S) {
     Value *V = S->getValue();
 
     // An Instruction defined outside the region is invariant.
@@ -57,7 +57,7 @@
     return true;
   }
 
-  bool visitMulExpr(const SCEVMulExpr* S) {
+  bool visitMulExpr(const SCEVMulExpr *S) {
     return visitNAryExpr(S);
   }
 





More information about the llvm-commits mailing list