[llvm] [Xtensa] Implement Windowed Register Option. (PR #121118)
Andrei Safronov via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 9 17:09:35 PST 2025
================
@@ -73,17 +73,42 @@ static DecodeStatus DecodeARRegisterClass(MCInst &Inst, uint64_t RegNo,
return MCDisassembler::Success;
}
-static const unsigned SRDecoderTable[] = {Xtensa::SAR, 3};
+// Verify SR
+bool CheckRegister(unsigned RegNo, MCSubtargetInfo STI) {
----------------
andreisfr wrote:
I rewrote the function code and name. This function is almost the same as "checkRegister" in asm parser, but I plan to make version asm parser more complex in future commits with additional arguments.
https://github.com/llvm/llvm-project/pull/121118
More information about the llvm-commits
mailing list