Nick Lewycky
14188bed44
Revert "Ignore multi-value errors on LLVM too, for now."
...
This reverts commit 486dedc601 .
2020-06-02 15:44:39 -07:00
Syrus Akbary
367dff887a
Update lib/compiler-llvm/src/config.rs
...
Co-authored-by: nlewycky <nick@wasmer.io >
2020-06-01 14:12:57 -07:00
Syrus
2a9ce436f9
Added LLVM callbacks
2020-06-01 13:54:26 -07:00
Nick Lewycky
3c9c214b2c
Less editorializing.
2020-05-26 10:41:20 -07:00
Nick Lewycky
b81e241cdf
Add support for producing .o files as PIC.
...
We then can't handle the relocations in those .o files, but it's progress.
2020-05-26 10:41:13 -07:00
Nick Lewycky
a47a3068f4
Remove #![allow(unused_imports, dead_code)] and fix resulting issues.
...
Fix nearly-all issues found by clippy too.
2020-05-20 17:18:23 -07:00
Nick Lewycky
ac5a6ce3f9
Rename the use of inkwell::targets::Target from LLVMTarget to InkwellTarget.
...
Makes it consistent with other renamed inkwell imports that are prefaced with 'Inkwell'.
2020-05-20 12:40:39 -07:00
Syrus
09e057338a
Renamed Module to ModuleInfo
2020-05-19 18:47:50 -07:00
Syrus
ae8dcfcb27
Make PIC optional for compilers
2020-05-19 16:56:56 -07:00
Nick Lewycky
7783879ae2
Improve comment.
2020-05-18 12:44:49 -07:00
Nick Lewycky
be1754766e
Fix issue with GOT relocations being emitted on Mac.
2020-05-18 12:30:49 -07:00
Nick Lewycky
486dedc601
Ignore multi-value errors on LLVM too, for now.
2020-05-13 15:57:41 -07:00
Nick Lewycky
613e40ed79
The llvm compiler uses ELF under the hood, attempt to convert any Target to the same thing, but with ELF.
2020-05-12 21:11:42 -07:00
Mark McCaskey
480ecd2cda
Apply various fixes to get the C API working
...
24% of tests are passing now!
2020-05-07 14:02:13 -07:00
Syrus
6a06af1b1b
Simplified compiler config removing mutable features and target
2020-05-02 15:22:05 -07:00
Syrus
4e36cf987b
Make compilers feature-configurable
2020-05-02 15:17:18 -07:00
Nick Lewycky
56fe08ad00
Assorted fixes:
...
Fix creation of the target machine. Fix CPU features, architecture and target name.
Function names are not mandatory. Support unnamed functions.
Include parameters and local variables in the list of local variables for LLVMFunctionCodeGenerator.
Run the tests single-threaded, using a Mutex in the rayon code. This means that only the first error is real, subsequent errors are just picking up the panic across threads.
Add TODOs about attributes on vmctx.
2020-04-23 23:32:17 -07:00
Nick Lewycky
4e6371c3ce
Fix most compile issues in compiler-llvm.
...
Still to be fixed are MemoryPlan, MemoryStyle, TablePlan, and TableStyle.
2020-04-22 16:30:55 -07:00
Syrus
a402691303
First iteration of wasmer-reborn
2020-04-21 21:37:33 -07:00