[all-commits] [llvm/llvm-project] 6c9542: Add NVPTX DW_AT_LLVM_language_dialect emission. (#...

Matt Davis via All-commits all-commits at lists.llvm.org
Fri May 29 08:43:38 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6c9542c3f99e5cc8cdba8122b36323370fcf6d95
      https://github.com/llvm/llvm-project/commit/6c9542c3f99e5cc8cdba8122b36323370fcf6d95
  Author: Matt Davis <mattd at nvidia.com>
  Date:   2026-05-29 (Fri, 29 May 2026)

  Changed paths:
    M llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
    M llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
    M llvm/lib/Target/NVPTX/NVPTXDwarfDebug.cpp
    M llvm/lib/Target/NVPTX/NVPTXDwarfDebug.h
    A llvm/test/DebugInfo/NVPTX/language-dialect.ll

  Log Message:
  -----------
  Add NVPTX DW_AT_LLVM_language_dialect emission. (#200003)

This PR makes use of the recently introduced DW_AT_LLVM_language_dialect
attribute. Currently, no other targets emit this compile unit DWARF
attribute ; however, this PR changes that. NVPTX can optionally emit a
dialect based on the type of input being compiled (e.g., from a Tile
frontend or traditional CUDA (SIMT) frontend).

- DwarfDebug: add finishTargetUnitAttributes virtual hook so backends
can finalize per-CU attributes.
- NVPTX: override the hook to emit DW_AT_LLVM_language_dialect
(DW_FORM_data1) for the simt and tile dialects, suppressing emission and
warning (per-CU deduplicated) for unknown values.

(Co-developed via LLM)



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list