forked from OSchip/llvm-project
[RISCV] Make TuneSiFive7 depend on TuneNoDefaultUnroll instead of listing it for every SiFive7 CPU
This commit is contained in:
parent
61891748f5
commit
9913ea490a
|
@ -465,7 +465,8 @@ def TuneNoDefaultUnroll
|
||||||
"Disable default unroll preference.">;
|
"Disable default unroll preference.">;
|
||||||
|
|
||||||
def TuneSiFive7 : SubtargetFeature<"sifive7", "RISCVProcFamily", "SiFive7",
|
def TuneSiFive7 : SubtargetFeature<"sifive7", "RISCVProcFamily", "SiFive7",
|
||||||
"SiFive 7-Series processors">;
|
"SiFive 7-Series processors",
|
||||||
|
[TuneNoDefaultUnroll]>;
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// Named operands for CSR instructions.
|
// Named operands for CSR instructions.
|
||||||
|
@ -499,9 +500,9 @@ def : ProcessorModel<"rocket-rv32", RocketModel, []>;
|
||||||
def : ProcessorModel<"rocket-rv64", RocketModel, [Feature64Bit]>;
|
def : ProcessorModel<"rocket-rv64", RocketModel, [Feature64Bit]>;
|
||||||
|
|
||||||
def : ProcessorModel<"sifive-7-rv32", SiFive7Model, [],
|
def : ProcessorModel<"sifive-7-rv32", SiFive7Model, [],
|
||||||
[TuneSiFive7, TuneNoDefaultUnroll]>;
|
[TuneSiFive7]>;
|
||||||
def : ProcessorModel<"sifive-7-rv64", SiFive7Model, [Feature64Bit],
|
def : ProcessorModel<"sifive-7-rv64", SiFive7Model, [Feature64Bit],
|
||||||
[TuneSiFive7, TuneNoDefaultUnroll]>;
|
[TuneSiFive7]>;
|
||||||
|
|
||||||
def : ProcessorModel<"sifive-e20", RocketModel, [FeatureStdExtM,
|
def : ProcessorModel<"sifive-e20", RocketModel, [FeatureStdExtM,
|
||||||
FeatureStdExtC]>;
|
FeatureStdExtC]>;
|
||||||
|
@ -528,7 +529,7 @@ def : ProcessorModel<"sifive-e76", SiFive7Model, [FeatureStdExtM,
|
||||||
FeatureStdExtA,
|
FeatureStdExtA,
|
||||||
FeatureStdExtF,
|
FeatureStdExtF,
|
||||||
FeatureStdExtC],
|
FeatureStdExtC],
|
||||||
[TuneSiFive7, TuneNoDefaultUnroll]>;
|
[TuneSiFive7]>;
|
||||||
|
|
||||||
def : ProcessorModel<"sifive-s21", RocketModel, [Feature64Bit,
|
def : ProcessorModel<"sifive-s21", RocketModel, [Feature64Bit,
|
||||||
FeatureStdExtM,
|
FeatureStdExtM,
|
||||||
|
@ -553,7 +554,7 @@ def : ProcessorModel<"sifive-s76", SiFive7Model, [Feature64Bit,
|
||||||
FeatureStdExtF,
|
FeatureStdExtF,
|
||||||
FeatureStdExtD,
|
FeatureStdExtD,
|
||||||
FeatureStdExtC],
|
FeatureStdExtC],
|
||||||
[TuneSiFive7, TuneNoDefaultUnroll]>;
|
[TuneSiFive7]>;
|
||||||
|
|
||||||
def : ProcessorModel<"sifive-u54", RocketModel, [Feature64Bit,
|
def : ProcessorModel<"sifive-u54", RocketModel, [Feature64Bit,
|
||||||
FeatureStdExtM,
|
FeatureStdExtM,
|
||||||
|
@ -568,7 +569,7 @@ def : ProcessorModel<"sifive-u74", SiFive7Model, [Feature64Bit,
|
||||||
FeatureStdExtF,
|
FeatureStdExtF,
|
||||||
FeatureStdExtD,
|
FeatureStdExtD,
|
||||||
FeatureStdExtC],
|
FeatureStdExtC],
|
||||||
[TuneSiFive7, TuneNoDefaultUnroll]>;
|
[TuneSiFive7]>;
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// Define the RISC-V target.
|
// Define the RISC-V target.
|
||||||
|
|
Loading…
Reference in New Issue