File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,9 @@ class ValueType<int size, int value> {
23
23
bit isFP = false;
24
24
bit isVector = false;
25
25
bit isScalable = false;
26
+ // Indicates this VT should be included in the
27
+ // [FIRST_VALUETYPE,LAST_VALUETYPE] range.
28
+ bit isNormalValueType = true;
26
29
}
27
30
28
31
class VTAny<int value> : ValueType<0, value> {
@@ -287,6 +290,7 @@ def aarch64svcount
287
290
: ValueType<16, 199>; // AArch64 predicate-as-counter
288
291
def spirvbuiltin : ValueType<0, 200>; // SPIR-V's builtin type
289
292
293
+ let isNormalValueType = false in {
290
294
def token : ValueType<0, 248>; // TokenTy
291
295
def MetadataVT : ValueType<0, 249> { // Metadata
292
296
let LLVMName = "Metadata";
@@ -316,6 +320,8 @@ def iPTR : ValueType<0, 254>;
316
320
// Should only be used in TableGen.
317
321
def Any : VTAny<255>;
318
322
323
+ } // isNormalValueType = false
324
+
319
325
} // end defset ValueTypes
320
326
321
327
/// This class is for targets that want to use pointer types in patterns
Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ void VTEmitter::run(raw_ostream &OS) {
72
72
bool IsFP = VT->getValueAsBit (" isFP" );
73
73
bool IsVector = VT->getValueAsBit (" isVector" );
74
74
bool IsScalable = VT->getValueAsBit (" isScalable" );
75
+ bool IsNormalValueType = VT->getValueAsBit (" isNormalValueType" );
75
76
76
77
UpdateVTRange (" INTEGER_FIXEDLEN_VECTOR_VALUETYPE" , Name,
77
78
IsInteger && IsVector && !IsScalable);
@@ -85,7 +86,7 @@ void VTEmitter::run(raw_ostream &OS) {
85
86
UpdateVTRange (" VECTOR_VALUETYPE" , Name, IsVector);
86
87
UpdateVTRange (" INTEGER_VALUETYPE" , Name, IsInteger && !IsVector);
87
88
UpdateVTRange (" FP_VALUETYPE" , Name, IsFP && !IsVector);
88
- UpdateVTRange (" VALUETYPE" , Name, Value < 224 );
89
+ UpdateVTRange (" VALUETYPE" , Name, IsNormalValueType );
89
90
90
91
// clang-format off
91
92
OS << " GET_VT_ATTR("
You can’t perform that action at this time.
0 commit comments