mirror of
https://github.com/intel/llvm.git
synced 2026-02-02 02:00:03 +08:00
[mlir][Linalg] Add named Linalg ops on tensor to buffer support.
This revision introduces support for buffer allocation for any named linalg op. To avoid template instantiating many ops, a new ConversionPattern is created to capture the LinalgOp interface. Some APIs are updated to remain consistent with MLIR style: `OwningRewritePatternList * -> OwningRewritePatternList &` `BufferAssignmentTypeConverter * -> BufferAssignmentTypeConverter &` Differential revision: https://reviews.llvm.org/D89226
This commit is contained in:
@@ -155,7 +155,7 @@ add_public_tablegen_target(<name-of-the-cmake-target>)
|
||||
Then you can `#include` the generated file in any C++ implementation file you
|
||||
like. (You will also need to make sure the library depends on the CMake target
|
||||
defined in the above.) The generated file will have a `populateWithGenerated(
|
||||
MLIRContext *context, OwningRewritePatternList *patterns)` function that you can
|
||||
MLIRContext *context, OwningRewritePatternList &patterns)` function that you can
|
||||
use to collect all the generated patterns inside `patterns` and then use
|
||||
`patterns` in any pass you would like.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user