Nicholas Nethercote
cd3da000c0
Clean up formatting.
...
Reflow overly long comments, plus some minor whitespace improvements.
2024-09-17 16:24:35 +10:00
Nicholas Nethercote
bdacdfe95f
Minimize visibilities.
...
This makes it much clearer which things are used outside the crate.
2024-09-17 16:24:33 +10:00
Guillaume Gomez
355eb9c79f
Rollup merge of #128206 - bjorn3:import_lib_writing_refactor, r=jieyouxu
...
Make create_dll_import_lib easier to implement
This will make it easier to implement raw-dylib support in cg_clif and cg_gcc. This PR doesn't yet include an create_dll_import_lib implementation for cg_clif as I need to correctly implement dllimport in cg_clif first before raw-dylib can work at all with cg_clif.
Required for https://github.com/rust-lang/rustc_codegen_cranelift/issues/1345
2024-08-07 15:59:35 +02:00
Mahmoud Mazouz
41ec376edd
Add Debug
impls to API types in rustc_codegen_ssa
2024-08-04 21:59:03 +02:00
bjorn3
bb764bd406
Move is_mingw_gnu_toolchain and i686_decorated_name to cg_ssa
2024-07-30 10:30:09 +00:00
Nicholas Nethercote
84ac80f192
Reformat use
declarations.
...
The previous commit updated `rustfmt.toml` appropriately. This commit is
the outcome of running `x fmt --all` with the new formatting options.
2024-07-29 08:26:52 +10:00
Matthew Maurer
38931cd227
LLVM: LLVM-20.0 removes MMX types
...
See llvm/llvm-project#98505
2024-07-25 17:58:37 +00:00
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