[all-commits] [llvm/llvm-project] 4ec00f: [mlir][bufferize] Add a way for ops to fail the an...

Matthias Springer via All-commits all-commits at lists.llvm.org
Sat Feb 19 12:56:01 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4ec00fb3eafa885da6d305ebdf1361d4be54dedf
      https://github.com/llvm/llvm-project/commit/4ec00fb3eafa885da6d305ebdf1361d4be54dedf
  Author: Matthias Springer <springerm at google.com>
  Date:   2022-02-20 (Sun, 20 Feb 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/Bufferization/IR/BufferizableOpInterface.td
    M mlir/include/mlir/Dialect/SCF/BufferizableOpInterfaceImpl.h
    M mlir/lib/Dialect/Bufferization/Transforms/OneShotAnalysis.cpp
    M mlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferizePass.cpp
    M mlir/lib/Dialect/SCF/Transforms/BufferizableOpInterfaceImpl.cpp
    M mlir/test/Dialect/Linalg/comprehensive-module-bufferize-invalid.mlir
    M mlir/test/Dialect/Linalg/comprehensive-module-bufferize-partial.mlir
    M mlir/test/lib/Dialect/Linalg/TestComprehensiveBufferize.cpp

  Log Message:
  -----------
  [mlir][bufferize] Add a way for ops to fail the analysis

Add `BufferizableOpInterface::verifyAnalysis`. Ops can implement this method to check for expected invariants and limitations.

The purpose of this change is to introduce a modular way of checking assertions such as `assertScfForAliasingProperties`.

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




More information about the All-commits mailing list