[all-commits] [llvm/llvm-project] 9f13b9: [mlir][memref] Add realloc op.

Bixia Zheng via All-commits all-commits at lists.llvm.org
Wed Sep 21 08:04:17 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9f13b9346b7c159fb40168ed0bb5dab6b0652836
      https://github.com/llvm/llvm-project/commit/9f13b9346b7c159fb40168ed0bb5dab6b0652836
  Author: bixia1 <bixia at google.com>
  Date:   2022-09-21 (Wed, 21 Sep 2022)

  Changed paths:
    M mlir/include/mlir/Conversion/MemRefToLLVM/AllocLikeConversion.h
    M mlir/include/mlir/Dialect/MemRef/IR/MemRefOps.td
    M mlir/lib/Conversion/MemRefToLLVM/AllocLikeConversion.cpp
    M mlir/lib/Conversion/MemRefToLLVM/MemRefToLLVM.cpp
    M mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp
    M mlir/test/Conversion/MemRefToLLVM/convert-dynamic-memref-ops.mlir
    M mlir/test/Conversion/MemRefToLLVM/convert-static-memref-ops.mlir
    M mlir/test/Dialect/MemRef/canonicalize.mlir
    M mlir/test/Dialect/MemRef/invalid.mlir
    M mlir/test/Dialect/MemRef/ops.mlir
    A mlir/test/Integration/Dialect/Vector/CPU/test-realloc.mlir

  Log Message:
  -----------
  [mlir][memref] Add realloc op.

Add memref.realloc and canonicalization of the op. Add conversion patterns for
lowering the op to LLVM using unaligned alloc or aligned alloc based on the
conversion option.

Add filecheck tests for parsing and converting the op. Add an integration test.

Reviewed By: ftynse

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




More information about the All-commits mailing list