[PATCH] D81724: [MVT] Add new MVT types for RISC-V vector.

Hsiangkai Wang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 12 02:40:24 PDT 2020


HsiangKai created this revision.
HsiangKai added reviewers: rogfer01, evandro, rkruppe.
Herald added subscribers: luismarques, sameer.abuasal, s.egerton, lenary, Jim, PkmX, shiva0217, kito-cheng, simoncook, aheejin, hiraditya, dschuff.
Herald added a project: LLVM.

In RISC-V vector extension, users could group multiple vector registers as one pseudo register. In mixed width operations, users could use partial vector registers to reduce the register pressure. The parameter to control register grouping and partial use is called LMUL. LMUL is a part of the type. So, we have a bunch of vector types. In order to support all these types, we need new MVT types in LLVM. In this patch, I added several MVT types that are used in RISC-V vector implementation. This is a standalone patch for MVT types without RISC-V related implementation.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D81724

Files:
  llvm/include/llvm/CodeGen/ValueTypes.td
  llvm/include/llvm/Support/MachineValueType.h
  llvm/lib/CodeGen/ValueTypes.cpp
  llvm/lib/IR/Function.cpp
  llvm/utils/TableGen/CodeGenTarget.cpp
  llvm/utils/TableGen/IntrinsicEmitter.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81724.270334.patch
Type: text/x-patch
Size: 35841 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200612/a5ee8946/attachment.bin>


More information about the llvm-commits mailing list