summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--polly/lib/Analysis/Dependences.cpp4
-rw-r--r--polly/lib/Analysis/ScopGraphPrinter.cpp12
-rw-r--r--polly/lib/Analysis/ScopInfo.cpp22
-rw-r--r--polly/lib/Cloog.cpp4
-rw-r--r--polly/lib/CodeGeneration.cpp8
-rwxr-xr-xpolly/lib/Exchange/OpenScopExporter.cpp2
-rw-r--r--polly/lib/IndependentBlocks.cpp2
-rw-r--r--polly/lib/Support/SCEVValidator.cpp22
-rw-r--r--polly/lib/Support/ScopHelper.cpp4
9 files changed, 40 insertions, 40 deletions
diff --git a/polly/lib/Analysis/Dependences.cpp b/polly/lib/Analysis/Dependences.cpp
index bdf03a09f80..1a60f7d876c 100644
--- a/polly/lib/Analysis/Dependences.cpp
+++ b/polly/lib/Analysis/Dependences.cpp
@@ -235,7 +235,7 @@ bool Dependences::isValidScattering(StatementToIslMapTy *NewScattering) {
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_DEPENDENCY(ScopInfo)
INITIALIZE_PASS_END(Dependences, "polly-dependences",
"Polly - Calculate dependences", false, false)
-Pass* polly::createDependencesPass() {
+Pass *polly::createDependencesPass() {
return new Dependences();
}
diff --git a/polly/lib/Analysis/ScopGraphPrinter.cpp b/polly/lib/Analysis/ScopGraphPrinter.cpp
index 8137c0b039f..665e119a48f 100644
--- a/polly/lib/Analysis/ScopGraphPrinter.cpp
+++ b/polly/lib/Analysis/ScopGraphPrinter.cpp
@@ -31,7 +31,7 @@ namespace llvm {
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 @@ struct DOTGraphTraits<ScopDetection*> : public DOTGraphTraits<RegionNode*> {
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 @@ static RegisterPass<ScopOnlyPrinter>
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();
}
diff --git a/polly/lib/Analysis/ScopInfo.cpp b/polly/lib/Analysis/ScopInfo.cpp
index 35c347246f6..f17bcb6a4ce 100644
--- a/polly/lib/Analysis/ScopInfo.cpp
+++ b/polly/lib/Analysis/ScopInfo.cpp
@@ -140,21 +140,21 @@ public:
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 @@ public:
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 @@ public:
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 @@ public:
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 @@ public:
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 @@ public:
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 @@ void ScopStmt::dump() const { print(dbgs()); }
//===----------------------------------------------------------------------===//
/// 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;
diff --git a/polly/lib/Cloog.cpp b/polly/lib/Cloog.cpp
index 12faacc1834..f21b4d92766 100644
--- a/polly/lib/Cloog.cpp
+++ b/polly/lib/Cloog.cpp
@@ -260,7 +260,7 @@ static RegisterPass<CloogExporter> A("polly-export-cloog",
" (Writes a .cloog file for each Scop)"
);
-llvm::Pass* polly::createCloogExporterPass() {
+llvm::Pass *polly::createCloogExporterPass() {
return new CloogExporter();
}
@@ -323,6 +323,6 @@ INITIALIZE_PASS_DEPENDENCY(ScopInfo)
INITIALIZE_PASS_END(CloogInfo, "polly-cloog",
"Execute Cloog code generation", false, false)
-Pass* polly::createCloogInfoPass() {
+Pass *polly::createCloogInfoPass() {
return new CloogInfo();
}
diff --git a/polly/lib/CodeGeneration.cpp b/polly/lib/CodeGeneration.cpp
index 51fe7173d32..c677cc6c00b 100644
--- a/polly/lib/CodeGeneration.cpp
+++ b/polly/lib/CodeGeneration.cpp
@@ -158,7 +158,7 @@ public:
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 @@ public:
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 @@ public:
}
/// @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_DEPENDENCY(TargetData)
INITIALIZE_PASS_END(CodeGeneration, "polly-codegen",
"Polly - Create LLVM-IR form SCoPs", false, false)
-Pass* polly::createCodeGenerationPass() {
+Pass *polly::createCodeGenerationPass() {
return new CodeGeneration();
}
diff --git a/polly/lib/Exchange/OpenScopExporter.cpp b/polly/lib/Exchange/OpenScopExporter.cpp
index aa5c5e23025..5bc4e9d3942 100755
--- a/polly/lib/Exchange/OpenScopExporter.cpp
+++ b/polly/lib/Exchange/OpenScopExporter.cpp
@@ -153,7 +153,7 @@ openscop_statement_p OpenScop::initializeStatement(ScopStmt *stmt) {
// 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);
diff --git a/polly/lib/IndependentBlocks.cpp b/polly/lib/IndependentBlocks.cpp
index 79954de9aeb..9e30050337b 100644
--- a/polly/lib/IndependentBlocks.cpp
+++ b/polly/lib/IndependentBlocks.cpp
@@ -550,6 +550,6 @@ INITIALIZE_PASS_DEPENDENCY(ScopDetection)
INITIALIZE_PASS_END(IndependentBlocks, "polly-independent",
"Polly - Create independent blocks", false, false)
-Pass* polly::createIndependentBlocksPass() {
+Pass *polly::createIndependentBlocksPass() {
return new IndependentBlocks();
}
diff --git a/polly/lib/Support/SCEVValidator.cpp b/polly/lib/Support/SCEVValidator.cpp
index 8daeb1f436b..a7c398e1908 100644
--- a/polly/lib/Support/SCEVValidator.cpp
+++ b/polly/lib/Support/SCEVValidator.cpp
@@ -25,7 +25,7 @@ struct ValidatorResult {
};
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 @@ public:
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 @@ public:
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 @@ public:
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 @@ public:
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 @@ public:
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 @@ public:
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 @@ public:
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 @@ public:
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 @@ public:
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 @@ public:
return Return;
}
- ValidatorResult visitUnknown(const SCEVUnknown* Expr) {
+ ValidatorResult visitUnknown(const SCEVUnknown *Expr) {
Value *V = Expr->getValue();
if (isa<UndefValue>(V))
diff --git a/polly/lib/Support/ScopHelper.cpp b/polly/lib/Support/ScopHelper.cpp
index 5cc096628ff..4a4ea81b193 100644
--- a/polly/lib/Support/ScopHelper.cpp
+++ b/polly/lib/Support/ScopHelper.cpp
@@ -37,7 +37,7 @@ public:
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 @@ public:
return true;
}
- bool visitMulExpr(const SCEVMulExpr* S) {
+ bool visitMulExpr(const SCEVMulExpr *S) {
return visitNAryExpr(S);
}
OpenPOWER on IntegriCloud