[llvm] [DNM][DebugInfo] Draft implementation of DW_TAG_property (PR #212602)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 28 14:49:19 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 179743 tests passed
* 3586 tests skipped
* 3 tests failed

## Failed Tests
(click on a test name to see its output)

### LLVM
<details>
<summary>LLVM.Assembler/diproperty.ll</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-as < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Assembler/diproperty.ll | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-dis | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-as | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-dis | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Assembler/diproperty.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-as
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-dis
# .---command stderr------------
# | llvm-dis: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Bitcode/Reader/MetadataLoader.cpp:1207: void llvm::MetadataLoader::MetadataLoaderImpl::lazyLoadOneMetadata(unsigned int, PlaceholderQueue &): Assertion `ID < (MDStringRef.size()) + GlobalMetadataBitPosIndex.size()' failed.
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
# | Stack dump:
# | 0.	Program arguments: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-dis
# |  #0 0x00000000005dfadb llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:928:13
# |  #1 0x00000000005dcb21 llvm::sys::RunSignalHandlers() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Signals.cpp:109:18
# |  #2 0x00000000005e08eb SignalHandler(int, siginfo_t*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:474:38
# |  #3 0x00007bbbaff39330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
# |  #4 0x00007bbbaff92b2c pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x9eb2c)
# |  #5 0x00007bbbaff3927e raise (/lib/x86_64-linux-gnu/libc.so.6+0x4527e)
# |  #6 0x00007bbbaff1c8ff abort (/lib/x86_64-linux-gnu/libc.so.6+0x288ff)
# |  #7 0x00007bbbaff1c81b (/lib/x86_64-linux-gnu/libc.so.6+0x2881b)
# |  #8 0x00007bbbaff2f517 (/lib/x86_64-linux-gnu/libc.so.6+0x3b517)
# |  #9 0x0000000000410748 llvm::MetadataLoader::MetadataLoaderImpl::lazyLoadOneMetadata(unsigned int, (anonymous namespace)::PlaceholderQueue&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Bitcode/Reader/MetadataLoader.cpp:1208:3
# | #10 0x0000000000406bd3 resolveForwardRefsAndPlaceholders /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Bitcode/Reader/MetadataLoader.cpp:1261:25
# | #11 0x0000000000406bd3 llvm::MetadataLoader::MetadataLoaderImpl::resolveLoadedMetadata((anonymous namespace)::PlaceholderQueue&, llvm::MetadataLoader::MetadataLoaderImpl::DebugInfoUpgradeMode) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Bitcode/Reader/MetadataLoader.cpp:757:5
# | #12 0x00000000004064f5 setChecked /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:306:13
# | #13 0x00000000004064f5 operator= /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:221:5
# | #14 0x00000000004064f5 Error /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:198:11
# | #15 0x00000000004064f5 llvm::MetadataLoader::MetadataLoaderImpl::parseMetadata(bool) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Bitcode/Reader/MetadataLoader.cpp:1176:14
# | #16 0x00000000003ea06d getPtr /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:278:42
# | #17 0x00000000003ea06d operator bool /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:241:16
# | #18 0x00000000003ea06d (anonymous namespace)::BitcodeReader::parseModule(unsigned long, bool, llvm::ParserCallbacks) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Bitcode/Reader/BitcodeReader.cpp:0:0
# | #19 0x00000000003c2ae9 _M_reset /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/optional:317:12
# | #20 0x00000000003c2ae9 ~_Optional_payload /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/optional:441:57
# | #21 0x00000000003c2ae9 ~_Optional_base /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/optional:512:12
# | #22 0x00000000003c2ae9 ~ParserCallbacks /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Bitcode/BitcodeReader.h:75:8
# | #23 0x00000000003c2ae9 parseBitcodeInto /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Bitcode/Reader/BitcodeReader.cpp:4954:3
# | #24 0x00000000003c2ae9 llvm::BitcodeModule::getModuleImpl(llvm::LLVMContext&, bool, bool, bool, llvm::ParserCallbacks) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Bitcode/Reader/BitcodeReader.cpp:8810:22
# | #25 0x00000000003c3872 _M_reset /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/optional:317:12
# | #26 0x00000000003c3872 ~_Optional_payload /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/optional:441:57
# | #27 0x00000000003c3872 ~_Optional_base /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/optional:512:12
# | #28 0x00000000003c3872 ~ParserCallbacks /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Bitcode/BitcodeReader.h:75:8
# | #29 0x00000000003c3872 llvm::BitcodeModule::getLazyModule(llvm::LLVMContext&, bool, bool, llvm::ParserCallbacks) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Bitcode/Reader/BitcodeReader.cpp:8830:3
# | #30 0x00000000003bb642 main /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/tools/llvm-dis/llvm-dis.cpp:217:13
# | #31 0x00007bbbaff1e1ca (/lib/x86_64-linux-gnu/libc.so.6+0x2a1ca)
# | #32 0x00007bbbaff1e28b __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28b)
# | #33 0x00000000003ba945 _start (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-dis+0x3ba945)
# `-----------------------------
# error: command failed with exit status: -6
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-as
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-dis
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Assembler/diproperty.ll
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Assembler/diproperty.ll:5:10: error: CHECK: expected string not found in input
# | ; CHECK: !named = !{!0, !1, !2, !3, !5, !6, !6}
# |          ^
# | <stdin>:1:1: note: scanning from here
# | ; ModuleID = '<stdin>'
# | ^
# | <stdin>:2:11: note: possible intended match here
# | source_filename = "<stdin>"
# |           ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Assembler/diproperty.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |            1: ; ModuleID = '<stdin>' 
# | check:5'0    {                         search range start (exclusive)
# | check:5'1                              error: no match found in search range
# |            2: source_filename = "<stdin>" 
# | check:5'2               ?                   possible intended match
# | check:5'3                                 } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>LLVM.DebugInfo/Generic/property.ll</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 3
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -filetype=obj -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/DebugInfo/Generic/Output/property.ll.tmp.o /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/DebugInfo/Generic/property.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -filetype=obj -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/DebugInfo/Generic/Output/property.ll.tmp.o /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/DebugInfo/Generic/property.ll
# note: command had no output on stdout or stderr
# RUN: at line 4
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-dwarfdump --debug-info /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/DebugInfo/Generic/Output/property.ll.tmp.o | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/DebugInfo/Generic/property.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-dwarfdump --debug-info /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/DebugInfo/Generic/Output/property.ll.tmp.o
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/DebugInfo/Generic/property.ll
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/DebugInfo/Generic/property.ll:23:10: error: CHECK: expected string not found in input
# | ; CHECK: DW_TAG_property
# |          ^
# | <stdin>:21:19: note: scanning from here
# |  DW_AT_name ("_x")
# |                   ^
# | <stdin>:29:13: note: possible intended match here
# | 0x00000029: DW_TAG_base_type
# |             ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/DebugInfo/Generic/property.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             .
# |             .
# |             .
# |            16:  DW_AT_byte_size (0x08) 
# |            17:  DW_AT_decl_file ("/tmp/t.swift") 
# |            18:  DW_AT_decl_line (7) 
# |            19:  
# |            20: 0x0000001f: DW_TAG_member 
# |            21:  DW_AT_name ("_x") 
# | check:23'0                      {   search range start (exclusive)
# | check:23'1                          error: no match found in search range
# |            22:  DW_AT_type (0x00000029 "Int") 
# |            23:  DW_AT_decl_file ("/tmp/t.swift") 
# |            24:  DW_AT_decl_line (8) 
# |            25:  DW_AT_data_member_location (0x00) 
# |            26:  
# |            27: 0x00000028: NULL 
# |            28:  
# |            29: 0x00000029: DW_TAG_base_type 
# | check:23'2                 ?                  possible intended match
# |            30:  DW_AT_name ("Int") 
# |            31:  DW_AT_encoding (DW_ATE_signed) 
# |            32:  DW_AT_byte_size (0x08) 
# |            33:  
# |            34: 0x0000002d: DW_TAG_class_type 
# |             .
# |             .
# |             .
# |            44:  DW_AT_decl_line (13) 
# |            45:  DW_AT_data_member_location (0x00) 
# |            46:  
# |            47: 0x0000003b: NULL 
# |            48:  
# |            49: 0x0000003c: NULL 
# | check:23'3                      } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>LLVM.Verifier/diproperty.ll</summary>

```
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 1
not /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-as < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Verifier/diproperty.ll -disable-output 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Verifier/diproperty.ll
# executed command: not /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-as -disable-output
# note: command had no output on stdout or stderr
# error: command failed with exit status: 1
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Verifier/diproperty.ll
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line:  /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Verifier/diproperty.ll
# `-----------------------------
# error: command failed with exit status: 2

--

```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

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


More information about the llvm-commits mailing list