[Mlir-commits] [llvm] [mlir] Default DEBUG_TYPE to the current filename for logging (PR #158494)
    Jacques Pienaar 
    llvmlistbot at llvm.org
       
    Mon Sep 15 08:54:00 PDT 2025
    
    
  
================
@@ -1222,39 +1223,39 @@ Fine grained debug info with ``DEBUG_TYPE`` and the ``-debug-only`` option
 Sometimes you may find yourself in a situation where enabling ``-debug`` just
 turns on **too much** information (such as when working on the code generator).
 If you want to enable debug information with more fine-grained control, you
-should define the ``DEBUG_TYPE`` macro and use the ``-debug-only`` option as
-follows:
+can control the debug type and level with associate with each logging statement
+as follows:
 
 .. code-block:: c++
 
-  #define DEBUG_TYPE "foo"
+  #define DEBUG_TYPE "foo" // Optional: the file name is used insted if not defined
----------------
jpienaar wrote:
instead
https://github.com/llvm/llvm-project/pull/158494
    
    
More information about the Mlir-commits
mailing list