[all-commits] [llvm/llvm-project] cd0d21: [mlir][LLVM] Allow scalable vectors in ShuffleVect...

jsetoain via All-commits all-commits at lists.llvm.org
Thu Feb 24 03:34:59 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cd0d21b47b5e618d14ff08cc1e65cb85e17c47a3
      https://github.com/llvm/llvm-project/commit/cd0d21b47b5e618d14ff08cc1e65cb85e17c47a3
  Author: Javier Setoain <javier.setoain at gmail.com>
  Date:   2022-02-24 (Thu, 24 Feb 2022)

  Changed paths:
    M mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
    M mlir/test/Dialect/LLVMIR/invalid.mlir
    M mlir/test/Dialect/LLVMIR/roundtrip.mlir
    M mlir/test/Target/LLVMIR/llvmir.mlir

  Log Message:
  -----------
  [mlir][LLVM] Allow scalable vectors in ShuffleVectorOp

The current implementation of ShuffleVectorOp assumes all vectors are
scalable. LLVM IR allows shufflevector operations on scalable vectors,
and the current translation between LLVM Dialect and LLVM IR does the
rigth thing when the shuffle mask is all zeroes. This is required to
do a splat operation on a scalable vector, but it doesn't make sense
for scalable vectors outside of that operation, i.e.: with non-all zero
masks.

Differential Revision: https://reviews.llvm.org/D118371




More information about the All-commits mailing list