@@ -26,30 +26,34 @@ def getRISCVTuneInfo : SearchIndex {
26
26
let Key = ["Name"];
27
27
}
28
28
29
+ class GenericTuneInfo: RISCVTuneInfo;
30
+
29
31
class RISCVProcessorModel<string n,
30
32
SchedMachineModel m,
31
33
list<SubtargetFeature> f,
32
34
list<SubtargetFeature> tunef = [],
33
35
string default_march = "">
34
- : ProcessorModel<n, m, f, tunef>, RISCVTuneInfo {
36
+ : ProcessorModel<n, m, f, tunef> {
35
37
string DefaultMarch = default_march;
36
38
}
37
39
38
40
class RISCVTuneProcessorModel<string n,
39
41
SchedMachineModel m,
40
42
list<SubtargetFeature> tunef = [],
41
43
list<SubtargetFeature> f = []>
42
- : ProcessorModel<n, m, f,tunef>, RISCVTuneInfo ;
44
+ : ProcessorModel<n, m, f,tunef>;
43
45
44
46
def GENERIC_RV32 : RISCVProcessorModel<"generic-rv32",
45
47
NoSchedModel,
46
- [Feature32Bit]>;
48
+ [Feature32Bit]>,
49
+ GenericTuneInfo;
47
50
def GENERIC_RV64 : RISCVProcessorModel<"generic-rv64",
48
51
NoSchedModel,
49
- [Feature64Bit]>;
52
+ [Feature64Bit]>,
53
+ GenericTuneInfo;
50
54
// Support generic for compatibility with other targets. The triple will be used
51
55
// to change to the appropriate rv32/rv64 version.
52
- def : ProcessorModel<"generic", NoSchedModel, []>;
56
+ def : ProcessorModel<"generic", NoSchedModel, []>, GenericTuneInfo ;
53
57
54
58
def ROCKET_RV32 : RISCVProcessorModel<"rocket-rv32",
55
59
RocketModel,
0 commit comments