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