Eli Friedman
dd299a35af
Fix for LLVM TargetData -> DataLayout rename.
...
Swift SVN r2959
2012-10-09 23:18:24 +00:00
Eli Friedman
519a683557
Shuffle around code to avoid a crash after IRGen errors.
...
Swift SVN r2510
2012-08-02 21:51:19 +00:00
Chris Lattner
32f529f1db
Split arc-optimizer into two passes: arc-optimize and arc-expand.
...
This makes the two phases independently testable, but is also the
right thing to do: previously we'd form swift_retain early enough
that inlining would inline them from previously optimized callees
into callers, and this would block some mid-level optimizations
from doing nice things (because swift_retain isn't no-escape).
It's a small thing, but doing this allows us to eliminate a few
more "and x, 9223372036854775807"'s from the stdlib. We also
end up doing a lot less optimizations because we do them early
instead of only having the optimizations exposed after inlining
deeply.
Swift SVN r2114
2012-06-02 16:43:51 +00:00
Eli Friedman
e2bfb30772
Add a verifier pass at the end of the optimization pipeline, to catch bugs in the ARC optimizer etc.
...
Swift SVN r2073
2012-05-30 18:47:41 +00:00
Chris Lattner
d1487a3ede
Scaffolding for ARC optimizer pass.
...
Swift SVN r2027
2012-05-28 00:04:29 +00:00
Eli Friedman
28cddd1b90
Make sure we use the right IR generation options for the IRGen standard library hack.
...
Swift SVN r1801
2012-05-10 22:22:18 +00:00
Eli Friedman
8f290b63a8
Extend the ugly standard library hack so it works for static compilation. We should be inlining from the standard library now everywhere except the REPL.
...
Swift SVN r1792
2012-05-10 01:14:56 +00:00
Chris Lattner
204b416229
raw_fd_ostream doesn't set the "has_error" bit in its ctor if it failed to open the file, it returns the error through the string reference error argument. This is half of fixing rdar://11388418.
...
The other half is on the llvm side.
Swift SVN r1761
2012-05-06 16:19:26 +00:00
Eli Friedman
ca1f3270bc
A couple minor tweaks to IRGen: turn on inlining when we're optimizing, and turn off non-leaf frame pointer elimination when we're generating an object file.
...
Swift SVN r1749
2012-05-05 02:16:07 +00:00
Eli Friedman
dc213bca76
Implement basic REPL under swift -repl. Known demo-blockers: need error recovery, need better brace/paren handling, need to implement the "print" part of REPL.
...
Swift SVN r1452
2012-04-18 00:52:11 +00:00
Eli Friedman
37de44a35d
Implement changes to parsing/sema/etc so that we can implement a REPL and the main module parses the same way as a REPL.
...
Next step: implement an actual REPL.
Swift SVN r1441
2012-04-16 23:52:01 +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
6b935588e5
On second thought, components need to be known in the AST.
...
Swift SVN r918
2011-12-07 03:57:41 +00:00
John McCall
c756d37afd
Basic Component interface.
...
Swift SVN r911
2011-12-06 21:48:27 +00:00
Chris Lattner
7568876781
update for mainline api change.
...
Swift SVN r895
2011-12-05 22:52:50 +00:00
John McCall
2a4352b4ca
Fix the build for LLVM API changes.
...
Swift SVN r869
2011-11-16 19:30:31 +00:00
Chris Lattner
d2ed4c2f3f
remove some unneeded ASTContext arguments from subsystem entrypoints
...
now that it is reachable from TU
Swift SVN r815
2011-11-01 18:33:48 +00:00
Chris Lattner
9298082ebb
move Diagnostics header to include/swift/AST to match .cpp files.
...
Swift SVN r782
2011-10-22 00:47:35 +00:00
Chris Lattner
dfd529ce3a
rename diags::foo to diag::foo
...
Swift SVN r779
2011-10-22 00:36:19 +00:00
Chris Lattner
f92f616aaf
remove hte ASTContext::hadError bool.
...
Swift SVN r778
2011-10-22 00:32:39 +00:00
Chris Lattner
5e8370dea0
eliminate some printouts from IRGen in favor of real diagnostics.
...
Swift SVN r777
2011-10-22 00:32:14 +00:00
John McCall
b6f312aea0
Verification should clearly follow each phase rather than coming
...
at the start of the next phase.
Swift SVN r731
2011-09-24 09:32:18 +00:00
John McCall
5fddb24ddc
Basic verifier framework.
...
Swift SVN r728
2011-09-23 23:50:02 +00:00
John McCall
54ff2ccf4a
Lop the last word off ModuleDecl and TranslationUnitDecl.
...
Swift SVN r693
2011-09-06 21:43:46 +00:00
Doug Gregor
67bcc9fac1
Some headers have moved around in LLVM; update to their new locations.
...
Swift SVN r637
2011-08-29 19:57:33 +00:00
John McCall
6cff7d48b6
Factor performIRGeneration into Subsystems.h.
...
Swift SVN r574
2011-08-20 01:10:23 +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