[llvm] 69f1a7a - [ARM] Copy-paste error in ARMv87a architecture definition.

Simon Tatham via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 11 05:36:50 PST 2021


Author: Simon Tatham
Date: 2021-02-11T13:35:56Z
New Revision: 69f1a7ad82fdcabc8d8e46a80b239c0e772d8e39

URL: https://github.com/llvm/llvm-project/commit/69f1a7ad82fdcabc8d8e46a80b239c0e772d8e39
DIFF: https://github.com/llvm/llvm-project/commit/69f1a7ad82fdcabc8d8e46a80b239c0e772d8e39.diff

LOG: [ARM] Copy-paste error in ARMv87a architecture definition.

In the tablegen architecture definition, the Name field for the
ARMv87a record read "ARMv86a". All the other records contain their own
names.

Corrected it to "ARMv87a", and added the necessary value in
ARMArchEnum for that to refer to.

Reviewed By: pratlucas

Differential Revision: https://reviews.llvm.org/D96493

Added: 
    

Modified: 
    llvm/lib/Target/ARM/ARM.td
    llvm/lib/Target/ARM/ARMSubtarget.h

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/ARM/ARM.td b/llvm/lib/Target/ARM/ARM.td
index 3d0a0bf7f8c3..7fe10c741d8e 100644
--- a/llvm/lib/Target/ARM/ARM.td
+++ b/llvm/lib/Target/ARM/ARM.td
@@ -852,7 +852,7 @@ def ARMv86a   : Architecture<"armv8.6-a", "ARMv86a",  [HasV8_6aOps,
                                                        FeatureCRC,
                                                        FeatureRAS,
                                                        FeatureDotProd]>;
-def ARMv87a   : Architecture<"armv8.7-a", "ARMv86a",  [HasV8_7aOps,
+def ARMv87a   : Architecture<"armv8.7-a", "ARMv87a",  [HasV8_7aOps,
                                                        FeatureAClass,
                                                        FeatureDB,
                                                        FeatureFPARMv8,

diff  --git a/llvm/lib/Target/ARM/ARMSubtarget.h b/llvm/lib/Target/ARM/ARMSubtarget.h
index fd9b94fdaa23..1e1195ce9a99 100644
--- a/llvm/lib/Target/ARM/ARMSubtarget.h
+++ b/llvm/lib/Target/ARM/ARMSubtarget.h
@@ -117,6 +117,7 @@ class ARMSubtarget : public ARMGenSubtargetInfo {
     ARMv84a,
     ARMv85a,
     ARMv86a,
+    ARMv87a,
     ARMv8a,
     ARMv8mBaseline,
     ARMv8mMainline,


        


More information about the llvm-commits mailing list