[all-commits] [llvm/llvm-project] faf472: [mlir][EmitC] Convert MemRef::DeallocOp (#194591)

ioana ghiban via All-commits all-commits at lists.llvm.org
Thu Jun 4 03:13:12 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: faf4728454f57e93530a1ce4fa6f6ca2192e8afb
      https://github.com/llvm/llvm-project/commit/faf4728454f57e93530a1ce4fa6f6ca2192e8afb
  Author: ioana ghiban <ioana.ghiban at arm.com>
  Date:   2026-06-04 (Thu, 04 Jun 2026)

  Changed paths:
    M mlir/include/mlir/Conversion/MemRefToEmitC/MemRefToEmitC.h
    M mlir/lib/Conversion/MemRefToEmitC/MemRefToEmitC.cpp
    M mlir/lib/Conversion/MemRefToEmitC/MemRefToEmitCPass.cpp
    M mlir/test/Conversion/MemRefToEmitC/memref-to-emitc-alloc-dealloc.mlir
    M mlir/test/Conversion/MemRefToEmitC/memref-to-emitc-failed.mlir

  Log Message:
  -----------
  [mlir][EmitC] Convert MemRef::DeallocOp (#194591)

Add `memref.dealloc` lowering to EmitC by mapping pointer-backed
deallocations to `void*` cast + `free()` call. This complements the
existing `memref.alloc` lowering to `malloc()` / `aligned_alloc()` and
ensures the pass emits the required standard library include when
`free()` is used.

Assisted-by: Codex (refine implementation + tests). I reviewed all code
and tests before submission.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list