Commit Graph

1853 Commits

Author SHA1 Message Date
Graydon Hoare
316158df8e Bump LLVM version strings to 3.0svn, we're effectively tied to it now anyways. 2011-03-14 17:33:06 -07:00
Graydon Hoare
7f5bffc3ea Merge remote branch 'brson/recursive-elseif' 2011-03-14 16:59:04 -07:00
Brian Anderson
8b5574ac09 Rename check_assignment_like to check_assignment since it turned out not to be useful for send/recv 2011-03-14 16:41:46 -07:00
Brian Anderson
b83a4af93c Fix the typechecking for expr_send and expr_recv 2011-03-14 16:41:46 -07:00
Brian Anderson
4ce4d8857f Add ty_port and ty_chan to expr_ty function 2011-03-14 16:41:46 -07:00
Brian Anderson
83f758cf0d Typecheck expr_send and expr_recv 2011-03-14 16:41:46 -07:00
Brian Anderson
a309f74a94 Reorganize evaluation of expr_send/recv to put them closer to expr_assign, to which they are similar 2011-03-14 16:41:46 -07:00
Brian Anderson
f0842030f3 Fix typo in expr_recv parsing 2011-03-14 16:41:46 -07:00
Brian Anderson
644d8b95da Factor out expression checking for forms that look like assignment 2011-03-14 16:41:46 -07:00
Brian Anderson
7464237256 Add folding and type checking for ports and chans 2011-03-14 16:41:46 -07:00
Brian Anderson
a3cca65f6d Fold ty_chan and ty_port 2011-03-14 16:41:46 -07:00
Brian Anderson
292dac644f Parse receive expressions 2011-03-14 16:41:46 -07:00
Brian Anderson
80e0ebaa86 Parse port and chan types, constructors, send statements 2011-03-14 16:41:46 -07:00
Graydon Hoare
45f7955261 Put out darwin fire. 2011-03-14 16:14:17 -07:00
Brian Anderson
c5721759bb Add fannkuchredux shootout benchmark 2011-03-14 15:52:48 -07:00
Brian Anderson
cba00ac2a1 Rename binary trees benchmark to match the original shootout source 2011-03-14 15:52:48 -07:00
Brian Anderson
467b9f3908 Implement the rest of the binary trees shootout benchmark 2011-03-14 15:52:48 -07:00
Brian Anderson
922f69387d Add _int.pow 2011-03-14 15:52:48 -07:00
Brian Anderson
ac72f42b1c Mention test/bench in README 2011-03-14 15:52:48 -07:00
Brian Anderson
595c4862ab Remove broken 99-bottles makefile and run script 2011-03-14 15:52:48 -07:00
Brian Anderson
97245edd80 Add 99-bottles benchmarks to testsuite 2011-03-14 15:52:48 -07:00
Brian Anderson
8438eca45c Integrate shootout benchmarks into testsuite 2011-03-14 15:52:48 -07:00
Brian Anderson
242ecd0e96 Reorganize makefile targets 2011-03-14 15:52:48 -07:00
Marijn Haverbeke
77f4c52c3e Make pretty-printer print 'with' clause in rec literals 2011-03-14 14:57:13 -07:00
Marijn Haverbeke
ea5dc54c3f Add functionality for running external programs to the std lib
See lib/run_program.rs.
2011-03-14 14:57:13 -07:00
Marijn Haverbeke
441697ab35 Extend stream functionality
Writer and reader streams now come with methods to write and read
little-endian numbers. Whether that is the right place for such
methods is debatable, but for now, that's where they live.
2011-03-14 14:57:13 -07:00
Marijn Haverbeke
c731d625fe Add basic file-system functionality
std.fs.list_dir will list the files in a directory, std.fs.file_is_dir
will, given a pathname, determine whether it is a directory or not.
2011-03-14 14:57:13 -07:00
Rafael Ávila de Espíndola
3436979b17 Split trans' collection in two passes. This allows us to handle tags
that are defined after use in a block.

This is really inefficient, but for now it lets us compile the included test.
2011-03-14 16:56:03 -04:00
Brian Anderson
bbb6836da0 Merge branch 'master' into recursive-elseif
Conflicts:

	src/comp/middle/typeck.rs
2011-03-13 19:40:25 -04:00
Brian Anderson
2a662944a4 Remove extra blocks from the translation of expr_block
Doesn't seem to break anything and allows trans_if to be streamlined
2011-03-13 19:29:40 -04:00
Patrick Walton
fdc22ef1a1 Add llvmext/include to the list of include directories to hopefully put out the burning tinderbox 2011-03-11 18:20:13 -08:00
Patrick Walton
57c2fa9d11 Rename libsupport to librustllvm 2011-03-11 18:17:57 -08:00
Patrick Walton
d34e1ff89e rustc: Add a binding to LLVM's object file reader. Until it's sent upstream, add an explicit "support" library for our LLVM extensions. 2011-03-11 18:03:00 -08:00
Graydon Hoare
a8fbb53d64 Include glob in crate depfile deps, to handle file-add events with cached depfiles. Closes #269. 2011-03-11 16:16:35 -08:00
Graydon Hoare
ec7e84ae0d Preserve crate directives in the parsed crate. 2011-03-11 15:49:56 -08:00
Graydon Hoare
d24acf733a Remove redundant entry from Makefile 2011-03-11 15:49:56 -08:00
Patrick Walton
9b3db0ed44 rustc: Add some stub metadata to each crate 2011-03-11 15:35:50 -08:00
Rafael Ávila de Espíndola
74d891517b reindex the block index. 2011-03-11 17:35:33 -05:00
Patrick Walton
1feaf8ffb5 Re-XFAIL size-and-align.rs to put out burning tinderbox 2011-03-11 14:33:54 -08:00
Patrick Walton
6392bd1681 rustc: Load structural loop variables in iterators. Un-XFAIL foreach-put-structured.rs. 2011-03-11 14:29:45 -08:00
Rafael Ávila de Espíndola
28d51e3fd2 Add support for indexing tags in blocks. 2011-03-11 17:12:25 -05:00
Patrick Walton
5c21f03990 rustc: Un-XFAIL test/run-pass/foreach-simple-outer-slot.rs 2011-03-11 13:48:25 -08:00
Graydon Hoare
fc7cbe31f9 Switch rustboot from element-wise copying to take+drop+memcpy. Un-XFAIL size-and-align.rs for rustc. 2011-03-11 13:44:24 -08:00
Patrick Walton
2ef5728722 rustc: Un-XFAIL generic-iter-frame.rs 2011-03-11 12:11:24 -08:00
Patrick Walton
a93ab2e1b1 Un-XFAIL test/run-pass/foreach-nested.rs and test/run-pass/foreach-nested-2.rs 2011-03-11 12:06:09 -08:00
Patrick Walton
37007a4d01 rustc: Populate the upvar environment when calling iterator bodies. Un-XFAIL test/run-pass/iter-range.rs. 2011-03-11 12:02:51 -08:00
Patrick Walton
336f22db61 rustc: Resolve upvars as necessary 2011-03-11 10:39:36 -08:00
Rafael Ávila de Espíndola
0117cf2fc2 Handle resolving to native modules. 2011-03-10 21:33:53 -05:00
Graydon Hoare
bc5a8393e7 Help extinguish fires. 2011-03-10 17:57:22 -08:00
Graydon Hoare
3aac5059ee Move the glue code to a .o file. This reduces how much asm we print
in each "translation unit".

Part of it is not repetitive and should probably be moved to a .ll file, but
for now we autogen all of it.

(Modified somewhat by graydon while integrating).
2011-03-10 17:30:08 -08:00