[mlir] [VectorOps] Implement vector.constant_mask lowering to LLVM IR
authoraartbik <ajcbik@google.com>
Wed, 13 May 2020 00:07:29 +0000 (17:07 -0700)
committeraartbik <ajcbik@google.com>
Wed, 13 May 2020 02:44:23 +0000 (19:44 -0700)
commitfb2c4d50f1426356d0aa3a9eaa1dab50b25c9082
tree609a8780f4d0935bcf80e670c7e8189dc0891cc1
parent302c492cc5d97cf10837e71e4ee5872c01bc3682
[mlir] [VectorOps] Implement vector.constant_mask lowering to LLVM IR

Summary:
Makes this operation runnable on CPU by generating MLIR instructions
that are eventually folded into an LLVM IR constant for the mask.

Reviewers: nicolasvasilache, ftynse, reidtatge, bkramer, andydavis1

Reviewed By: nicolasvasilache, ftynse, andydavis1

Subscribers: mehdi_amini, rriddle, jpienaar, shauheen, antiagainst, nicolasvasilache, arpith-jacob, mgester, lucyrfox, liufengdb, stephenneuendorffer, Joonsoo, grosul1, frgossen, Kayjukh, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D79815
mlir/lib/Dialect/Vector/VectorTransforms.cpp
mlir/test/Conversion/VectorToLLVM/vector-to-llvm.mlir
mlir/test/Dialect/Vector/vector-contract-transforms.mlir
mlir/test/Target/vector-to-llvm-ir.mlir [new file with mode: 0644]