isl_union_map_domain(isl_union_map_copy(StmtSchedule)));
STMT_WAR = isl_union_map_intersect_domain(isl_union_map_copy(WAR),
isl_union_map_domain(StmtSchedule));
- DEBUG(dbgs() << "Wrapped Dependences:\n"; printScop(dbgs()); dbgs() << "\n");
+ DEBUG({
+ dbgs() << "Wrapped Dependences:\n";
+ printScop(dbgs());
+ dbgs() << "\n";
+ });
// To handle reduction dependences we proceed as follows:
// 1) Aggregate all possible reduction dependences, namely all self
addPrivatizationDependences();
}
- DEBUG(dbgs() << "Final Wrapped Dependences:\n"; printScop(dbgs());
- dbgs() << "\n");
+ DEBUG({
+ dbgs() << "Final Wrapped Dependences:\n";
+ printScop(dbgs());
+ dbgs() << "\n";
+ });
// RED_SIN is used to collect all reduction dependences again after we
// split them according to the causing memory accesses. The current assumption
RED = isl_union_map_zip(RED);
TC_RED = isl_union_map_zip(TC_RED);
- DEBUG(dbgs() << "Zipped Dependences:\n"; printScop(dbgs()); dbgs() << "\n");
+ DEBUG({
+ dbgs() << "Zipped Dependences:\n";
+ printScop(dbgs());
+ dbgs() << "\n";
+ });
RAW = isl_union_set_unwrap(isl_union_map_domain(RAW));
WAW = isl_union_set_unwrap(isl_union_map_domain(WAW));
RED = isl_union_set_unwrap(isl_union_map_domain(RED));
TC_RED = isl_union_set_unwrap(isl_union_map_domain(TC_RED));
- DEBUG(dbgs() << "Unwrapped Dependences:\n"; printScop(dbgs());
- dbgs() << "\n");
+ DEBUG({
+ dbgs() << "Unwrapped Dependences:\n";
+ printScop(dbgs());
+ dbgs() << "\n";
+ });
RAW = isl_union_map_union(RAW, STMT_RAW);
WAW = isl_union_map_union(WAW, STMT_WAW);
}
void ClastStmtCodeGen::codegenForVector(const clast_for *F) {
- DEBUG(dbgs() << "Vectorizing loop '" << F->iterator << "'\n";);
+ DEBUG(dbgs() << "Vectorizing loop '" << F->iterator << "'\n");
int VectorWidth = getNumberOfIterations(F);
Value *LB = ExpGen.codegen(F->LB, getIntPtrTy());
return false;
SCEVValidator Validator(R, SE, BaseAddress);
- DEBUG(dbgs() << "\n"; dbgs() << "Expr: " << *Expr << "\n";
- dbgs() << "Region: " << R->getNameStr() << "\n"; dbgs() << " -> ");
+ DEBUG({
+ dbgs() << "\n";
+ dbgs() << "Expr: " << *Expr << "\n";
+ dbgs() << "Region: " << R->getNameStr() << "\n";
+ dbgs() << " -> ";
+ });
ValidatorResult Result = Validator.visit(Expr);
- DEBUG(if (Result.isValid()) dbgs() << "VALID\n"; dbgs() << "\n";);
+ DEBUG({
+ if (Result.isValid())
+ dbgs() << "VALID\n";
+ dbgs() << "\n";
+ });
return Result.isValid();
}