MLIR
17.0.0git
|
#include "mlir/Dialect/Bufferization/Transforms/Passes.h"
#include "mlir/Dialect/Func/IR/FuncOps.h"
#include "mlir/Dialect/MemRef/IR/MemRef.h"
#include "mlir/IR/Operation.h"
#include "mlir/Pass/Pass.h"
#include "mlir/Dialect/Bufferization/Transforms/Passes.h.inc"
Go to the source code of this file.
Namespaces | |
mlir | |
This header declares functions that assit transformations in the MemRef dialect. | |
mlir::bufferization | |
Macros | |
#define | GEN_PASS_DEF_BUFFERRESULTSTOOUTPARAMS |
Functions | |
static bool | hasFullyDynamicLayoutMap (MemRefType type) |
Return true if the given MemRef type has a fully dynamic layout. More... | |
static bool | hasStaticIdentityLayout (MemRefType type) |
Return true if the given MemRef type has a static identity layout (i.e., no layout). More... | |
static LogicalResult | updateFuncOp (func::FuncOp func, SmallVectorImpl< BlockArgument > &appendedEntryArgs) |
static void | updateReturnOps (func::FuncOp func, ArrayRef< BlockArgument > appendedEntryArgs) |
static LogicalResult | updateCalls (ModuleOp module, const bufferization::BufferResultsToOutParamsOptions &options) |
#define GEN_PASS_DEF_BUFFERRESULTSTOOUTPARAMS |
Definition at line 18 of file BufferResultsToOutParams.cpp.
|
static |
Return true
if the given MemRef type has a fully dynamic layout.
Definition at line 26 of file BufferResultsToOutParams.cpp.
References mlir::failed(), and mlir::getStridesAndOffset().
Referenced by updateFuncOp().
|
static |
Return true
if the given MemRef type has a static identity layout (i.e., no layout).
Definition at line 40 of file BufferResultsToOutParams.cpp.
Referenced by updateFuncOp().
|
static |
Definition at line 123 of file BufferResultsToOutParams.cpp.
Referenced by mlir::bufferization::promoteBufferResultsToOutParams().
|
static |
Definition at line 48 of file BufferResultsToOutParams.cpp.
References mlir::detail::enumerate(), mlir::get(), hasFullyDynamicLayoutMap(), hasStaticIdentityLayout(), and mlir::success().
Referenced by mlir::bufferization::promoteBufferResultsToOutParams().
|
static |
Definition at line 100 of file BufferResultsToOutParams.cpp.
Referenced by mlir::bufferization::promoteBufferResultsToOutParams().