@@ -36,17 +36,21 @@ class FeaturePTX<int version>:
36
36
37
37
foreach sm = [20, 21, 30, 32, 35, 37, 50, 52, 53,
38
38
60, 61, 62, 70, 72, 75, 80, 86, 87,
39
- 89, 90, 100, 101, 120] in
39
+ 89, 90, 100, 101, 103, 120, 121 ] in
40
40
def SM#sm: FeatureSM<""#sm, !mul(sm, 10)>;
41
41
42
- def SM90a: FeatureSM<"90a", 901>;
42
+ // Arch-specific targets. PTX for these is not compatible with any other
43
+ // architectures.
44
+ def SM90a : FeatureSM<"90a", 901>;
43
45
def SM100a: FeatureSM<"100a", 1001>;
44
46
def SM101a: FeatureSM<"101a", 1011>;
47
+ def SM103a: FeatureSM<"103a", 1031>;
45
48
def SM120a: FeatureSM<"120a", 1201>;
49
+ def SM121a: FeatureSM<"121a", 1211>;
46
50
47
51
foreach version = [32, 40, 41, 42, 43, 50, 60, 61, 62, 63, 64, 65,
48
52
70, 71, 72, 73, 74, 75, 76, 77, 78,
49
- 80, 81, 82, 83, 84, 85, 86, 87] in
53
+ 80, 81, 82, 83, 84, 85, 86, 87, 88 ] in
50
54
def PTX#version: FeaturePTX<version>;
51
55
52
56
//===----------------------------------------------------------------------===//
@@ -56,33 +60,37 @@ foreach version = [32, 40, 41, 42, 43, 50, 60, 61, 62, 63, 64, 65,
56
60
class Proc<string Name, list<SubtargetFeature> Features>
57
61
: Processor<Name, NoItineraries, Features>;
58
62
59
- def : Proc<"sm_20", [SM20, PTX32]>;
60
- def : Proc<"sm_21", [SM21, PTX32]>;
61
- def : Proc<"sm_30", [SM30]>;
62
- def : Proc<"sm_32", [SM32, PTX40]>;
63
- def : Proc<"sm_35", [SM35, PTX32]>;
64
- def : Proc<"sm_37", [SM37, PTX41]>;
65
- def : Proc<"sm_50", [SM50, PTX40]>;
66
- def : Proc<"sm_52", [SM52, PTX41]>;
67
- def : Proc<"sm_53", [SM53, PTX42]>;
68
- def : Proc<"sm_60", [SM60, PTX50]>;
69
- def : Proc<"sm_61", [SM61, PTX50]>;
70
- def : Proc<"sm_62", [SM62, PTX50]>;
71
- def : Proc<"sm_70", [SM70, PTX60]>;
72
- def : Proc<"sm_72", [SM72, PTX61]>;
73
- def : Proc<"sm_75", [SM75, PTX63]>;
74
- def : Proc<"sm_80", [SM80, PTX70]>;
75
- def : Proc<"sm_86", [SM86, PTX71]>;
76
- def : Proc<"sm_87", [SM87, PTX74]>;
77
- def : Proc<"sm_89", [SM89, PTX78]>;
78
- def : Proc<"sm_90", [SM90, PTX78]>;
79
- def : Proc<"sm_90a", [SM90a, PTX80]>;
80
- def : Proc<"sm_100", [SM100, PTX86]>;
63
+ def : Proc<"sm_20", [SM20, PTX32]>;
64
+ def : Proc<"sm_21", [SM21, PTX32]>;
65
+ def : Proc<"sm_30", [SM30]>;
66
+ def : Proc<"sm_32", [SM32, PTX40]>;
67
+ def : Proc<"sm_35", [SM35, PTX32]>;
68
+ def : Proc<"sm_37", [SM37, PTX41]>;
69
+ def : Proc<"sm_50", [SM50, PTX40]>;
70
+ def : Proc<"sm_52", [SM52, PTX41]>;
71
+ def : Proc<"sm_53", [SM53, PTX42]>;
72
+ def : Proc<"sm_60", [SM60, PTX50]>;
73
+ def : Proc<"sm_61", [SM61, PTX50]>;
74
+ def : Proc<"sm_62", [SM62, PTX50]>;
75
+ def : Proc<"sm_70", [SM70, PTX60]>;
76
+ def : Proc<"sm_72", [SM72, PTX61]>;
77
+ def : Proc<"sm_75", [SM75, PTX63]>;
78
+ def : Proc<"sm_80", [SM80, PTX70]>;
79
+ def : Proc<"sm_86", [SM86, PTX71]>;
80
+ def : Proc<"sm_87", [SM87, PTX74]>;
81
+ def : Proc<"sm_89", [SM89, PTX78]>;
82
+ def : Proc<"sm_90", [SM90, PTX78]>;
83
+ def : Proc<"sm_90a", [SM90a, PTX80]>;
84
+ def : Proc<"sm_100", [SM100, PTX86]>;
81
85
def : Proc<"sm_100a", [SM100a, PTX86]>;
82
- def : Proc<"sm_101", [SM101, PTX86]>;
86
+ def : Proc<"sm_101", [SM101, PTX86]>;
83
87
def : Proc<"sm_101a", [SM101a, PTX86]>;
84
- def : Proc<"sm_120", [SM120, PTX87]>;
88
+ def : Proc<"sm_103", [SM103, PTX88]>;
89
+ def : Proc<"sm_103a", [SM103a, PTX88]>;
90
+ def : Proc<"sm_120", [SM120, PTX87]>;
85
91
def : Proc<"sm_120a", [SM120a, PTX87]>;
92
+ def : Proc<"sm_121", [SM121, PTX88]>;
93
+ def : Proc<"sm_121a", [SM121a, PTX88]>;
86
94
87
95
def NVPTXInstrInfo : InstrInfo {
88
96
}
0 commit comments