bjorn3
fa6480e43d
Remove most trap functions and remove all trapnz usages
2022-08-09 12:27:34 +00:00
bjorn3
d8e7501584
Replace a lot of print+trap with plain trap
...
This reduces binary sizes by a decent amount:
libstd.so: 17% reduction
mini_core_hello_world: 27% reduction
simple-raytracer: 27% reduction
This also improves compile time of simple-raytracer by 0.5s (4% +- 2%)
In addition it is also a pre-requisite for building standalone binaries.
2022-03-14 12:02:36 +01:00
bjorn3
a795a0384b
Remove triple method from FunctionCx
...
Instead use the default_call_conv field on TargetFrontendConfig to get
the default CallConv.
2021-12-18 15:46:30 +01:00
bjorn3
641e13e021
Replace pointer_ty() with fx.pointer_type where possible
2021-07-26 19:21:45 +02:00
bjorn3
24c459c2e5
Use declare_anonymous_data for anonymous_str
2021-05-11 14:25:56 +02:00
bjorn3
d9e9fedfe5
Remove CodegenCx::finalize and pass Module separately from CodegenCx
2021-04-14 14:57:02 +02:00
bjorn3
f3b0f425c5
Don't deduplicate vtables between functions
2021-04-14 10:37:16 +02:00
bjorn3
cecd7a9ae6
Add clif comments when in release mode
...
Fixes #1130
2021-03-06 18:45:04 +01:00
bjorn3
73d3a1c14a
Use dynamic dispatch for the inner Module
...
This improves compilation time and shrinks the linked backend from
13MB to 9.7MB on Linux.
2021-02-23 18:49:37 +01:00
bjorn3
e99f78af08
Make simd_extract panic at runtime on non-const index again
...
This is necessary to compile packed_simd
2020-11-23 11:48:53 +01:00
bjorn3
2be0596810
Use with_no_trimmed_paths
...
Fixes compilation without -Ztrim-diagnostic-paths=no
2020-10-27 10:59:09 +01:00
bjorn3
d2b8406c20
Remove unused trap_unimplemented_ret_value
2020-10-22 12:44:59 +02:00
bjorn3
c352f91b40
Rustfmt
2020-10-09 19:17:52 +02:00
bjorn3
0a5968dfd2
Use the new cranelift-module interface
...
This updates Cranelift to include bytecodealliance/wasmtime#2249
2020-10-08 19:00:21 +02:00
bjorn3
c0507a63fb
Invoke panic handler instead of trap for assert_* intrinsics
2020-09-29 13:22:01 +02:00
bjorn3
c8699076f9
Document almost all modules
...
Fixes #1082
2020-09-23 15:13:49 +02:00
CohenArthur
4e685a512e
fmt: Run cargo fmt since it is available
2020-08-28 12:10:48 +02:00
CohenArthur
0d1f8c802e
FunctionCx: Refactor fx.cx.tcx
into fx.tcx
2020-08-22 16:47:31 +02:00
CohenArthur
7b534d653d
FunctionCx: Rename codegen_cx -> cx
2020-08-22 16:17:58 +02:00
CohenArthur
ad4a7a1f0c
FunctionCx: WIP: Fix syntax error on sed codegen_cx -> .codegen_cx
2020-08-22 15:21:38 +02:00
CohenArthur
cb69c7019c
FunctionCx: Replace .module with .codegen_cx.module
2020-08-22 15:19:09 +02:00
CohenArthur
297d65c247
FunctionCx: WIP: Replace .tcx with .codegen_cx.tcx
2020-08-22 15:18:39 +02:00
bjorn3
de336e17e4
Fix trap_unreachable_ret_value
2020-06-30 18:52:32 +02:00
bjorn3
7031c96fb3
Call panic lang item on failed TerminatorKind::Assert
...
Fixes #164
2020-04-25 19:07:53 +02:00
bjorn3
51d07790df
Use the correct return type for puts
2020-04-17 19:33:57 +02:00
bjorn3
017a9b7641
Rustup to rustc 1.44.0-nightly (699f83f52 2020-03-29)
2020-03-30 19:00:24 +02:00
bjorn3
f288959c00
Limit publicness to crate where possible and remove unused imports
2020-03-27 12:14:45 +01:00
bjorn3
a59479bd37
Add clif ir comments for stack2reg opt
2020-03-20 12:18:40 +01:00
bjorn3
10ee80c288
Write dummy return value on unimplemented simd_{insert,extract}
...
Fixes #919
2020-03-14 14:34:07 +01:00
bjorn3
4d226e8f17
Hash trap message symbol nameThis saves ~7% of disk space
2020-03-13 11:02:14 +01:00
bjorn3
c8de552c01
Tls support
2020-02-26 14:41:05 +01:00
bjorn3
e95a300630
Use TrapCode::UnreachableCodeReached in trap_unreachable
2020-02-07 21:38:30 +01:00
bjorn3
b44d6311ca
Rustup to rustc 1.42.0-nightly (3ebcfa145 2020-01-12)
2020-01-14 12:29:04 +01:00
bjorn3
967709f31a
[OPT] Use load and store offsets instead of iadd_imm
2019-12-20 16:02:47 +01:00
bjorn3
d502f8e652
[OPT] Avoid calling target_triple for every call to codegen
2019-12-17 16:34:48 +01:00
bjorn3
58a9b648e8
Update cranelift, faerie and target-lexicon
2019-10-03 18:55:01 +02:00
bjorn3
0db605040e
Use CallConv::triple_default instead of hard coding SystemV
...
Fixes #718
2019-09-28 17:00:27 +02:00
bjorn3
ce0be229d7
Use upstream cranelift
2019-09-08 19:18:17 +02:00
bjorn3
bfb49e7d19
Rustup to rustc 1.39.0-nightly (6e19f3f38 2019-09-06)
2019-09-07 10:51:00 +02:00
Atul Bhosale
f481a4b685
Format code using 'cargo fmt'
2019-08-31 22:58:09 +05:30
bjorn3
1028fbb68c
Fix release builds
2019-07-30 15:00:15 +02:00
bjorn3
8c2577c747
Don't disable stdsimd anymore
...
This doesn't enable simd support. Actually using the functions will
result in a compilation error.
2019-07-20 15:33:57 +02:00
bjorn3
c0779d5d1d
Add comments for trap::codegen_print gv and fn defs
2019-06-16 17:40:46 +02:00
bjorn3
089e75ec42
Encapsulate CPlace constructors
2019-06-11 16:30:47 +02:00
bjorn3
d6e07cfcc8
Encapsulate CValue and CPlace creation
2019-06-11 15:32:30 +02:00
bjorn3
98dae86d21
Update cranelift
2019-05-04 16:15:20 +02:00
bjorn3
c0ffc422ab
Print message when reaching trap
2019-04-10 17:56:44 +02:00
bjorn3
11af20b156
Fix panic with reported const_eval promoted error
2019-03-06 20:56:15 +01:00
bjorn3
a5fdefe45a
Fix trans_get_discriminant for uninhabited types
2019-03-06 20:55:28 +01:00
bjorn3
95539518ec
Rustfmt
2018-11-24 12:47:53 +01:00