From 0f88b5da06e2c17743aa59633d1f9013977a9cc0 Mon Sep 17 00:00:00 2001 From: Michael Kruse Date: Tue, 3 Feb 2026 21:04:41 +0100 Subject: [PATCH] [Polly] LLVM_DEBUG -> POLLY_DEBUG --- polly/lib/Support/DumpFunctionPass.cpp | 11 ++++++----- polly/lib/Support/DumpModulePass.cpp | 3 ++- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/polly/lib/Support/DumpFunctionPass.cpp b/polly/lib/Support/DumpFunctionPass.cpp index 9565e2156aee..4483b86ca258 100644 --- a/polly/lib/Support/DumpFunctionPass.cpp +++ b/polly/lib/Support/DumpFunctionPass.cpp @@ -11,6 +11,7 @@ //===----------------------------------------------------------------------===// #include "polly/Support/DumpFunctionPass.h" +#include "polly/Support/PollyDebug.h" #include "llvm/IR/Module.h" #include "llvm/IR/PassInstrumentation.h" #include "llvm/Support/Debug.h" @@ -35,8 +36,8 @@ static void runDumpFunction(llvm::Function &F, StringRef Suffix) { StringRef ModuleName = M->getName(); StringRef Stem = sys::path::stem(ModuleName); std::string Dumpfile = (Twine(Stem) + "-" + FName + Suffix + ".ll").str(); - LLVM_DEBUG(dbgs() << "Dumping function '" << FName << "' to '" << Dumpfile - << "'...\n"); + POLLY_DEBUG(dbgs() << "Dumping function '" << FName << "' to '" << Dumpfile + << "'...\n"); ValueToValueMapTy VMap; auto ShouldCloneDefinition = [&F](const GlobalValue *GV) -> bool { @@ -46,7 +47,7 @@ static void runDumpFunction(llvm::Function &F, StringRef Suffix) { Function *NewF = cast(VMap.lookup(&F)); assert(NewF && "Expected selected function to be cloned"); - LLVM_DEBUG(dbgs() << "Global DCE...\n"); + POLLY_DEBUG(dbgs() << "Global DCE...\n"); // Stop F itself from being pruned GlobalValue::LinkageTypes OrigLinkage = NewF->getLinkage(); @@ -67,7 +68,7 @@ static void runDumpFunction(llvm::Function &F, StringRef Suffix) { // Restore old linkage NewF->setLinkage(OrigLinkage); - LLVM_DEBUG(dbgs() << "Write to file '" << Dumpfile << "'...\n"); + POLLY_DEBUG(dbgs() << "Write to file '" << Dumpfile << "'...\n"); std::unique_ptr Out; std::error_code EC; @@ -79,7 +80,7 @@ static void runDumpFunction(llvm::Function &F, StringRef Suffix) { CM->print(Out->os(), nullptr); Out->keep(); - LLVM_DEBUG(dbgs() << "Dump file " << Dumpfile << " written successfully\n"); + POLLY_DEBUG(dbgs() << "Dump file " << Dumpfile << " written successfully\n"); } } // namespace diff --git a/polly/lib/Support/DumpModulePass.cpp b/polly/lib/Support/DumpModulePass.cpp index 2eaa0707fe57..ab413e502e27 100644 --- a/polly/lib/Support/DumpModulePass.cpp +++ b/polly/lib/Support/DumpModulePass.cpp @@ -11,6 +11,7 @@ //===----------------------------------------------------------------------===// #include "polly/Support/DumpModulePass.h" +#include "polly/Support/PollyDebug.h" #include "llvm/IR/Module.h" #include "llvm/Support/Debug.h" #include "llvm/Support/FileSystem.h" @@ -33,7 +34,7 @@ static void runDumpModule(llvm::Module &M, StringRef Filename, bool IsSuffix) { } else { Dumpfile = Filename.str(); } - LLVM_DEBUG(dbgs() << "Dumping module to " << Dumpfile << '\n'); + POLLY_DEBUG(dbgs() << "Dumping module to " << Dumpfile << '\n'); std::unique_ptr Out; std::error_code EC;