llvm-project/llvm/test/DebugInfo
David Blaikie a5032b2633 DebugInfo: Don't allow type units to references types in the CU
We could only do this in limited ways (since we emit the TUs first, we
can't use ref_addr (& we can't use that in Split DWARF either) - so we
had to synthesize declarations into the TUs) and they were ambiguous in
some cases (if the CU type had internal linkage, parsing the TU would
require knowing which CU was referencing the TU to know which type the
declaration was for, which seems not-ideal). So to avoid all that, let's
just not reference types defined in the CU from TUs - instead moving the
TU type into the CU (recursively).

This does increase debug info size (by pulling more things out of type
units, into the compile unit) - about 2% of uncompressed dwp file size
for clang -O0 -g -gsplit-dwarf. (5% .debug_info.dwo section size
increase in the .dwp)
2022-03-25 23:49:03 +00:00
..
AArch64 [MIRParser] Diagnose too large align values in MachineMemOperands 2022-02-24 15:32:08 +00:00
AMDGPU Revert "[DwarfDebug] Support emitting function-local declaration for a lexical block" & dependent patches 2021-12-24 00:47:04 +02:00
ARM [DebugInfo][ARM] Fix incorrect debug information for RWPI accessed globals 2021-10-18 21:29:46 +01:00
BPF Revert "[DwarfDebug] Support emitting function-local declaration for a lexical block" & dependent patches 2021-12-24 00:47:04 +02:00
COFF [DebugInfo][InstrRef] Prefer stack locations for variables 2022-03-17 14:26:15 +00:00
Generic [NVPTX][tests] Do not run tests that require direct object generation 2022-03-22 16:46:48 +04:00
Inputs [DWARF] Standardize checks and remove verbose where possible in DWARF tests 2021-10-31 09:49:10 -04:00
Lanai
MIR [DebugInfo][InstrRef] Prefer stack locations for variables 2022-03-17 14:26:15 +00:00
MSP430 [DebugInfo] Avoid triggering global location assert for 2-byte pointer sizes. 2022-01-04 15:16:36 -05:00
Mips [LiveDebugValues][InstrRef][2/2] Emit entry value variable locations 2021-06-30 23:07:39 +01:00
NVPTX Revert D119669 "[NVPTX] Prefix "$L__" for branch label names" 2022-02-14 13:23:22 -08:00
PDB [test] Avoid llvm-readelf/llvm-readobj one-dash long options and deprecated aliases (e.g. --file-headers) 2021-07-15 10:26:21 -07:00
PowerPC Revert "[DwarfDebug] Support emitting function-local declaration for a lexical block" & dependent patches 2021-12-24 00:47:04 +02:00
RISCV Revert "[NFC] remove explicit default value for strboolattr attribute in tests" 2021-05-24 19:43:40 +02:00
Sparc [LiveDebugValues][InstrRef][2/2] Emit entry value variable locations 2021-06-30 23:07:39 +01:00
Symbolize/ELF [llvm-symbolizer][llvm-nm] Fix AArch64 and ARM mapping symbols handling. 2021-03-23 14:17:12 +01:00
SystemZ [SystemZ] Implement orderFrameObjects(). 2022-01-27 16:09:19 -06:00
WebAssembly [WebAssembly] Add TargetInstrInfo::getCalleeOperand 2021-05-26 11:43:59 -07:00
X86 DebugInfo: Don't allow type units to references types in the CU 2022-03-25 23:49:03 +00:00
XCOFF [DebugInfo] Fix end_sequence of debug_line in LTO Object 2021-11-14 20:19:47 -08:00
XCore [Xcore] Set Int_MemBarrier as a meta-instruction 2022-03-19 17:52:37 +08:00
arange-overlap.test
arm-relocs.test
attr-btf_tag.ll Revert "[DwarfDebug] Support emitting function-local declaration for a lexical block" & dependent patches 2021-12-24 00:47:04 +02:00
attr-btf_type_tag.ll [NVPTX][tests] Do not run tests that require direct object generation 2022-03-22 16:46:48 +04:00
cDefaultLower.ll
check-debugify-preserves-analyses.ll [FunctionAttrs] Rename functionattrs -> function-attrs 2020-07-28 09:09:13 -07:00
cross-cu-inlining.test
cross-cu-scope.ll [tests] Make 'object-emission' imply 'default_triple' 2022-03-22 16:46:48 +04:00
debug-frame-cie-pointer-reloc.test
debugify-bogus-dbg-value.ll [llvm] Inclusive language: replace master with main in file paths in LIT tests 2021-11-08 12:39:50 -06:00
debugify-each.ll [Debugify] Skip debugifying on special/immutable passes 2020-11-16 20:39:46 -08:00
debugify-export.ll [Debugify] Skip debugifying on special/immutable passes 2020-11-16 20:39:46 -08:00
debugify-ignore-phi.ll [Transforms][Debugify] Fix "Missing line" false alarm on PHI nodes 2021-05-14 14:06:13 +02:00
debugify-original-no-dbg-info.ll Reland "[Debugify] Make the debugify aware of the original (-g) Debug Info" 2021-02-18 23:29:22 -08:00
debugify-report-missing-locs-only.ll
debugify.ll [DIBuilder] Do not replace empty enum types 2021-08-30 12:33:03 -07:00
debuglineinfo-macho.test
debuglineinfo-path.ll [tests] Make 'object-emission' imply 'default_triple' 2022-03-22 16:46:48 +04:00
debuglineinfo.test
debugmacinfo-dwo.test
debugmacinfo.test
duplicate_dbgvalue.ll
dwarfdump-16bit-addr.test
dwarfdump-accel.test
dwarfdump-bad-lookup-address.test
dwarfdump-dataLocationExp.ll
dwarfdump-dataLocationVar.ll
dwarfdump-debug-frame-simple.test Add regular expressions to and DWARF Call Frame Information tests in case the architecture specific target is not compiled into LLVM. 2020-10-07 14:27:19 -07:00
dwarfdump-decompression-corrupt.test
dwarfdump-decompression-error.test
dwarfdump-dump-flags.test
dwarfdump-dump-gdbindex.test
dwarfdump-dwp.test
dwarfdump-immutable.ll [NVPTX][tests] Do not run tests that require direct object generation 2022-03-22 16:46:48 +04:00
dwarfdump-implicit-const.test
dwarfdump-macho-relocs.test
dwarfdump-macho-universal.test
dwarfdump-objc.test
dwarfdump-pubnames.test
dwarfdump-pushobjectaddress.ll
dwarfdump-ranges.test
dwarfdump-type-units.test llvm-dwarfdump --summarize-types: skip compilation units 2022-01-05 20:36:04 -08:00
dwarfdump-zlib.test
dwo.ll [tests] Make 'object-emission' imply 'default_triple' 2022-03-22 16:46:48 +04:00
fortran-string-type.ll [DebugInfo] Add stringLocationExp field to DIStringType 2022-01-26 11:56:57 -05:00
fortranDefaultLower.ll
fortranSubrangeCountExpr.ll [DebugInfo] Upgrade DISubragne::count to accept DIExpression also 2021-03-30 09:16:55 +05:30
fortranSubrangeExpr.ll
fortranSubrangeInt.ll
fortranSubrangeVar.ll
gcc-local-mem-func.test
high-pc-constant.test
implicit-const-test2.s llvm-dwarfdump: Fix DWARF-5 DW_FORM_implicit_const (used by GCC) 2021-03-09 09:26:58 +01:00
invalid-inlined-subroutine.s Fix a crash in DWARFUnit::getInlinedChainForAddress in case of unexpected DWARF information. 2021-03-09 14:20:27 +04:00
invalid-relocations.test
limit-arglist-size.ll Partial Reapply "[DebugInfo] Use variadic debug values to salvage BinOps and GEP instrs with non-const operands" 2021-06-24 09:46:38 +01:00
llvm-symbolizer-bbsections-test.s Recommit D91678 after fixing the test breakage. 2021-01-09 17:44:12 -08:00
macro_link.ll
member-pointers.o
missing-abstract-variable.o
omit-empty.ll [tests] Make 'object-emission' imply 'default_triple' 2022-03-22 16:46:48 +04:00
pr34186.ll
pr34672.ll
pr37964.ll [NFC] Rename GVN -> GVNPass and SROA -> SROAPass 2021-11-09 10:35:58 -08:00
precomp.test
salvage-cast-debug-info.ll [EarlyCSE] Verify hash code in regression tests 2020-09-04 10:40:35 -04:00
salvage-duplicate-values.ll Reapply "[DebugInfo] Enable variadic debug value salvaging" 2021-07-15 12:54:51 +01:00
salvage-gep.ll [DebugInfo] Correctly handle arrays with 0-width elements in GEP salvaging 2021-10-18 12:01:12 +01:00
salvage-limit-expr-size.ll [DebugInfo] Limit the size of DIExpressions that we will salvage up to 2021-10-15 17:34:21 +01:00
salvage-nonconst-binop.ll Reapply "[DebugInfo] Enable variadic debug value salvaging" 2021-07-15 12:54:51 +01:00
simplify-cfg-preserve-dbg-values.ll
skeletoncu.ll [tests] Make 'object-emission' imply 'default_triple' 2022-03-22 16:46:48 +04:00
strip-DIGlobalVariable.ll
strip-loop-metadata.ll
strip-module-flags.ll
symbolize-64bit-address.test
symbolize-absolute-path-in-debug-line.s
symbolize-build-id-error.test [yaml2obj] - ProgramHeaders: introduce FirstSec/LastSec instead of Sections list. 2020-11-09 13:00:50 +03:00
symbolize-build-id.test [yaml2obj] - ProgramHeaders: introduce FirstSec/LastSec instead of Sections list. 2020-11-09 13:00:50 +03:00
symbolize-demangling.s [Symbolize] Demangle Rust symbols 2021-10-16 13:32:17 +02:00
symbolize-directory.s
symbolize-gnu-debuglink-fallback.test
symbolize-gnu-debuglink-no-realpath.test
symbolize-gnu-debuglink.test
symbolize-inlined.test
symbolize-macho-universal-unknown-arch.test Revert several changes related to llvm-symbolizer exiting non-zero on failure. 2020-10-21 15:21:44 -07:00
symbolize-macho-universal.test
symbolize-missing-file.test [test] Use host platform specific error message substitution in lit tests 2021-01-29 07:16:30 -05:00
symbolize-no-debug-str.test
symbolize-paths.s
symbolize-shared-abbrev.s
symbolize-split-dwarf-empty.test
symbolize-split-dwarf-no-skel-address.test
symbolize-stripped-sections.test
symbolize-stripped.test
symbolize-tu.test
symbolize-zlib.test
symbolize.test
typeunit-header.test
unrolled-loop-remainder.ll [runtime-unroll] Use incrementing IVs instead of decrementing ones 2021-11-12 15:44:58 -08:00