Commit Graph

1626 Commits

Author SHA1 Message Date
Jared Ramirez
6253ac15e4 Use differnt atan test based on os 2020-10-25 12:11:23 -07:00
Richard Feldman
21d4f8026e
Merge branch 'trunk' into convert-bitcode-gen-to-c 2020-10-25 14:17:17 -04:00
Richard Feldman
80411473ae clippy clip 2020-10-25 01:56:55 -04:00
Richard Feldman
17b2eebcfc REVERT THIS! Temporarily disable exception tests.
These currently break on Linux, but pass on macOS.

They worked fine with JITExecutionEngine on Linux,
but JITExecutionEngine failed on macOS.
2020-10-25 01:42:10 -04:00
Richard Feldman
3d7a265c5f Load a dynamic library in the repl 2020-10-25 01:42:10 -04:00
Richard Feldman
5bf5807abd Only situationally do aggressive optimization 2020-10-25 01:42:10 -04:00
Richard Feldman
14c8a00f9d Don't link Scrti.o when doing dynamic linking 2020-10-25 01:42:10 -04:00
Richard Feldman
ac46d84c60 use RelocMode::PIC 2020-10-25 01:42:10 -04:00
Richard Feldman
6b183b1bcc Handle builtin defs in canonicalize_module_defs 2020-10-25 01:42:10 -04:00
Richard Feldman
468deebaa3 Clean up dummy test 2020-10-25 01:42:10 -04:00
Richard Feldman
737eee874f Fix tests 2020-10-25 01:42:10 -04:00
Richard Feldman
d0a9db06f5 Add Into instance for OptLevel 2020-10-25 01:42:10 -04:00
Richard Feldman
b4377d4d67 Get a basic dylib linking started 2020-10-25 01:41:55 -04:00
Jared Ramirez
49bc2b838f Remove unused files 2020-10-24 12:24:20 -07:00
Jared Ramirez
d82d6b6fe9 Convert builtins to C 2020-10-24 12:22:51 -07:00
Richard Feldman
e8f1201937 Use libloading to load dylibs 2020-10-24 12:01:34 -04:00
Richard Feldman
60c33c81c3 Add LinkType to link.rs 2020-10-24 11:24:28 -04:00
Richard Feldman
a10f768c36
Merge branch 'trunk' into merge-docs-into-load-file 2020-10-22 08:51:10 -04:00
Richard Feldman
cdb774a09b
Merge pull request #603 from Anton-4/trunk
replaced deprecated `std::u16::MAX` with `u16::MAX`
2020-10-22 08:50:47 -04:00
Folkert
7bff0b50c6 remove now unneeded code 2020-10-21 15:49:20 +02:00
Folkert
432dbee422 switch docs to use the standard file load mechanism 2020-10-21 15:43:56 +02:00
Anton-4
12821bf321 replaced deprecated std::u16::MAX with u16::MAX 2020-10-21 14:35:36 +02:00
Folkert
5223a9c59b Merge remote-tracking branch 'origin/trunk' into closure-improvements 2020-10-21 13:49:09 +02:00
Folkert
75332bd109 re-enable tests 2020-10-21 13:47:23 +02:00
Folkert
e446ecd9a9 factor out closure constraint generation 2020-10-21 13:47:02 +02:00
Folkert
4db09b10aa refactor ClosureLayout 2020-10-21 13:38:46 +02:00
Folkert
22dcdab222 use wrapping from closure layout to index into closure data 2020-10-21 13:31:32 +02:00
Folkert
c8c1a0678a code gen for variably-sized closures 2020-10-21 13:01:27 +02:00
Folkert
1953f563f7 add mono tests 2020-10-21 12:38:11 +02:00
Folkert
b0121097c9 store closures in data structures 2020-10-20 20:01:01 +02:00
Folkert
3408a31453 preparations for specializing closures 2020-10-20 00:33:10 +02:00
Folkert
48d13a7b12 refactor how we solve LetCon 2020-10-19 22:18:20 +02:00
Folkert
6d866ff58d so defs get different treatment... 2020-10-19 15:44:32 +02:00
Richard Feldman
f11479d255 Clippy makes a good point. 2020-10-19 00:01:33 -04:00
Richard Feldman
db2d99f56d
Merge branch 'trunk' into platform 2020-10-18 23:59:44 -04:00
Richard Feldman
dfa61b4c18 Parse platform headers 2020-10-18 23:55:49 -04:00
Folkert
33ff36daad make things work by removing type signatures 2020-10-19 00:28:14 +02:00
Folkert
847a1be65e comment out type aliases for the unique version 2020-10-18 23:53:43 +02:00
Folkert
894f7de009 changes to closure parameter rank 2020-10-18 23:37:21 +02:00
Folkert
e1290835de use the full alias body to determine the rank 2020-10-18 23:05:03 +02:00
Folkert
7b4e87a671 use layout first to determine if something is a closure 2020-10-18 23:04:28 +02:00
Folkert
a88f78d6b7 comment tests where monomorphization doesn't work right 2020-10-18 22:49:21 +02:00
Folkert
81af929f8f always unify full alias body, even when alias names match 2020-10-18 21:16:22 +02:00
Folkert
fd77a18908 fix clippy thing 2020-10-18 21:06:34 +02:00
Folkert
b0ef8b9b07 clarify how we deal with a closure layout 2020-10-18 21:05:48 +02:00
Folkert
b26f778ee0 code gen for closures that are by-unification, not because they capture anything 2020-10-18 20:50:51 +02:00
Folkert
9cecfe3558 remove closes_over field 2020-10-18 20:45:28 +02:00
Folkert
6c79048f9b improve closure pretty printing 2020-10-18 20:12:53 +02:00
Folkert
4acbe876cc centralize closure layout creation 2020-10-18 20:12:20 +02:00
Folkert
896090642f add assertion 2020-10-18 20:11:33 +02:00