This is an archive of the discontinued LLVM Phabricator instance.

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

Authored by ftynse on Mar 26 2020, 10:09 AM.

Details

Summary

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

Diff Detail

Event Timeline

ftynse created this revision.Mar 26 2020, 10:09 AM
This revision is now accepted and ready to land.Mar 26 2020, 10:21 AM
This revision was automatically updated to reflect the committed changes.