[all-commits] [llvm/llvm-project] 29a50c: [MLIR] Update Vector To LLVM conversion to be awar...

stephenneuendorffer via All-commits all-commits at lists.llvm.org
Wed May 19 10:51:17 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 29a50c5864ddab283c1ff38694fb5926ce37b39a
      https://github.com/llvm/llvm-project/commit/29a50c5864ddab283c1ff38694fb5926ce37b39a
  Author: Stephen Neuendorffer <stephen.neuendorffer at xilinx.com>
  Date:   2021-05-19 (Wed, 19 May 2021)

  Changed paths:
    M mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp
    M mlir/test/Conversion/VectorToLLVM/vector-to-llvm.mlir

  Log Message:
  -----------
  [MLIR] Update Vector To LLVM conversion to be aware of assume_alignment

vector.transfer_read and vector.transfer_write operations are converted
to llvm intrinsics with specific alignment information, however there
doesn't seem to be a way in llvm to take information from llvm.assume
intrinsics and change this alignment information.  In any
event, due the to the structure of the llvm.assume instrinsic, applying
this information at the llvm level is more cumbersome.  Instead, let's
generate the masked vector load and store instrinsic with the right
alignment information from MLIR in the first place.  Since
we're bothering to do this, lets just emit the proper alignment for
loads, stores, scatter, and gather ops too.

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




More information about the All-commits mailing list