[PATCH] D78071: [mlir] [VectorOps] Progressive lowering of vector.broadcast

Aart Bik via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 13 19:02:00 PDT 2020


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

Rather than having a full, recursive, lowering of vector.broadcast
to LLVM IR, it is much more elegant to have a progressive lowering
of each vector.broadcast into a lower dimensional vector.broadcast,
until only elementary vector operations remain. This results
in more elegant, step-wise code, that is easier to understand.
Also makes some optimizations in the generated code.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D78071

Files:
  mlir/include/mlir/Dialect/Vector/VectorOps.h
  mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp
  mlir/lib/Dialect/Vector/VectorTransforms.cpp
  mlir/test/Conversion/VectorToLLVM/vector-to-llvm.mlir
  mlir/test/Dialect/Vector/vector-contract-transforms.mlir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78071.257179.patch
Type: text/x-patch
Size: 56348 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200414/817a36f2/attachment.bin>


More information about the llvm-commits mailing list