[llvm-branch-commits] [llvm] CodeGen: Make target overrides of PointerLikeRegClass mandatory (PR #159882)
Matt Arsenault via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Oct 10 01:51:42 PDT 2025
arsenm wrote:
> Hi @arsenm ,
>
> I haven't followed the discussion on all that. What's the rationale for all that stuff?
>
> Cheers, -Quentin
I want to eliminate getPointerRegClass. It's a layering violation. We should be able to interpret an MCOperandInfo without codegen throughout MC. This only depends on the MCInstrInfo and HwMode/Subtarget. Each target's InstrInfo table defines copies of all of the common pseudo instructions anyway, so this series of patches just swaps out the operand definitions to use the correct register class for the pointer types
https://github.com/llvm/llvm-project/pull/159882
More information about the llvm-branch-commits
mailing list