[PATCH] D76865: [mlir] StandardToLLVM: clean up conversion patterns for vector operations

Alex Zinenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 26 10:18:19 PDT 2020


ftynse created this revision.
ftynse added a reviewer: nicolasvasilache.
Herald added subscribers: llvm-commits, Joonsoo, liufengdb, aartbik, lucyrfox, mgester, arpith-jacob, antiagainst, shauheen, burmako, jpienaar, rriddle, mehdi_amini.
Herald added a project: LLVM.

Provide a public VectorConvertToLLVMPattern utility class to implement
conversions with automatic unrolling of operation on multidimensional vectors
to lists of operations on single-dimensional vectors when lowering to the LLVM
dialect. Drop the template-based check on the number of operands since the
actual implementation does not depend on the operand number anymore. This check
only creates spurious concepts (UnaryOpLowering, BinaryOpLowering, etc).

Depends On D76864 <https://reviews.llvm.org/D76864>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D76865

Files:
  mlir/include/mlir/Conversion/StandardToLLVM/ConvertStandardToLLVM.h
  mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76865.252890.patch
Type: text/x-patch
Size: 12934 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200326/565c5caa/attachment.bin>


More information about the llvm-commits mailing list