Commit Graph

13 Commits

Author SHA1 Message Date
Michael Gottesman
4dc7cee606 Add in the option -disable-llvm-optzns to swift.
-disable-llvm-optzns in clang tells the frontend to do everything it would
normally do at lets say -O2, except run the actual LLVM IR passes on the
resulting IR. This is useful in the case where one wants to look at the result
of a non gauranteed SIL optimization pass at the IR level without llvm
optimizations applied.

Swift SVN r8594
2013-09-24 16:48:09 +00:00
Joe Groff
e011a80ba8 Add an option to disable 'unimplemented' errors for dynamic type layout.
This will let me work on dynamic value type layout without leaving crash bugs for the library team to puzzle over.

Swift SVN r7897
2013-09-04 15:54:07 +00:00
Adrian Prantl
3313f8acbc Debug info: emit command line options.
Swift SVN r6778
2013-07-31 18:48:59 +00:00
Adrian Prantl
e147e1a385 Initialize the DebugInfo field in the default constructor of Options.
Swift SVN r6015
2013-07-05 20:37:10 +00:00
Adrian Prantl
2db17656f5 Debug Info: Wire up the CU's main file to point to the the first input file passed on the command line.
Swift SVN r5805
2013-06-25 22:07:33 +00:00
Adrian Prantl
0f7533dc7e Debug Info! Add basic support for line tables, compilation units, files,
and lexical scopes, which can be enabled through the new -g option.
When -g is enabled, line tables and scopes compile all the way
down to DWARF.

Changes to SIL:
- In addition to a SILLocation, every instruction now also has a pointer
  to a SILDebugScope (its containing lexical scope).
- Added LexicalScope, which is to be used for all Scopes we want to show
  up in the debug info.

Swift SVN r5772
2013-06-23 00:09:17 +00:00
Doug Gregor
07be3f3e7f Use the Objective-C runtime to unique selectors in JIT'd code.
When generating IR for the JIT, use sel_registerName() to unique the
selector references we generate. Static code doesn't need this
pessimization. Fixes <rdar://problem/12764732>.


Swift SVN r3403
2012-12-07 17:13:27 +00:00
Eli Friedman
760b49f4c6 Remove unused bit from IRGen options.
Swift SVN r1750
2012-05-05 03:19:11 +00:00
Eli Friedman
dd17ba6324 A few minor bugfixes for REPL.
Swift SVN r1477
2012-04-18 21:49:27 +00:00
Eli Friedman
d295d02c42 Initial interpreter implementation. The included pieces are enough to get the included simple.swift running in swift -i mode. <rdar://problem/10962290>, part 1.
Swift SVN r1319
2012-04-04 01:34:42 +00:00
John McCall
15922d77b4 Go ahead and support outputting to .ll, .bc, .s, and .o.
Swift SVN r546
2011-08-13 22:01:51 +00:00
John McCall
42449b02bb Massively slow down link times by uselessly emitting empty modules.
Swift SVN r538
2011-08-13 07:40:45 +00:00
John McCall
bca041368d Structure for IR generation.
Swift SVN r537
2011-08-13 05:37:06 +00:00