Ralf Jung
3c57ea0df7
ScalarInt: size mismatches are a bug, do not delay the panic
2024-06-10 13:43:16 +02:00
Nicholas Nethercote
99e036bd21
Remove extern crate rustc_middle from numerous crates.
2024-04-29 14:50:45 +10:00
Scott McMurray
0601f0c66d
De-LLVM the unchecked shifts [MCP#693]
...
This is just one part of the MCP, but it's the one that IMHO removes the most noise from the standard library code.
Seems net simpler this way, since MIR already supported heterogeneous shifts anyway, and thus it's not more work for backends than before.
2024-03-30 03:32:11 -07:00
Ben Kimock
5f4f2526b8
Handle calls to upstream monomorphizations in compiler_builtins
2024-03-16 15:22:05 -04:00
Ben Kimock
aa6cfb2669
Sink ptrtoint for RMW ops on pointers to cg_llvm
2024-03-09 10:08:53 -05:00
Ralf Jung
5a0a1ff0cd
move ConstValue into mir
...
this way we have mir::ConstValue and ty::ValTree as reasonably parallel
2023-09-19 11:11:02 +02:00
Scott McMurray
39788e07ba
Promote unchecked_add/sub/mul/shl/shr to mir::BinOp
2023-06-19 01:47:03 -07:00
Jhonny Bill Mena
29d8c87fe8
DELETE - fn span_invalid_monomorphization_error and localize intrinsics macros
2022-12-27 20:59:22 -05:00
Nicholas Nethercote
6cd35ac203
Simplify cast_shift_expr_rhs.
...
It's only ever used with shift operators.
2022-10-25 14:39:20 +11:00
Tomasz Miąsko
ef83e689a8
rustc_codegen_ssa: derive copy and clone for various enums
2022-05-25 10:34:35 +02:00
Tomasz Miąsko
f4c92cc4d1
rustc_codegen_ssa: cleanup AtomicOrdering
...
* Remove unused `NotAtomic` ordering.
* Rename `Monotonic` to `Relaxed` - a Rust specific name.
2022-05-25 10:34:35 +02:00
SparrowLii
cf00142b4d
use tcx.require_lang_item() instead
2022-04-28 20:18:01 +08:00
SparrowLii
d735aa6810
Eliminate duplication of building panic langcall in codegen
2022-04-27 18:58:59 +08:00
est31
2ef8af6619
Adopt let else in more places
2022-02-19 17:27:43 +01:00
est31
15de4cbc4b
Remove redundant [..]s
2021-12-09 00:01:29 +01:00
Amanieu d'Antras
f1b11939e2
Remove support for floating-point constants in asm!
...
Floating-point constants aren't very useful anyways and this simplifies
the code since the type check can now be done in typeck.
2021-05-14 14:58:21 +01:00
Amanieu d'Antras
5918ee4317
Add support for const operands and options to global_asm!
...
On x86, the default syntax is also switched to Intel to match asm!
2021-05-13 22:31:57 +01:00
Nikita Popov
55f345f325
Support LLVM 12 in rustc
2021-02-28 10:19:44 +01:00
est31
12187b7f86
Remove unused #[allow(...)] statements from compiler/
2020-09-26 01:25:55 +02:00
mark
9e5f7d5631
mv compiler to compiler/
2020-08-30 18:45:07 +03:00