Adrian Prantl
b8f2d33ded
[DebugInfo] Use the human-readable name as name of FwdDecls of unused structs
...
rdar://162080220
2025-10-06 17:54:57 -07:00
Felipe de Azevedo Piovezan
a321b0afe0
[DebugInfo] Update tests to expect new LLVM debug format
2024-07-23 11:06:12 -07:00
Felipe de Azevedo Piovezan
1ed9df0a0c
[DebugInfo] Update tests to use opaque ptrs
2023-06-16 15:05:44 -04:00
Arnold Schwaighofer
c1a93e0bde
Move tests over to use the %use_no_opaque_pointers option
2023-06-14 10:49:48 -07:00
Adrian Prantl
0f4429b224
DebugTypeInfo: Prefer the size of the Storage type derived from the TypeInfo.
...
Previously type sizes would be inconsistently sourced from either the LLVM type
or the FixedTypeInfo, depending on the call site. This was problematic because
TypeInfo operates with a resolution of whole bytes, which means that types such
as i1 would get a reported as having a size of 8. This patch now asserts that
all occurrences of the same type have the same size as the first, cached
occurence.
To avoid triggering the cached type verification assertion, this patch avoids
caching of storage-sized containers. It also removes the unique identifier from
forward declarations, which could lead to type confusion during LTO.
rdar://102367872
2023-02-08 15:09:53 -08:00
Erik Eckstein
39bb14b094
change mangling prefix from $S to $s
...
This is the final ABI mangling prefix
rdar://problem/38471478
2018-09-19 13:55:11 -07:00
Adrian Prantl
bab3000069
Use depth and index to lookup type metadata artificial variables
...
instead of using name and decl context.
The advantages of this approach are three-fold:
- This is necessary to support inlined generic functions.
- We can retire the debugger-specific type name manfgling mode for archetypes.
- This saves 270kb of debug information in the x86_64 libSwiftCore.dylib alone.
<rdar://problem/38306256>
2018-06-12 12:48:15 -07:00
Erik Eckstein
cd3d50a5d9
ABI: Change the mangling prefix from _T0 to $S
2018-01-06 13:55:59 -08:00
Pavel Yaskevich
600b15821d
[Mangling/ABI] NFC: Fix DebugInfo tests to reflect label mangling changes
2017-12-18 15:44:24 -08:00
Adrian Prantl
dc24c29bc8
Adapt to upstream LLVM changes in pretty-printing DIExpression.
2017-08-24 08:53:22 -07:00
Adrian Prantl
84d9238315
Emit llvm.dbg.declare intrisics immediately after the described alloca.
...
This cleanup change doesn't change the semantics, but it makes the
resulting IR much easier to read and debug.
2017-05-24 09:13:41 -07:00
Adrian Prantl
0b2b0c036c
Revert "Emit llvm.dbg.declare intrisics immediately after the described alloca."
...
This reverts commit 8660fd489a .
2017-05-23 11:42:13 -07:00
Adrian Prantl
8660fd489a
Emit llvm.dbg.declare intrisics immediately after the described alloca.
...
This cleanup change doesn't change the semantics, but it makes the
resulting IR much easier to read and debug.
2017-05-23 09:23:41 -07:00
Erik Eckstein
c4a11f4c92
tests: remove the now unused option -new-mangling-for-tests
2017-03-22 11:28:43 -07:00
Erik Eckstein
1d3724666f
tests: convert about 400 tests to the new mangling by using the -new-mangling-for-tests option
...
When the new mangling is enabled permanently, the option can be removed from the RUN command lines again.
2017-01-24 15:27:45 -08:00
Dmitri Gribenko
d175b3b66d
Migrate FileCheck to %FileCheck in tests
2016-08-10 23:52:02 -07:00
Adrian Prantl
0fac43e11f
Adapt to upstream LLVM changes.
...
<rdar://problem/25949511+25962000>
(cherry picked from commit df9dfac609d17cd26d6107f17024c937b1b5b1a2)
2016-05-13 22:04:00 -07:00
Manav Gabhawala
7928140f79
[SE-0046] Implements consistent function parameter labels by discarding extraneous parameter names and adding _ where necessary
2016-04-06 20:21:58 -04:00
Adrian Prantl
b6528b26be
Replace a hard-coded line number with an @LINE.
2015-12-07 18:24:08 -08:00
Adrian Prantl
0e2e29194b
Mark this test as depending on ObjC bridging specifics.
2015-12-07 18:02:47 -08:00
Adrian Prantl
45d2badccb
Relax this testcase to also work on Linux.
2015-12-07 16:36:07 -08:00
Adrian Prantl
3aec2c993f
Debug Info: Fix the condition for detecting implicitly indirect types,
...
factor out the handling of implicitly indirect types
and add coverage for previouslt uncovered additional cases.
rdar://problem/23681035
2015-12-07 16:01:23 -08:00