Skip to content

Commit 425b156

Browse files
committed
[RISCV] Add TuneVentanaVeyron subtarget feature.
This will be used to add veyron fusions in a later commit.
1 parent 83c560b commit 425b156

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

llvm/lib/Target/RISCV/RISCVFeatures.td

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -954,6 +954,10 @@ def TuneSiFive7 : SubtargetFeature<"sifive7", "RISCVProcFamily", "SiFive7",
954954
[TuneNoDefaultUnroll,
955955
TuneShortForwardBranchOpt]>;
956956

957+
def TuneVentanaVeyron : SubtargetFeature<"ventana-veyron", "RISCVProcFamily", "VentanaVeyron",
958+
"Ventana-Veyron Series processors",
959+
[TuneLUIADDIFusion]>;
960+
957961
// Assume that lock-free native-width atomics are available, even if the target
958962
// and operating system combination would not usually provide them. The user
959963
// is responsible for providing any necessary __sync implementations. Code

llvm/lib/Target/RISCV/RISCVProcessors.td

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,4 +242,5 @@ def VENTANA_VEYRON_V1 : RISCVProcessorModel<"veyron-v1",
242242
FeatureStdExtZicbom,
243243
FeatureStdExtZicbop,
244244
FeatureStdExtZicboz,
245-
FeatureVendorXVentanaCondOps]>;
245+
FeatureVendorXVentanaCondOps],
246+
[TuneVentanaVeyron]>;

llvm/lib/Target/RISCV/RISCVSubtarget.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,7 @@ struct RISCVTuneInfo {
4646

4747
class RISCVSubtarget : public RISCVGenSubtargetInfo {
4848
public:
49-
enum RISCVProcFamilyEnum : uint8_t {
50-
Others,
51-
SiFive7,
52-
};
49+
enum RISCVProcFamilyEnum : uint8_t { Others, SiFive7, VentanaVeyron };
5350

5451
private:
5552
virtual void anchor();

0 commit comments

Comments
 (0)