RISC-V Privileged Specification 1.11 defines mcountinhibit, which has the same numeric CSR value as mucounteren from 1.09.1.
This patch enables the use of the old mucounteren name.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Target/RISCV/RISCVSystemOperands.td | ||
---|---|---|
313–315 | is the style used elsewhere in this file and the RISCVInstrInfo*.td files. |
llvm/lib/Target/RISCV/RISCVSystemOperands.td | ||
---|---|---|
313–315 | and please also add a blank line to separate it from the mhpmeventX definitions, as is done with mcycle(h)/minstret(h) |
Patch looks good but please fix the title and description of this revision. It's not about adding AltName, it's about adding mountinhibit itself, and as part of that you're including support for the older name too.
The mcountinhibit CSR has already been added in d36f2c6a6c4b. Looks like the patch needs to be rebased?
Looks fine, other than please mention something about it being an alias in the commit subject when landing as currently it reads as if it's a new CSR (and I'd also personally change "This patch enables the use of mucounteren." to "This patch enables the use of the old mucounteren name." to make it completely clear, but if the subject is fixed then I don't think it's _necessary_).