diff options
author | Scott Linder <scott.linder@amd.com> | 2025-07-21 18:42:21 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-21 18:42:21 -0400 |
commit | 354944d675c04c87bc0e9ebcca900148f5a344b8 (patch) | |
tree | 96ec6ecff0bf08f90409b0d0f82762a9570bc5b6 /llvm/test/CodeGen/SPIRV/pointers/kernel-argument-ptr-no-bitcast.ll | |
parent | 97a66a897caeb1445160d1862fd5b35bb5416ffb (diff) | |
download | llvm-main.zip llvm-main.tar.gz llvm-main.tar.bz2 |
Finish making LLVM's implementation of `DW_LNCT_LLVM_source` conform to
the final accepted version of `DW_LNCT_source` from
https://dwarfstd.org/issues/180201.1.html
This is effectively a continuation of a few commits which have moved in
this direction already, including:
* c9cb4fc761cd7 [DebugInfo] Store optional DIFile::Source as pointer
* 87e22bdd2bd6d Allow for mixing source/no-source DIFiles in one CU
This patch:
* Teaches LLParser that there is a distinction between an empty and an
absent "source:" field on DIFile.
* Makes printing the "source:" field in AsmWriter conditional on it
being present, instead of being conditional on it being non-empty.
* Teaches MC to map an empty-but-present source field to "\n" (which is
ambiguous, making the source strings "" and "\n" indistinguishable, but
that's what the DWARF issue specifies).
Add a test for round-tripping an empty source field through
assembler/bitcode.
Extend the test for the actual DWARF generation so it covers all of the
cases (absent, present-but-empty,
present-and-ambiguously-single-newline, present).
Diffstat (limited to 'llvm/test/CodeGen/SPIRV/pointers/kernel-argument-ptr-no-bitcast.ll')
0 files changed, 0 insertions, 0 deletions