[all-commits] [llvm/llvm-project] 9aae3d: [mlir][llvm] Update insertion point handling in LL...

Tobias Gysi via All-commits all-commits at lists.llvm.org
Tue Nov 8 00:21:48 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9aae3dd94c881a36998ee8027d3e126ff3becf89
      https://github.com/llvm/llvm-project/commit/9aae3dd94c881a36998ee8027d3e126ff3becf89
  Author: Tobias Gysi <tobias.gysi at nextsilicon.com>
  Date:   2022-11-08 (Tue, 08 Nov 2022)

  Changed paths:
    M mlir/lib/Target/LLVMIR/ConvertFromLLVMIR.cpp
    M mlir/test/Target/LLVMIR/Import/basic.ll
    M mlir/test/Target/LLVMIR/Import/constant-aggregate.ll
    M mlir/test/Target/LLVMIR/Import/incorrect-constant-caching.ll
    M mlir/test/Target/LLVMIR/Import/incorrect-constexpr-inst-caching.ll
    M mlir/test/Target/LLVMIR/Import/instructions.ll
    M mlir/test/Target/LLVMIR/Import/intrinsic.ll
    M mlir/test/Target/LLVMIR/Import/zeroinitializer.ll

  Log Message:
  -----------
  [mlir][llvm] Update insertion point handling in LLVM import.

Insert constants and globals in order by maintaining the position
of the constant and global inserted last. Update the tests
to reflect the updated insertion order. Also make sure functions
are always inserted at the end of the module instead of at
the second last position and delete a spurious function in
the intrinsic.ll that seems to exist to avoid the first
function under test ends up at the end of the module.

Reviewed By: ftynse

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




More information about the All-commits mailing list