Taiki Endo
736c397f41
Fix clobber_abi in RV32E and RV64E inline assembly
2024-11-25 00:36:22 +09:00
Michael Goulet
c682aa162b
Reformat using the new identifier sorting from rustfmt
2024-09-22 19:11:29 -04: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
beetrees
771e44ebd3
Add f16 inline ASM support for RISC-V
2024-06-21 18:48:20 +01:00
Nicholas Nethercote
4814fd0a4b
Remove extern crate rustc_macros from numerous crates.
2024-04-29 10:21:54 +10:00
Veera
9aac0c9ae3
Mention Register Size in #[warn(asm_sub_register)]
...
Fixes #121593
2024-03-03 09:34:26 -05:00
Michael Woerister
ee8bc5b0b2
Use FxIndexSet instead of FxHashSet for asm_target_features query.
2023-03-01 10:19:26 +01:00
Michael Woerister
88f6c6d8a0
Remove unused StableMap and StableSet types from rustc_data_structures
2022-07-20 13:11:39 +02:00
Amanieu d'Antras
fb5539b475
Add tests
2022-02-21 18:28:22 +00:00
Amanieu d'Antras
1ceb104851
On ARM, use relocation_model to detect whether r9 should be reserved
...
The previous approach of checking for the reserve-r9 target feature
didn't actually work because LLVM only sets this feature very late when
initializing the per-function subtarget.
2022-02-21 18:28:22 +00:00
Amanieu d'Antras
11250b8661
asm: Allow the use of r8-r14 as clobbers on Thumb1
...
Previously these were entirely disallowed, except for r11 which was
allowed by accident.
2022-02-18 20:26:40 +00:00
bjorn3
042aa379a5
Pass target_features set instead of has_feature closure
...
This avoids unnecessary monomorphizations in codegen backends
2022-01-17 18:06:30 +01:00
bjorn3
991cbd1503
Use Symbol for target features in asm handling
...
This saves a couple of Symbol::intern calls
2022-01-17 18:06:27 +01:00
Amanieu d'Antras
e1c3f5e017
Add clobber-only register classes for asm!
...
These are needed to properly express a function call ABI using a clobber
list, even though we don't support passing actual values into/out of
these registers.
2021-07-10 17:29:00 +02:00
Amanieu d'Antras
e6a731eb90
Be stricter about rejecting LLVM reserved registers in asm!
2021-04-28 18:30:36 +01:00
Amanieu d'Antras
b1bcff0731
Disallow the use of high byte registes as operands on x86_64
...
They are still allowed on x86 though.
Fixes #83495
2021-04-05 13:38:24 +01:00
mark
9e5f7d5631
mv compiler to compiler/
2020-08-30 18:45:07 +03:00