[PATCH] D117227: [RISCV][NFC] Use TableGen 'foreach' to simplify repetitive CSR definitions
Shao-Ce SUN via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 13 08:09:24 PST 2022
achieveartificialintelligence added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVSystemOperands.td:269-292
def : SysReg<"pmpcfg0", 0x3A0>;
let isRV32Only = 1 in
def : SysReg<"pmpcfg1", 0x3A1>;
def : SysReg<"pmpcfg2", 0x3A2>;
let isRV32Only = 1 in
def : SysReg<"pmpcfg3", 0x3A3>;
def : SysReg<"pmpcfg4", 0x3A4>;
----------------
I think `pmpcfg` can also be compressed.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D117227/new/
https://reviews.llvm.org/D117227
More information about the llvm-commits
mailing list