[llvm] b646209 - [AArch64][llvm] Add extra dependencies for recently added features (#175215)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 12 03:09:49 PST 2026
Author: Jonathan Thackray
Date: 2026-01-12T11:09:44Z
New Revision: b646209ddc940275b9b1381b67c9be0bcc022419
URL: https://github.com/llvm/llvm-project/commit/b646209ddc940275b9b1381b67c9be0bcc022419
DIFF: https://github.com/llvm/llvm-project/commit/b646209ddc940275b9b1381b67c9be0bcc022419.diff
LOG: [AArch64][llvm] Add extra dependencies for recently added features (#175215)
Added:
Modified:
llvm/lib/Target/AArch64/AArch64Features.td
llvm/unittests/TargetParser/TargetParserTest.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AArch64/AArch64Features.td b/llvm/lib/Target/AArch64/AArch64Features.td
index 47b518dab3a08..6e2153b2244f8 100644
--- a/llvm/lib/Target/AArch64/AArch64Features.td
+++ b/llvm/lib/Target/AArch64/AArch64Features.td
@@ -599,7 +599,7 @@ def FeatureMPAMv2: ExtensionWithMArch<"mpamv2", "MPAMv2", "FEAT_MPAMv2",
"Enable Armv9.7-A MPAMv2 Lookaside Buffer Invalidate instructions">;
def FeatureMTETC: ExtensionWithMArch<"mtetc", "MTETC", "FEAT_MTETC",
- "Enable Virtual Memory Tagging Extension">;
+ "Enable Virtual Memory Tagging Extension", [FeatureMTE]>;
def FeatureGCIE: ExtensionWithMArch<"gcie", "GCIE", "FEAT_GCIE",
"Enable GICv5 (Generic Interrupt Controller) CPU Interface Extension">;
@@ -627,7 +627,7 @@ def FeatureF16F32MM : ExtensionWithMArch<"f16f32mm", "F16F32MM", "FEAT_F16F32MM"
//===----------------------------------------------------------------------===//
def FeatureMOPS_GO: ExtensionWithMArch<"mops-go", "MOPS_GO", "FEAT_MOPS_GO",
- "Enable memset acceleration granule only">;
+ "Enable memset acceleration granule only", [FeatureMOPS, FeatureMTE]>;
def FeatureBTIE: ExtensionWithMArch<"btie", "BTIE", "FEAT_BTIE",
"Enable Enhanced Branch Target Identification extension">;
diff --git a/llvm/unittests/TargetParser/TargetParserTest.cpp b/llvm/unittests/TargetParser/TargetParserTest.cpp
index b7bd09a73dae0..7b3b196073aa7 100644
--- a/llvm/unittests/TargetParser/TargetParserTest.cpp
+++ b/llvm/unittests/TargetParser/TargetParserTest.cpp
@@ -2207,6 +2207,15 @@ AArch64ExtensionDependenciesBaseArchTestParams
{AArch64::ARMV8A, {"nolse", "lse128"}, {"lse", "lse128"}, {}},
{AArch64::ARMV8A, {"lse128", "nolse"}, {}, {"lse", "lse128"}},
+ // mtetc -> mte
+ {AArch64::ARMV9_7A, {"nomemtag", "mtetc"}, {"mte"}, {}},
+
+ // mops-go -> mops, mte
+ {AArch64::ARMV9_7A,
+ {"nomops", "nomemtag", "mops-go"},
+ {"mops", "mte"},
+ {}},
+
// predres -> predres2
{AArch64::ARMV8A,
{"nopredres", "predres2"},
More information about the llvm-commits
mailing list