[llvm] [DebugInfo] Add a new DI flag to record if the name of a template function/type has been simplified (1/3). (PR #175130)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 8 23:59:26 PST 2026


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-llvm-ir

Author: Liu Ke (Sockke)

<details>
<summary>Changes</summary>

This flag is used during debug info generation in the LLVM backend to guide the selective generation of template parameters in the skeleton CU. As described in [this RFC](https://discourse.llvm.org/t/rfc-debuginfo-selectively-generate-template-parameters-in-the-skeleton-cu/89395).


---
Full diff: https://github.com/llvm/llvm-project/pull/175130.diff


1 Files Affected:

- (modified) llvm/include/llvm/IR/DebugInfoFlags.def (+2-1) 


``````````diff
diff --git a/llvm/include/llvm/IR/DebugInfoFlags.def b/llvm/include/llvm/IR/DebugInfoFlags.def
index df375b6c68e81..44946b1fb83b7 100644
--- a/llvm/include/llvm/IR/DebugInfoFlags.def
+++ b/llvm/include/llvm/IR/DebugInfoFlags.def
@@ -58,6 +58,7 @@ HANDLE_DI_FLAG((1 << 26), NonTrivial)
 HANDLE_DI_FLAG((1 << 27), BigEndian)
 HANDLE_DI_FLAG((1 << 28), LittleEndian)
 HANDLE_DI_FLAG((1 << 29), AllCallsDescribed)
+HANDLE_DI_FLAG((1 << 30), NameIsSimplified)
 
 // To avoid needing a dedicated value for IndirectVirtualBase, we use
 // the bitwise or of Virtual and FwdDecl, which does not otherwise
@@ -67,7 +68,7 @@ HANDLE_DI_FLAG((1 << 2) | (1 << 5), IndirectVirtualBase)
 #ifdef DI_FLAG_LARGEST_NEEDED
 // intended to be used with ADT/BitmaskEnum.h
 // NOTE: always must be equal to largest flag, check this when adding new flag
-HANDLE_DI_FLAG((1 << 29), Largest)
+HANDLE_DI_FLAG((1 << 30), Largest)
 #undef DI_FLAG_LARGEST_NEEDED
 #endif
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/175130


More information about the llvm-commits mailing list