[PATCH] D143847: [RISCV] Add vendor-defined XTheadMAC (multiply-accumulate) extension

Philipp Tomsich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 14 03:50:19 PST 2023


philipp.tomsich updated this revision to Diff 497268.
philipp.tomsich added a comment.

- introduce sexti16 as a complex pattern (matches values that are sign-extended to an i16 and returns the underlying node --- i.e, what is being fed into the sign-extension)
- refactors sexti32 to share implementation with sexti16 (similarily to what is implemented for zexti32)
- simplifies XTHeadMac implementation by matching sexti16 instead of having multiple cases spelled out for shl+sra and sext_inreg


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D143847

Files:
  llvm/docs/RISCVUsage.rst
  llvm/docs/ReleaseNotes.rst
  llvm/lib/Support/RISCVISAInfo.cpp
  llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
  llvm/lib/Target/RISCV/RISCVFeatures.td
  llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
  llvm/lib/Target/RISCV/RISCVISelDAGToDAG.h
  llvm/lib/Target/RISCV/RISCVInstrInfo.td
  llvm/lib/Target/RISCV/RISCVInstrInfoXTHead.td
  llvm/test/CodeGen/RISCV/attributes.ll
  llvm/test/CodeGen/RISCV/xtheadmac.ll
  llvm/test/MC/RISCV/rv32xtheadmac-invalid.s
  llvm/test/MC/RISCV/rv32xtheadmac-valid.s
  llvm/test/MC/RISCV/rv64xtheadmac-valid.s
  llvm/test/MC/RISCV/xtheadmac-invalid.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143847.497268.patch
Type: text/x-patch
Size: 21415 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230214/b915a80b/attachment.bin>


More information about the llvm-commits mailing list