Commit Graph

12 Commits

Author SHA1 Message Date
Adrian Prantl
64cbec3805 Add SIL syntax for declaring debug variables.
Debug variable info may be attached to debug_value, debug_value_addr,
alloc_box, and alloc_stack instructions.

In order to write textual SIL -> SIL testcases that exercise the handling
of debug information by SIL passes, we need to make a couple of additions
to the textual SIL language. In memory, the debug information attached to
SIL instructions references information from the AST. If we want to create
debug info from parsing a textual .sil file, these bits need to be made
explicit.

Performance Notes: This is memory neutral for compilations from Swift
source code, because the variable name is still stored in the AST. For
compilations from textual source the variable name is stored in tail-
allocated memory following the SIL instruction that introduces the
variable.

<rdar://problem/22707128>
2015-12-14 10:29:50 -08:00
Dmitri Hrybenko
4375a463a7 stdlib: rename Int**.value and Float**.value to _value per naming convention
rdar://21357661

Swift SVN r32096
2015-09-20 00:01:13 +00:00
Duncan Exon Smith
c6d42db070 Adapt to MD* => DI* renaming of debug info types
Applied the upgrade script from r236120 (LLVM) and r236121 (CFE).  This is the
final step of rdar://problem/20434113.



Swift SVN r27925
2015-04-29 21:40:21 +00:00
Joe Groff
c0a2994564 AST: Start printing function types with @convention instead of old attributes.
And update tests to match.

Swift SVN r27262
2015-04-13 22:51:34 +00:00
Dmitri Hrybenko
3b04d1b013 tests: reorganize tests so that they actually use the target platform
Most tests were using %swift or similar substitutions, which did not
include the target triple and SDK.  The driver was defaulting to the
host OS.  Thus, we could not run the tests when the standard library was
not built for OS X.

Swift SVN r24504
2015-01-19 06:52:49 +00:00
Adrian Prantl
d7489b7272 Update testcases for new LLVM IR assembler syntax.
Swift SVN r24428
2015-01-14 23:38:18 +00:00
Adrian Prantl
162bc8d24c Updated testcases for upstream assembler changes.
Swift SVN r23942
2014-12-15 19:39:21 +00:00
Joe Groff
e3f9a2035c SIL: Move SILGen and passes over to use "builtin" instead of "apply (builtin_function_ref)".
Swift SVN r22785
2014-10-15 23:37:22 +00:00
Adrian Prantl
07505dbbc8 Revert "Relax test case to work with 32-bit and 64-bit ints."
Dmitri beat me to it and already fixed this by hardcoding it as an Int32.

Swift SVN r21458
2014-08-26 15:31:49 +00:00
Adrian Prantl
1023da19c8 Relax test case to work with 32-bit and 64-bit ints.
Swift SVN r21457
2014-08-26 15:11:41 +00:00
Dmitri Hrybenko
7784ce9e31 Simplify the test and make it independent of sizeof(Int.self) to allow
it to pass on 32-bit platforms

Swift SVN r21455
2014-08-26 08:22:24 +00:00
Adrian Prantl
3de439e574 Support debug info when compiling textual SIL files.
- Use SILFileLocations when compiling .sil with -g.
- Fix a crash when trying to find the Builtin module.

Part of <rdar://problem/17999350> `swiftc -g` crashes in some Swift tests

Swift SVN r21425
2014-08-22 22:48:12 +00:00