[llvm] [RISCV] Add MIPSP8700 RISCVProcFamilyEnum (PR #120073)

Djordje Todorovic via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 16 04:36:14 PST 2024


https://github.com/djtodoro created https://github.com/llvm/llvm-project/pull/120073

None

>From df41d11faa265d82daab9f5262ef20301811a2a5 Mon Sep 17 00:00:00 2001
From: Djordje Todorovic <djordje.todorovic at htecgroup.com>
Date: Mon, 16 Dec 2024 10:29:36 +0100
Subject: [PATCH] [RISCV] Add MIPSP8700 RISCVProcFamilyEnum

---
 llvm/lib/Target/RISCV/RISCVFeatures.td | 2 +-
 llvm/lib/Target/RISCV/RISCVSubtarget.h | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/llvm/lib/Target/RISCV/RISCVFeatures.td b/llvm/lib/Target/RISCV/RISCVFeatures.td
index e770c39f42abfa..5f7ca3ac793079 100644
--- a/llvm/lib/Target/RISCV/RISCVFeatures.td
+++ b/llvm/lib/Target/RISCV/RISCVFeatures.td
@@ -1494,7 +1494,7 @@ def HasConditionalMoveFusion : Predicate<"Subtarget->hasConditionalMoveFusion()"
 def NoConditionalMoveFusion  : Predicate<"!Subtarget->hasConditionalMoveFusion()">;
 
 def TuneMIPSP8700
-    : SubtargetFeature<"mips-p8700", "RISCVProcFamily", "Others",
+    : SubtargetFeature<"mips-p8700", "RISCVProcFamily", "MIPSP8700",
                        "MIPS p8700 processor">;
 
 def TuneSiFive7 : SubtargetFeature<"sifive7", "RISCVProcFamily", "SiFive7",
diff --git a/llvm/lib/Target/RISCV/RISCVSubtarget.h b/llvm/lib/Target/RISCV/RISCVSubtarget.h
index f83125c35b388d..584b5a5e734f38 100644
--- a/llvm/lib/Target/RISCV/RISCVSubtarget.h
+++ b/llvm/lib/Target/RISCV/RISCVSubtarget.h
@@ -83,6 +83,7 @@ class RISCVSubtarget : public RISCVGenSubtargetInfo {
     Others,
     SiFive7,
     VentanaVeyron,
+    MIPSP8700,
   };
   // clang-format on
 private:



More information about the llvm-commits mailing list