[all-commits] [llvm/llvm-project] a4a421: [mlir] support translation of multidimensional vec...

ftynse via All-commits all-commits at lists.llvm.org
Thu Jan 16 15:06:11 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a4a42160c4463eac74c5d0cfa9a88c4971d8a23e
      https://github.com/llvm/llvm-project/commit/a4a42160c4463eac74c5d0cfa9a88c4971d8a23e
  Author: Alex Zinenko <zinenko at google.com>
  Date:   2020-01-17 (Fri, 17 Jan 2020)

  Changed paths:
    M mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
    M mlir/test/Target/llvmir-invalid.mlir
    M mlir/test/Target/llvmir.mlir

  Log Message:
  -----------
  [mlir] support translation of multidimensional vectors to LLVM IR

Summary:
MLIR unlike LLVM IR supports multidimensional vector types. Such types are
lowered to nested LLVM IR arrays wrapping an LLVM IR vector for the innermost
dimension of the MLIR vector. MLIR supports constants of such types using
ElementsAttr for values. Introduce support for converting ElementsAttr into
LLVM IR Constant Aggregates recursively. This enables translation of
multidimensional vector constants from MLIR to LLVM IR.

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




More information about the All-commits mailing list