lp:~mgiuca/mars/llvm-backend

Created by Matt Giuca and last modified

An LLVM backend for Mars. Enables compilation of Mars programs to native machine code.

Get this branch:
bzr branch lp:~mgiuca/mars/llvm-backend
Only Matt Giuca can upload to this branch. If you are Matt Giuca please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Matt Giuca
Project:
Mars
Status:
Merged

Recent revisions

1311. By Matt Giuca

backend_llvm: Now mangles constructor names, to avoid name collisions with built-ins.
(Specifically, constructors would previously collide with built-in type names.)
This mangles both constructor type names (with 'ctor.') and function names (with 'global.').
Fixes LP: #781510.

1310. By Matt Giuca

backend_llvm: mars_to_llvm_global_name does not mangle special names like :Dict.

1309. By Matt Giuca

Test case types: Added a type with constructors Int, Array, Func and Any, to test some special constructor names.
Currently, this fails, because they clash with names in the LLVM runtime.

1308. By Matt Giuca

runtime.ll: Fixed bad loop termination condition.
This resulted in memory corruption in array(), writing too many values past the end of the array.
Fixes LP: 1101679.

1307. By Matt Giuca

Merge from trunk.

1306. By Matt Giuca

runtime: Rewrote div and mod so they correctly work on floating-point numbers.
All test cases now pass.

1305. By Matt Giuca

runtime: Implemented floor built-in.

1304. By Matt Giuca

runtime: Implemented sqrt built-in.

1303. By Matt Giuca

Merge from trunk (rewrite test bignum smallnum test).
All bignum tests now pass (these were rewritten to accomodate a small variance in the number display algorithm).

1302. By Matt Giuca

backend_llvm: var_float now returns the value's float value, rather than rounding it to an int and back.

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
This branch contains Public information 
Everyone can see this information.

Subscribers