@@ -68,10 +68,10 @@ void VTEmitter::run(raw_ostream &OS) {
68
68
continue ;
69
69
auto Name = VT->getValueAsString (" LLVMName" );
70
70
auto Value = VT->getValueAsInt (" Value" );
71
- bool IsInteger = VT->getValueAsInt (" isInteger" );
72
- bool IsFP = VT->getValueAsInt (" isFP" );
73
- bool IsVector = VT->getValueAsInt (" isVector" );
74
- bool IsScalable = VT->getValueAsInt (" isScalable" );
71
+ bool IsInteger = VT->getValueAsBit (" isInteger" );
72
+ bool IsFP = VT->getValueAsBit (" isFP" );
73
+ bool IsVector = VT->getValueAsBit (" isVector" );
74
+ bool IsScalable = VT->getValueAsBit (" isScalable" );
75
75
76
76
UpdateVTRange (" INTEGER_FIXEDLEN_VECTOR_VALUETYPE" , Name,
77
77
IsInteger && IsVector && !IsScalable);
@@ -92,7 +92,7 @@ void VTEmitter::run(raw_ostream &OS) {
92
92
<< Name << " , "
93
93
<< Value << " , "
94
94
<< VT->getValueAsInt (" Size" ) << " , "
95
- << VT->getValueAsInt (" isOverloaded" ) << " , "
95
+ << VT->getValueAsBit (" isOverloaded" ) << " , "
96
96
<< (IsInteger ? Name[0 ] == ' i' ? 3 : 1 : 0 ) << " , "
97
97
<< (IsFP ? Name[0 ] == ' f' ? 3 : 1 : 0 ) << " , "
98
98
<< IsVector << " , "
@@ -111,14 +111,14 @@ void VTEmitter::run(raw_ostream &OS) {
111
111
112
112
OS << " #ifdef GET_VT_VECATTR // (Ty, Sc, nElem, ElTy, ElSz)\n " ;
113
113
for (const auto *VT : VTsByNumber) {
114
- if (!VT || !VT->getValueAsInt (" isVector" ))
114
+ if (!VT || !VT->getValueAsBit (" isVector" ))
115
115
continue ;
116
116
const auto *ElTy = VT->getValueAsDef (" ElementType" );
117
117
assert (ElTy);
118
118
// clang-format off
119
119
OS << " GET_VT_VECATTR("
120
120
<< VT->getValueAsString (" LLVMName" ) << " , "
121
- << VT->getValueAsInt (" isScalable" ) << " , "
121
+ << VT->getValueAsBit (" isScalable" ) << " , "
122
122
<< VT->getValueAsInt (" nElem" ) << " , "
123
123
<< ElTy->getName () << " , "
124
124
<< ElTy->getValueAsInt (" Size" ) << " )\n " ;
0 commit comments