Analogous to the TSFlags for machine instructions, this
patch introduces a variable for target specific flags in
TargetRegisterClass that acts as configurable bitfields
for register classes.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
For AMDGPU we have different vector registers (VGPRs and AGPRs). There are multiple register classes for them individually and now a superset that combines both A & V registers (AV_32RegClass, for instance).
Currently, the isVGPR() and isAGPR() helper functions that query a specific register class isn't efficient. They are quite slow.
Having the TSFlags and a single bit for each vector register type will make the query just a quick bitwise operation.