[llvm] [DebugInfo] Add a new DI flag to record if the name of a template function/type has been simplified (1/3). (PR #175130)
Liu Ke via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 8 23:56:40 PST 2026
https://github.com/Sockke created https://github.com/llvm/llvm-project/pull/175130
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).
>From 46941077421f2ce0eac79ab1eb51d10d0d138a8a Mon Sep 17 00:00:00 2001
From: "liuke.gehry" <liuke.gehry at bytedance.com>
Date: Fri, 9 Jan 2026 13:42:55 +0800
Subject: [PATCH] [DebugInfo] Add a new DI flag to record if the name of a
template function/type has been simplified (1/3).
---
llvm/include/llvm/IR/DebugInfoFlags.def | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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
More information about the llvm-commits
mailing list