[llvm] [DebugInfo] Introduce DW_AT_LLVM_language_dialect (PR #194898)
Matt Davis via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 30 08:01:07 PDT 2026
enferex wrote:
Thanks for the feedback and taking a look @Michael137
> * Is the plan to eventually standardize this? There is a generic vehicle for arbitrary strings attributes using DW_TAG_LLVM_annotation. Not that adding a dedicated tag is expensive, just wanted to point out it's an option.
I've briefly talked with a DWARF committee member about proposing this to the DWARF committee. I would like to do that, and think that's the right path forward; however, I have not prioritized that work.
> * Have you considered folding the dialect into DISourceLanguageName, which is where the other language code/version details live?
It wasn't immediately something I thought about when putting together the initial patch, after some thought on this, and some experimentation, I like the idea. I think it's cleaner to isolate all language-related descriptors/fields to a single class. However, on the other hand one could argue that the dialect, which reflects the execution/programming model, could stand alone as its own idea. I've pushed a change to this PR to add the "Dialect" to `DISourceLanguageName`
https://github.com/llvm/llvm-project/pull/194898
More information about the llvm-commits
mailing list