[PATCH] D139394: [RISCV] Add support for RISCV XVentanaCondops Extension

Kautuk Consul via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 11 23:45:49 PST 2022


kconsul updated this revision to Diff 482004.
kconsul added a comment.

[RISCV] Add support for RISCV XVentanaCondops Extension

This patch adds support for part of XVentanaCondops extension.
This extension is designed to reduce the number of branches in
the generated RISCV assembly by replacing branches with conditional
move instructions as defined by XVentanaCondops specification.

The specification for XVentanaCondops extension can be found at:
https://github.com/ventanamicro/ventana-custom-extensions/releases/download/v1.0.1/ventana-custom-extensions-v1.0.1.pdf

Signed-off-by: Kautuk Consul <kconsul at ventanamicro.com>
Signed-off-by: Mikhail Gudim <mgudim at ventanamicro.com>

Changes since v3:

- use Subtarget.hasVendorXVentanaCondOps() in the check in llvm/lib/Target/RISCV/RISCVISelLowering.cpp.
- Drop the -check-prefix=RV64 argument to FileCheck


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

https://reviews.llvm.org/D139394

Files:
  llvm/lib/Target/RISCV/RISCVISelLowering.cpp
  llvm/lib/Target/RISCV/RISCVInstrInfoXVentana.td
  llvm/test/CodeGen/RISCV/xventanacondops.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139394.482004.patch
Type: text/x-patch
Size: 12658 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221212/2fde1549/attachment.bin>


More information about the llvm-commits mailing list