[llvm] [Xtensa] Implement Xtensa Region Protection Option and several other small Options. (PR #137135)

Andrei Safronov via llvm-commits llvm-commits at lists.llvm.org
Wed May 7 14:46:52 PDT 2025


================
@@ -114,9 +114,13 @@ static DecodeStatus DecodeMR23RegisterClass(MCInst &Inst, uint64_t RegNo,
 }
 
 const MCPhysReg SRDecoderTable[] = {
-    Xtensa::SAR, 3,  Xtensa::ACCLO,      16, Xtensa::ACCHI,       17,
-    Xtensa::M0,  32, Xtensa::M1,         33, Xtensa::M2,          34,
-    Xtensa::M3,  35, Xtensa::WINDOWBASE, 72, Xtensa::WINDOWSTART, 73};
+    Xtensa::LBEG,    0,   Xtensa::LEND,       1,   Xtensa::LCOUNT,      2,
----------------
andreisfr wrote:

I implemented special struct with register name and number fields to make search in SR register table simpler.

https://github.com/llvm/llvm-project/pull/137135


More information about the llvm-commits mailing list