[llvm] [PowerPC] Expand global named register support (PR #113482)
Lei Huang via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 29 13:35:23 PDT 2024
================
@@ -17367,25 +17367,33 @@ SDValue PPCTargetLowering::LowerFRAMEADDR(SDValue Op,
return FrameAddr;
}
-// FIXME? Maybe this could be a TableGen attribute on some registers and
-// this table could be generated automatically from RegInfo.
-Register PPCTargetLowering::getRegisterByName(const char* RegName, LLT VT,
+#define GET_REGISTER_MATCHER
+#include "PPCGenAsmMatcher.inc"
----------------
lei137 wrote:
I agree it is a bit strange when I was doing it. However the table gen function was exactly what I needed and I didn't want to duplicate it here. Unfortunately I don't have a nice fix for this at this time. Any suggestion?
https://github.com/llvm/llvm-project/pull/113482
More information about the llvm-commits
mailing list