[PATCH] D67423: [RISCV] Rename FPRs and use Register arithmetic

Luís Marques via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 12 11:47:53 PDT 2019


luismarques updated this revision to Diff 219958.
luismarques retitled this revision from "[RISCV] Consistently use Register arithmetic" to "[RISCV] Rename FPRs and use Register arithmetic".
luismarques added a comment.

- Changes the FPRs Register identifiers, to ensure sequential enumeration:
  - `F0_32`-`F31_32` -> `F0_F`-`F31_F`
  - `F0_64`-`F31_64` -> `F0_D`-`F31_D`
  - These were chosen instead of `Fxx`/`Dxx` to better match the ISA spec names, although both options were reasonable.
- Now makes straighforward use of FPR Register arithmetic.
- Adds static asserts regarding the register ordering.
- Updates the FPR register matching, since the tablegen matches now default to the 64-bit regs.
- Tightens some `RegNo` bounds checks that were too loose on master.
- Updates the title to reflect the changed scope of the patch.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D67423/new/

https://reviews.llvm.org/D67423

Files:
  llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
  llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
  llvm/lib/Target/RISCV/RISCVCallingConv.td
  llvm/lib/Target/RISCV/RISCVISelLowering.cpp
  llvm/lib/Target/RISCV/RISCVRegisterInfo.cpp
  llvm/lib/Target/RISCV/RISCVRegisterInfo.td

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67423.219958.patch
Type: text/x-patch
Size: 24612 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190912/e4e139f6/attachment.bin>


More information about the llvm-commits mailing list