diff options
Diffstat (limited to 'polly/lib/CodeGen/PPCGCodeGeneration.cpp')
-rw-r--r-- | polly/lib/CodeGen/PPCGCodeGeneration.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/polly/lib/CodeGen/PPCGCodeGeneration.cpp b/polly/lib/CodeGen/PPCGCodeGeneration.cpp index b5ef638c2e1..d59d9a374ca 100644 --- a/polly/lib/CodeGen/PPCGCodeGeneration.cpp +++ b/polly/lib/CodeGen/PPCGCodeGeneration.cpp @@ -2205,7 +2205,7 @@ void GPUNodeBuilder::finalizeKernelArguments(ppcg_kernel *Kernel) { /// memory store or at least before each kernel barrier. if (Kernel->n_block != 0 || Kernel->n_grid != 0) { BuildSuccessful = 0; - DEBUG( + LLVM_DEBUG( dbgs() << getUniqueScopName(&S) << " has a store to a scalar value that" " would be undefined to run in parallel. Bailing out.\n";); @@ -2440,10 +2440,10 @@ void GPUNodeBuilder::addCUDALibDevice() { std::string GPUNodeBuilder::finalizeKernelFunction() { if (verifyModule(*GPUModule)) { - DEBUG(dbgs() << "verifyModule failed on module:\n"; - GPUModule->print(dbgs(), nullptr); dbgs() << "\n";); - DEBUG(dbgs() << "verifyModule Error:\n"; - verifyModule(*GPUModule, &dbgs());); + LLVM_DEBUG(dbgs() << "verifyModule failed on module:\n"; + GPUModule->print(dbgs(), nullptr); dbgs() << "\n";); + LLVM_DEBUG(dbgs() << "verifyModule Error:\n"; + verifyModule(*GPUModule, &dbgs());); if (FailOnVerifyModuleFailure) llvm_unreachable("VerifyModule failed."); @@ -3230,8 +3230,8 @@ public: if (!has_permutable || has_permutable < 0) { Schedule = isl_schedule_free(Schedule); - DEBUG(dbgs() << getUniqueScopName(S) - << " does not have permutable bands. Bailing out\n";); + LLVM_DEBUG(dbgs() << getUniqueScopName(S) + << " does not have permutable bands. Bailing out\n";); } else { const bool CreateTransferToFromDevice = !PollyManagedMemory; Schedule = map_to_device(PPCGGen, Schedule, CreateTransferToFromDevice); @@ -3409,8 +3409,8 @@ public: // Look for (<func-type>*) among operands of Inst if (auto PtrTy = dyn_cast<PointerType>(Op->getType())) { if (isa<FunctionType>(PtrTy->getElementType())) { - DEBUG(dbgs() << Inst - << " has illegal use of function in kernel.\n"); + LLVM_DEBUG(dbgs() + << Inst << " has illegal use of function in kernel.\n"); return true; } } @@ -3488,9 +3488,9 @@ public: auto *SplitBBTerm = Builder.GetInsertBlock()->getTerminator(); SplitBBTerm->setOperand(0, FalseI1); - DEBUG(dbgs() << "preloading invariant loads failed in function: " + - S->getFunction().getName() + - " | Scop Region: " + S->getNameStr()); + LLVM_DEBUG(dbgs() << "preloading invariant loads failed in function: " + + S->getFunction().getName() + + " | Scop Region: " + S->getNameStr()); // adjust the dominator tree accordingly. auto *ExitingBlock = StartBlock->getUniqueSuccessor(); assert(ExitingBlock); @@ -3550,8 +3550,8 @@ public: DL = &S->getRegion().getEntry()->getModule()->getDataLayout(); RI = &getAnalysis<RegionInfoPass>().getRegionInfo(); - DEBUG(dbgs() << "PPCGCodeGen running on : " << getUniqueScopName(S) - << " | loop depth: " << S->getMaxLoopDepth() << "\n"); + LLVM_DEBUG(dbgs() << "PPCGCodeGen running on : " << getUniqueScopName(S) + << " | loop depth: " << S->getMaxLoopDepth() << "\n"); // We currently do not support functions other than intrinsics inside // kernels, as code generation will need to offload function calls to the @@ -3560,7 +3560,7 @@ public: // address of an intrinsic function to send to the kernel. if (containsInvalidKernelFunction(CurrentScop, Architecture == GPUArch::NVPTX64)) { - DEBUG( + LLVM_DEBUG( dbgs() << getUniqueScopName(S) << " contains function which cannot be materialised in a GPU " "kernel. Bailing out.\n";); @@ -3575,8 +3575,8 @@ public: generateCode(isl_ast_node_copy(PPCGGen->tree), PPCGProg); CurrentScop.markAsToBeSkipped(); } else { - DEBUG(dbgs() << getUniqueScopName(S) - << " has empty PPCGGen->tree. Bailing out.\n"); + LLVM_DEBUG(dbgs() << getUniqueScopName(S) + << " has empty PPCGGen->tree. Bailing out.\n"); } freeOptions(PPCGScop); |