[all-commits] [llvm/llvm-project] f7cd55: [mlir][llvm] Improve LLVM IR constant import.

Tobias Gysi via All-commits all-commits at lists.llvm.org
Thu May 11 05:53:01 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f7cd55f56e9413f37474c8c12fc0a6231bf5fca5
      https://github.com/llvm/llvm-project/commit/f7cd55f56e9413f37474c8c12fc0a6231bf5fca5
  Author: Tobias Gysi <tobias.gysi at nextsilicon.com>
  Date:   2023-05-11 (Thu, 11 May 2023)

  Changed paths:
    M mlir/include/mlir/Target/LLVMIR/ModuleImport.h
    M mlir/lib/Target/LLVMIR/ModuleImport.cpp
    M mlir/test/Target/LLVMIR/Import/global-variables.ll

  Log Message:
  -----------
  [mlir][llvm] Improve LLVM IR constant import.

Improve the constant import to handle zeroinitializer as well as
additional float types such as quad floats. The logic got restructured
to avoid creating intermediate dense element attributes when
constructing multi-dimensional arrays. Additionally, we also leverage
the fact that we do not need to iterate all elements of splat constants.

Reviewed By: Dinistro

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




More information about the All-commits mailing list