MLIR  16.0.0git
Namespaces | Macros | Functions
BufferResultsToOutParams.cpp File Reference
#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"
+ Include dependency graph for BufferResultsToOutParams.cpp:

Go to the source code of this file.

Namespaces

 mlir
 Include the generated interface declarations.
 
 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)
 

Macro Definition Documentation

◆ GEN_PASS_DEF_BUFFERRESULTSTOOUTPARAMS

#define GEN_PASS_DEF_BUFFERRESULTSTOOUTPARAMS

Definition at line 18 of file BufferResultsToOutParams.cpp.

Function Documentation

◆ hasFullyDynamicLayoutMap()

static bool hasFullyDynamicLayoutMap ( MemRefType  type)
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 updateCalls(), and updateFuncOp().

◆ hasStaticIdentityLayout()

static bool hasStaticIdentityLayout ( MemRefType  type)
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 updateCalls(), and updateFuncOp().

◆ updateCalls()

static LogicalResult updateCalls ( ModuleOp  module)
static

◆ updateFuncOp()

static LogicalResult updateFuncOp ( func::FuncOp  func,
SmallVectorImpl< BlockArgument > &  appendedEntryArgs 
)
static

◆ updateReturnOps()

static void updateReturnOps ( func::FuncOp  func,
ArrayRef< BlockArgument appendedEntryArgs 
)
static