[llvm-branch-commits] [llvm] PPC: Replace PointerLikeRegClass with RegClassByHwMode (PR #158777)
Sergei Barannikov via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Sep 16 06:33:40 PDT 2025
================
@@ -868,10 +868,16 @@ def crbitm: Operand<i8> {
def PPCRegGxRCNoR0Operand : AsmOperandClass {
let Name = "RegGxRCNoR0"; let PredicateMethod = "isRegNumber";
}
-def ptr_rc_nor0 : Operand<iPTR>, PointerLikeRegClass<1> {
+
+def ptr_rc_nor0 : RegClassByHwMode<
+ [PPC32, PPC64],
+ [GPRC_NOR0, G8RC_NOX0]>;
+
+def PtrOpNoR0 : RegisterOperand<ptr_rc_nor0> {
----------------
s-barannikov wrote:
Maybe swap the names of RegClassByHwMode / RegisterOperand to reduce diff?
https://github.com/llvm/llvm-project/pull/158777
More information about the llvm-branch-commits
mailing list