[all-commits] [llvm/llvm-project] 56d68e: [mlir][bufferization] Add optional `copy` operand ...

Matthias Springer via All-commits all-commits at lists.llvm.org
Thu Jun 9 12:42:06 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 56d68e8d7a17c32d2fd0d0894fc0776df0d85673
      https://github.com/llvm/llvm-project/commit/56d68e8d7a17c32d2fd0d0894fc0776df0d85673
  Author: Matthias Springer <springerm at google.com>
  Date:   2022-06-09 (Thu, 09 Jun 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/Bufferization/IR/BufferizationOps.td
    M mlir/lib/Dialect/Bufferization/IR/BufferizationOps.cpp
    M mlir/python/mlir/dialects/_bufferization_ops_ext.py
    M mlir/test/Dialect/Bufferization/Transforms/one-shot-bufferize.mlir
    M mlir/test/Dialect/Bufferization/canonicalize.mlir
    M mlir/test/Dialect/Bufferization/invalid.mlir
    M mlir/test/Dialect/Bufferization/ops.mlir
    M mlir/test/Integration/Dialect/SparseTensor/taco/tools/mlir_pytaco.py

  Log Message:
  -----------
  [mlir][bufferization] Add optional `copy` operand to AllocTensorOp

If `copy` is specified, the newly allocated buffer is initialized with the given contents. Also add an optional `escape` attribute to indicate whether the buffer of the tensor may be returned from the parent block (aka. "escape") after bufferization.

This change is in preparation of connecting One-Shot Bufferize to the sparse compiler.

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




More information about the All-commits mailing list