Typing the API appropriately.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/CodeGen/CalcSpillWeights.cpp | ||
---|---|---|
67 | CopiedPReg should be a MCRegister instead. Looking at the documentation of contains it seems there is a desire that it only takes MCRegisters | |
llvm/lib/Target/Hexagon/BitTracker.cpp | ||
343–344 | Seems like PhyR should be a MCRegister and getPhysRegBitWidth should only take MCRegisters. | |
llvm/lib/Target/Hexagon/HexagonExpandCondsets.cpp | ||
595 | getMinimalPhysRegClass takes an MCRegister so I think we should not be converting it to a Register | |
llvm/lib/Target/Mips/MipsExpandPseudo.cpp | ||
739 | Seems like this should be a MCRegister |
LGTM with @gjain's suggestions. I think SIRegisterInfo.cpp could also propagate MCRegister a bit further if you wanted but I didn't check all the users of SubReg
CopiedPReg should be a MCRegister instead. Looking at the documentation of contains it seems there is a desire that it only takes MCRegisters