From 15d52cf1780906cfc13dd7cb1f084e5dcd498f6b Mon Sep 17 00:00:00 2001 From: Wang Pengcheng Date: Thu, 13 Feb 2025 11:14:33 +0800 Subject: [PATCH] [RISCV][NFC] Move GenericModel to standalone file And fix some typos in comments. In the future, we may add more scheduling info to GenericModel. --- llvm/lib/Target/RISCV/RISCV.td | 1 + llvm/lib/Target/RISCV/RISCVProcessors.td | 9 --------- llvm/lib/Target/RISCV/RISCVSchedGeneric.td | 18 ++++++++++++++++++ 3 files changed, 19 insertions(+), 9 deletions(-) create mode 100644 llvm/lib/Target/RISCV/RISCVSchedGeneric.td diff --git a/llvm/lib/Target/RISCV/RISCV.td b/llvm/lib/Target/RISCV/RISCV.td index 87c07c3cd505f..1e7ce136dc327 100644 --- a/llvm/lib/Target/RISCV/RISCV.td +++ b/llvm/lib/Target/RISCV/RISCV.td @@ -46,6 +46,7 @@ include "RISCVMacroFusion.td" // RISC-V Scheduling Models //===----------------------------------------------------------------------===// +include "RISCVSchedGeneric.td" include "RISCVSchedMIPSP8700.td" include "RISCVSchedRocket.td" include "RISCVSchedSiFive7.td" diff --git a/llvm/lib/Target/RISCV/RISCVProcessors.td b/llvm/lib/Target/RISCV/RISCVProcessors.td index c54afa1e6e72e..05fcbfd42b092 100644 --- a/llvm/lib/Target/RISCV/RISCVProcessors.td +++ b/llvm/lib/Target/RISCV/RISCVProcessors.td @@ -88,15 +88,6 @@ class RISCVTuneProcessorModel