Skip to content

Commit 5ab99bf

Browse files
asi-scdnpetrov-scaaa-sc
authored
[RISCV] Add scheduling model for Syntacore SCR4 and SCR5 (llvm#102909)
Syntacore SCR4 is a microcontroller-class processor core that has much in common with SCR3, but also supports F and D extensions. Overview: https://syntacore.com/products/scr4 Syntacore SCR5 is an entry-level Linux-capable 32/64-bit RISC-V processor core which scheduling model almost match SCR4. Overview: https://syntacore.com/products/scr5 Co-authored-by: Dmitrii Petrov <[email protected]> Co-authored-by: Anton Afanasyev <[email protected]>
1 parent 13008aa commit 5ab99bf

File tree

9 files changed

+957
-342
lines changed

9 files changed

+957
-342
lines changed

llvm/lib/Target/RISCV/RISCV.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ include "RISCVSchedSiFive7.td"
5151
include "RISCVSchedSiFiveP400.td"
5252
include "RISCVSchedSiFiveP600.td"
5353
include "RISCVSchedSyntacoreSCR1.td"
54-
include "RISCVSchedSyntacoreSCR3.td"
54+
include "RISCVSchedSyntacoreSCR345.td"
5555
include "RISCVSchedXiangShanNanHu.td"
5656

5757
//===----------------------------------------------------------------------===//

llvm/lib/Target/RISCV/RISCVProcessors.td

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ def SYNTACORE_SCR3_RV64 : RISCVProcessorModel<"syntacore-scr3-rv64",
333333
[TuneNoDefaultUnroll, FeaturePostRAScheduler]>;
334334

335335
def SYNTACORE_SCR4_RV32 : RISCVProcessorModel<"syntacore-scr4-rv32",
336-
NoSchedModel,
336+
SyntacoreSCR4RV32Model,
337337
[Feature32Bit,
338338
FeatureStdExtI,
339339
FeatureStdExtZicsr,
@@ -345,7 +345,7 @@ def SYNTACORE_SCR4_RV32 : RISCVProcessorModel<"syntacore-scr4-rv32",
345345
[TuneNoDefaultUnroll, FeaturePostRAScheduler]>;
346346

347347
def SYNTACORE_SCR4_RV64 : RISCVProcessorModel<"syntacore-scr4-rv64",
348-
NoSchedModel,
348+
SyntacoreSCR4RV64Model,
349349
[Feature64Bit,
350350
FeatureStdExtI,
351351
FeatureStdExtZicsr,
@@ -358,7 +358,7 @@ def SYNTACORE_SCR4_RV64 : RISCVProcessorModel<"syntacore-scr4-rv64",
358358
[TuneNoDefaultUnroll, FeaturePostRAScheduler]>;
359359

360360
def SYNTACORE_SCR5_RV32 : RISCVProcessorModel<"syntacore-scr5-rv32",
361-
NoSchedModel,
361+
SyntacoreSCR5RV32Model,
362362
[Feature32Bit,
363363
FeatureStdExtI,
364364
FeatureStdExtZicsr,
@@ -371,7 +371,7 @@ def SYNTACORE_SCR5_RV32 : RISCVProcessorModel<"syntacore-scr5-rv32",
371371
[TuneNoDefaultUnroll, FeaturePostRAScheduler]>;
372372

373373
def SYNTACORE_SCR5_RV64 : RISCVProcessorModel<"syntacore-scr5-rv64",
374-
NoSchedModel,
374+
SyntacoreSCR5RV64Model,
375375
[Feature64Bit,
376376
FeatureStdExtI,
377377
FeatureStdExtZicsr,

llvm/lib/Target/RISCV/RISCVSchedSyntacoreSCR3.td

Lines changed: 0 additions & 189 deletions
This file was deleted.

0 commit comments

Comments
 (0)