Helps tracking changes in the tables on adding new register classes and
updating BaseClassOrder values.
Also eliminates tables translating base register class indexes into
TargetRegisterClass pointers.
Differential D156097
[TableGen][RegisterInfoEmitter] Make entries of base register class tables human-readable. kosarev on Jul 24 2023, 3:48 AM. Authored by
Details Helps tracking changes in the tables on adding new register classes and Also eliminates tables translating base register class indexes into
Diff Detail
Event TimelineComment Actions
Removing a level of indirection shouldn't it make slower and switching from uint8_t to uint16_t shouldn't cause any noticeable difference in compile time I think. Generating the tables should take same amount of time or less with the new code as it now stops traversing the base classes as soon as we found one that contains the register. Comment Actions The table indirection is about trying to keep memory usage/binary size down. The code looks fine and I will accept it, but can you clarify the objective/context of the change (here or offline)? Comment Actions
No, I needed to see how D156099 affects the choice of base classes, which is virtually impossible to do when they are represented as a long line of raw numbers.
Yeah, I think considering the size of other tables it's not worth the extra complexity. |