summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--polly/lib/Analysis/DependenceInfo.cpp2
-rw-r--r--polly/lib/Analysis/ScopDetection.cpp2
-rw-r--r--polly/lib/CodeGen/LoopGenerators.cpp6
-rw-r--r--polly/lib/Transform/ScheduleOptimizer.cpp4
4 files changed, 7 insertions, 7 deletions
diff --git a/polly/lib/Analysis/DependenceInfo.cpp b/polly/lib/Analysis/DependenceInfo.cpp
index 9599010314b..dcee885ec89 100644
--- a/polly/lib/Analysis/DependenceInfo.cpp
+++ b/polly/lib/Analysis/DependenceInfo.cpp
@@ -244,7 +244,7 @@ void Dependences::addPrivatizationDependences() {
// dependency cycles in the privatization dependences. To make sure this
// will not happen we remove all negative dependences after we computed
// the transitive closure.
- TC_RED = isl_union_map_transitive_closure(isl_union_map_copy(RED), 0);
+ TC_RED = isl_union_map_transitive_closure(isl_union_map_copy(RED), nullptr);
// FIXME: Apply the current schedule instead of assuming the identity schedule
// here. The current approach is only valid as long as we compute the
diff --git a/polly/lib/Analysis/ScopDetection.cpp b/polly/lib/Analysis/ScopDetection.cpp
index c4bb5153240..7036fe525f3 100644
--- a/polly/lib/Analysis/ScopDetection.cpp
+++ b/polly/lib/Analysis/ScopDetection.cpp
@@ -452,7 +452,7 @@ bool ScopDetection::isValidCallInst(CallInst &CI,
Function *CalledFunction = CI.getCalledFunction();
// Indirect calls are not supported.
- if (CalledFunction == 0)
+ if (CalledFunction == nullptr)
return false;
if (AllowModrefCall) {
diff --git a/polly/lib/CodeGen/LoopGenerators.cpp b/polly/lib/CodeGen/LoopGenerators.cpp
index 566e460b326..149cf2cef73 100644
--- a/polly/lib/CodeGen/LoopGenerators.cpp
+++ b/polly/lib/CodeGen/LoopGenerators.cpp
@@ -289,7 +289,7 @@ ParallelLoopGenerator::storeValuesIntoStruct(SetVector<Value *> &Values) {
BasicBlock &EntryBB = Builder.GetInsertBlock()->getParent()->getEntryBlock();
Instruction *IP = &*EntryBB.getFirstInsertionPt();
StructType *Ty = StructType::get(Builder.getContext(), Members);
- AllocaInst *Struct = new AllocaInst(Ty, 0, "polly.par.userContext", IP);
+ AllocaInst *Struct = new AllocaInst(Ty, nullptr, "polly.par.userContext", IP);
// Mark the start of the lifetime for the parameter struct.
ConstantInt *SizeOf = Builder.getInt64(DL.getTypeAllocSize(Ty));
@@ -338,8 +338,8 @@ Value *ParallelLoopGenerator::createSubFn(Value *Stride, AllocaInst *StructData,
// Fill up basic block HeaderBB.
Builder.SetInsertPoint(HeaderBB);
- LBPtr = Builder.CreateAlloca(LongType, 0, "polly.par.LBPtr");
- UBPtr = Builder.CreateAlloca(LongType, 0, "polly.par.UBPtr");
+ LBPtr = Builder.CreateAlloca(LongType, nullptr, "polly.par.LBPtr");
+ UBPtr = Builder.CreateAlloca(LongType, nullptr, "polly.par.UBPtr");
UserContext = Builder.CreateBitCast(
&*SubFn->arg_begin(), StructData->getType(), "polly.par.userContext");
diff --git a/polly/lib/Transform/ScheduleOptimizer.cpp b/polly/lib/Transform/ScheduleOptimizer.cpp
index 03bf5cd11dc..a0f6ab3f613 100644
--- a/polly/lib/Transform/ScheduleOptimizer.cpp
+++ b/polly/lib/Transform/ScheduleOptimizer.cpp
@@ -198,7 +198,7 @@ getIsolateOptions(__isl_take isl_set *IsolateDomain) {
IsolateRelation = isl_map_move_dims(IsolateRelation, isl_dim_out, 0,
isl_dim_in, Dims - 1, 1);
auto *IsolateOption = isl_map_wrap(IsolateRelation);
- auto *Id = isl_id_alloc(isl_set_get_ctx(IsolateOption), "isolate", NULL);
+ auto *Id = isl_id_alloc(isl_set_get_ctx(IsolateOption), "isolate", nullptr);
return isl_union_set_from_set(isl_set_set_tuple_id(IsolateOption, Id));
}
@@ -211,7 +211,7 @@ getIsolateOptions(__isl_take isl_set *IsolateDomain) {
static __isl_give isl_union_set *getAtomicOptions(__isl_take isl_ctx *Ctx) {
auto *Space = isl_space_set_alloc(Ctx, 0, 1);
auto *AtomicOption = isl_set_universe(Space);
- auto *Id = isl_id_alloc(Ctx, "atomic", NULL);
+ auto *Id = isl_id_alloc(Ctx, "atomic", nullptr);
return isl_union_set_from_set(isl_set_set_tuple_id(AtomicOption, Id));
}
OpenPOWER on IntegriCloud