aboutsummaryrefslogtreecommitdiff
path: root/src/comp/middle/trans.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* | rustc: Use llsize_of rather than size_of in trans_malloc_without_cleanup(). ↵Patrick Walton2011-03-021-2/+2
| | | | | | | | Should put out burning tinderbox...
* | rustc: Have make_generic_glue pass an opaque type instead of an incorrect ↵Patrick Walton2011-03-021-1/+3
| | | | | | | | type in the case of dynamically sized types
* | rustc: Remove unused call to type_of() in trans_tup()Patrick Walton2011-03-021-1/+0
| |
* | rustc: Rework the API for trans_malloc() to be generic-aware and so that ↵Patrick Walton2011-03-021-12/+19
| | | | | | | | clients don't need to call trans_malloc_inner()
* | Sketch out some more pieces of vec-append.Graydon Hoare2011-03-021-13/+119
| |
* | rustc: Teach iter_structural_ty about dynamically-sized tuples and recordsPatrick Walton2011-03-021-4/+8
| |
* | rustc: For derived tydescs, explicitly store 0 for size and align when the ↵Patrick Walton2011-03-021-3/+15
| | | | | | | | type in question has a dynamic size
* | rustc: Don't have type_of_arg() rely on the particular lie told by type_of()Patrick Walton2011-03-021-3/+14
| |
* | Make the expanded expression in expr_ext not optionalBrian Anderson2011-03-021-1/+1
| |
* | Parse parameter types for fmt extensionBrian Anderson2011-03-021-4/+0
| |
* | Add fold, typecheck and trans for expr_extBrian Anderson2011-03-021-0/+8
| |
* | rustc: Remove the static "size" field from the tag infoPatrick Walton2011-03-011-13/+3
| |
* | rustc: Add in the size of the discriminant to generic_size_of() for tagsPatrick Walton2011-03-011-1/+3
| |
* | rustc: Add logic for generic tags to dynamic_size_of().Patrick Walton2011-03-011-3/+32
| |
* | rustc: Factor out the align-elements logic in dynamic_size_of()Patrick Walton2011-03-011-34/+29
| |
* | Implement structured compare for rec, tup, tag. Un-XFAIL structured-compare.rs.Graydon Hoare2011-03-011-21/+55
| |
* | rustc: Switch from storing nullary tags as constants to storing their ↵Patrick Walton2011-03-011-22/+31
| | | | | | | | discriminants
* | rustc: Trivial cleanup: Remove unused "arity" tagPatrick Walton2011-02-281-1/+0
| |
* | More complete sketch of structural compare. Still not quite working.Graydon Hoare2011-02-281-38/+115
| |
* | Groundwork for structural comparison. Still lacking the actual loop that ↵Graydon Hoare2011-02-281-24/+97
| | | | | | | | does it.
* | rustc: Write tag variant discriminants into the crate as integer constantsPatrick Walton2011-02-281-1/+15
| |
* | Declare wrappers to the native functions and use those to createRafael Ávila de Espíndola2011-02-281-4/+28
| | | | | | | | | | | | | | the fn/closure pairs. Disable native2.rs for now as we are not yet defining the wrappers and it fails to link.
* | Update the function declarations with rust abi. A cdeclRafael Ávila de Espíndola2011-02-281-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fn write(int fd, rustrt.vbuf buf, uint count) -> int; compiles to declare i32 @write(i32, i8*, i32) and a rust fn vec_buf[T](vec[T] v, uint offset) -> vbuf; compiles to declare i8* @vec_buf(%task*, %tydesc*, %"vec[<P0:2>]", i32) which I think is the correct declaration for both :-)
* | rustc: Make the tag info table keyed by both tag ID and type parameter. Also ↵Patrick Walton2011-02-251-12/+21
| | | | | | | | fix a bug that was causing all tags to compare equal.
* | rustc: Eliminate the "ty_params" field from the tag infoPatrick Walton2011-02-251-6/+14
| |
* | rustc: Eliminate the "variants" field from the tag infoPatrick Walton2011-02-251-37/+22
| |
* | rustc: Make iter_structural_ty() not use the "variants" field in the tag infoPatrick Walton2011-02-251-62/+42
| |
* | Add a tag_variant_count() function to trans that doesn't go through the ↵Patrick Walton2011-02-251-1/+14
| | | | | | | | soon-to-be-deprecated tag info table
* | rustc: Move all of the logic in type_of() to type_of_inner()Patrick Walton2011-02-251-38/+40
| |
* | Pass the abi of native functions all the way to codegen.Rafael Ávila de Espíndola2011-02-251-3/+4
| |
* | There are no native iterators (or at least they are not going to be supportedRafael Ávila de Espíndola2011-02-251-1/+1
| | | | | | | | soon.).
* | rustc: Perform type parameter substitutions when emitting glue for generic ↵Patrick Walton2011-02-241-8/+13
| | | | | | | | tags. Un-XFAIL generic-tag.rs.
* | Cast more aggressively to the callee type when calling generic functions. ↵Patrick Walton2011-02-241-3/+9
| | | | | | | | Add a test-case for this, and XFAIL it in rustboot.
* | Revert "Cast more aggressively to the callee type when calling generic ↵Patrick Walton2011-02-241-3/+3
| | | | | | | | | | | | functions. Add a test-case for this, and XFAIL it in rustboot." due to test failures This reverts commit 0a65283c5eeae0b98fff7d213dbaad59889e677e.
* | Cast more aggressively to the callee type when calling generic functions. ↵Patrick Walton2011-02-241-3/+3
| | | | | | | | Add a test-case for this, and XFAIL it in rustboot.
* | Implement type descriptor binding. Un-XFAIL test/run-pass/generic-bind.rs.Patrick Walton2011-02-231-19/+96
| |
* | Drop for-loop temporary at end of scope, fixes memory leak.Graydon Hoare2011-02-221-0/+1
| |
* | Add ABI tagging to crates, adjust rustc output and runtime stack-frame setup ↵Graydon Hoare2011-02-221-4/+9
| | | | | | | | so access to argv works.
* | Finish the type of native functions. We now getRafael Ávila de Espíndola2011-02-221-2/+2
| | | | | | | | declare i32 @write(i32, i8*, i32)
* | Find main functions buried within modules. Un-XFAIL import.rs.Graydon Hoare2011-02-211-2/+25
| |
* | Implement expr_put. Un-XFAIL foreach-simple.rs; iters w/o env access work.Graydon Hoare2011-02-181-2/+29
| |
* | Pass correct lliterbody; can compile and run no-put iters.Graydon Hoare2011-02-181-3/+11
| |
* | Make a tag for iterness / fnness, teach many places about it.Graydon Hoare2011-02-181-42/+60
| |
* | Teach trans and llvm to cooperate on producing tidier diagnostic names in ↵Graydon Hoare2011-02-171-104/+164
| | | | | | | | trans.ty_str.
* | Add type parameters to tag typesPatrick Walton2011-02-171-2/+4
| |
* | Steps toward implementing iterators.Graydon Hoare2011-02-171-7/+116
| |
* | Don't add the rust arguments to native functions. We now produce theRafael Avila de Espindola2011-02-161-15/+30
| | | | | | | | correct arguments for native functions.
* | Add a more specialized decl_native_fn_and_pair. Native functions now haveRafael Avila de Espindola2011-02-161-1/+13
| | | | | | | | the right name.
* | Wrap long line in last commit.Graydon Hoare2011-02-161-1/+2
| |
* | More typechecking for native types and the needed plumbing in codegen.Rafael Avila de Espindola2011-02-161-1/+23
| |