[clang] [compiler-rt] [llvm] [FMV] Remove useless features according the latest ACLE spec. (PR #88965)

2024-04-18 Thread Andrew Carlotti via cfe-commits
@@ -67,57 +67,42 @@ enum CPUFeatures { FEAT_FP, FEAT_SIMD, FEAT_CRC, - FEAT_SHA1, FEAT_SHA2, FEAT_SHA3, FEAT_AES, - FEAT_PMULL, FEAT_FP16, - FEAT_DIT, FEAT_DPB, FEAT_DPB2, FEAT_JSCVT, FEAT_FCMA, FEAT_RCPC, FEAT_RCPC2, FEAT_FRINTTS, - F

[clang] [compiler-rt] [llvm] [FMV][AArch64] Unify ls64, ls64_v and ls64_accdata. (PR #108024)

2024-09-12 Thread Andrew Carlotti via cfe-commits
@@ -73,8 +73,6 @@ enum CPUFeatures { FEAT_SSBS, FEAT_SSBS2, FEAT_BTI, - FEAT_LS64, - FEAT_LS64_V, andrewcarlotti wrote: I think we might need to keep the enum values stable, although I'm not sure whether this could actually cause any issues yet. (c.f.

[clang] [llvm] [AArch64] Split FeatureAES to FEAT_AES and FEAT_PMULL. (PR #110816)

2024-10-02 Thread Andrew Carlotti via cfe-commits
andrewcarlotti wrote: > However the architecture does not mandate that both need to be implemented at > the same time. This premise is incorrect. For FEAT_SVE_AES and FEAT_SVE_PMULL128, the latest version of the Arm ARM (DDI 0487K.a) includes the following in the definition of `ID_AA64ZFR0_E

[clang] [compiler-rt] [llvm] [FMV][AArch64] Remove feature sha1 from FMV. (PR #108383)

2024-09-18 Thread Andrew Carlotti via cfe-commits
@@ -33,7 +33,6 @@ enum CPUFeatures { FEAT_FP, FEAT_SIMD, FEAT_CRC, - FEAT_SHA1, andrewcarlotti wrote: > And the clang and gcc implementations of FMV are already ABI incompatible for > other reasons. Are they? I'm not currently aware of any incompatibil

[clang] [compiler-rt] [llvm] [AArch64] Split FeatureMTE to FEAT_MTE and FEAT_MTE2. (PR #109299)

2024-09-26 Thread Andrew Carlotti via cfe-commits
andrewcarlotti wrote: I think the existing situation before FMV was already a bit confusing. We have the command line feature `+memtag`. This enables all the instructions specified in FEAT_MTE and FEAT_MTE2. Note that the FEAT_MTE2 instructions aren't available at EL0. With `-mcpu=neoverse-v2

[clang] [FMV][AArch64][clang] Emit fmv-features metadata in LLVM IR. (PR #118544)

2024-12-10 Thread Andrew Carlotti via cfe-commits
andrewcarlotti wrote: > > Suppose you have target_version("i8mm+dotprod") and target_version("fcma"). > > The first version clearly has higher priority > > According to the [current > rules](https://arm-software.github.io/acle/main/acle.html#selection) yes, but > IMO that rule is broken and