[PATCH] D112986: [WIP][RISCV] Restrict zvamo, zvlsseg with zve macro-s

Yueh-Ting Chen via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 1 23:56:52 PDT 2021


eopXD created this revision.
eopXD added reviewers: kito.cheng, craig.topper, khchen.
Herald added subscribers: VincentWu, luke957, achieveartificialintelligence, vkmr, frasercrmck, evandro, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya.
eopXD requested review of this revision.
Herald added subscribers: llvm-commits, cfe-commits, MaskRay.
Herald added projects: clang, LLVM.

The `zve` extension specifies the maximum EEW for both integer and floating
point mode - defined by macro `__riscv_v_max_eew` and `__riscv_v_max_eew_fp`.
This commit restricts the functions in riscv_vector.h by the zve defined
macro-s.

Alongside this commit also changes the RISCVExtension in `RISCVVEmitter.cpp`
from type `uint8_t` to `uint16_t`, and add type alignment to it.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D112986

Files:
  clang/utils/TableGen/RISCVVEmitter.cpp
  llvm/lib/Target/RISCV/RISCVInstrInfoV.td
  llvm/test/MC/RISCV/rvv/zvamo.s
  llvm/test/MC/RISCV/rvv/zvlsseg.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112986.383984.patch
Type: text/x-patch
Size: 280573 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211102/2d5bef93/attachment-0001.bin>


More information about the cfe-commits mailing list