[all-commits] [llvm/llvm-project] 3cda38: [RISCV] Add rs2 encoding to the FPUnaryOp_r and FP...

Craig Topper via All-commits all-commits at lists.llvm.org
Mon Dec 13 21:41:30 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3cda38796c2ab0255be14fecc88fdbbe090367c2
      https://github.com/llvm/llvm-project/commit/3cda38796c2ab0255be14fecc88fdbbe090367c2
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2021-12-13 (Mon, 13 Dec 2021)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVInstrInfoD.td
    M llvm/lib/Target/RISCV/RISCVInstrInfoF.td
    M llvm/lib/Target/RISCV/RISCVInstrInfoZfh.td

  Log Message:
  -----------
  [RISCV] Add rs2 encoding to the FPUnaryOp_r and FPUnaryOp_r_frm template arguments.

Instead of having unary instruction include a 'let' in their class
body, add rs2val as a template parameter. Then we can use a let
in FPUnaryOp_r and FPUnaryOp_r_frm. This reduces the overall
verbosity of the FP files.

Reviewed By: achieveartificialintelligence

Differential Revision: https://reviews.llvm.org/D115537




More information about the All-commits mailing list