[all-commits] [llvm/llvm-project] 665371: [mlir] Split alloc-like op LLVM lowerings into bas...

Christian Sigg via All-commits all-commits at lists.llvm.org
Mon Oct 5 08:36:27 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 665371d0b29910d7fba618a707d6b732e2037ee2
      https://github.com/llvm/llvm-project/commit/665371d0b29910d7fba618a707d6b732e2037ee2
  Author: Christian Sigg <csigg at google.com>
  Date:   2020-10-05 (Mon, 05 Oct 2020)

  Changed paths:
    M mlir/include/mlir/Conversion/StandardToLLVM/ConvertStandardToLLVM.h
    M mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp
    M mlir/test/Conversion/StandardToLLVM/convert-dynamic-memref-ops.mlir
    M mlir/test/Conversion/StandardToLLVM/convert-static-memref-ops.mlir

  Log Message:
  -----------
  [mlir] Split alloc-like op LLVM lowerings into base and separate derived classes.

The previous code did the lowering to alloca, malloc, and aligned_malloc
in a single class with different code paths that are somewhat difficult to
follow.

This change moves the common code to a base class and has a separte
derived class per lowering target that contains the specifics.

Reviewed By: ftynse

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




More information about the All-commits mailing list