Skip to content

Commit 2a8c7d3

Browse files
authored
[RISCV] Add support for -mtune=andes-45-series (llvm#142900)
Enables the use of `-mtune=andes-45-series` to generate code optimized with the Andes 45 series scheduling model and tuning features.
1 parent f8df240 commit 2a8c7d3

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

clang/test/Misc/target-invalid-cpu-note/riscv.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
// TUNE-RISCV32-SAME: {{^}}, syntacore-scr3-rv32
7878
// TUNE-RISCV32-SAME: {{^}}, syntacore-scr4-rv32
7979
// TUNE-RISCV32-SAME: {{^}}, syntacore-scr5-rv32
80+
// TUNE-RISCV32-SAME: {{^}}, andes-45-series
8081
// TUNE-RISCV32-SAME: {{^}}, generic
8182
// TUNE-RISCV32-SAME: {{^}}, generic-ooo
8283
// TUNE-RISCV32-SAME: {{^}}, rocket
@@ -114,6 +115,7 @@
114115
// TUNE-RISCV64-SAME: {{^}}, veyron-v1
115116
// TUNE-RISCV64-SAME: {{^}}, xiangshan-kunminghu
116117
// TUNE-RISCV64-SAME: {{^}}, xiangshan-nanhu
118+
// TUNE-RISCV64-SAME: {{^}}, andes-45-series
117119
// TUNE-RISCV64-SAME: {{^}}, generic
118120
// TUNE-RISCV64-SAME: {{^}}, generic-ooo
119121
// TUNE-RISCV64-SAME: {{^}}, rocket

llvm/docs/ReleaseNotes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ Changes to the RISC-V Backend
209209
* `-mcpu=andes-a25` and `-mcpu=andes-ax25` were added.
210210
* The `Shlcofideleg` extension was added.
211211
* `-mcpu=sifive-x390` was added.
212+
* `-mtune=andes-45-series` was added.
212213

213214
Changes to the WebAssembly Backend
214215
----------------------------------

llvm/lib/Target/RISCV/RISCVProcessors.td

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -722,6 +722,9 @@ def ANDES_AX25 : RISCVProcessorModel<"andes-ax25",
722722
FeatureStdExtZbc,
723723
FeatureVendorXAndesPerf]>;
724724

725+
def ANDES_45 : RISCVTuneProcessorModel<"andes-45-series",
726+
Andes45Model>;
727+
725728
def ANDES_N45 : RISCVProcessorModel<"andes-n45",
726729
Andes45Model,
727730
[Feature32Bit,

0 commit comments

Comments
 (0)