MLIR  16.0.0git
Namespaces | Macros | Functions
BufferizableOpInterface.cpp File Reference
#include "mlir/Dialect/Bufferization/IR/BufferizableOpInterface.h"
#include "mlir/Dialect/Bufferization/IR/Bufferization.h"
#include "mlir/Dialect/Func/IR/FuncOps.h"
#include "mlir/Dialect/MemRef/IR/MemRef.h"
#include "mlir/Dialect/Tensor/IR/Tensor.h"
#include "mlir/IR/AsmState.h"
#include "mlir/IR/BlockAndValueMapping.h"
#include "mlir/IR/BuiltinOps.h"
#include "mlir/IR/Operation.h"
#include "mlir/IR/TypeUtilities.h"
#include "mlir/IR/Value.h"
#include "llvm/Support/Debug.h"
#include "mlir/Dialect/Bufferization/IR/"
+ Include dependency graph for BufferizableOpInterface.cpp:

Go to the source code of this file.


 Include the generated interface declarations.


#define DEBUG_TYPE   "bufferizable-op-interface"
#define DBGS()   (llvm::dbgs() << '[' << DEBUG_TYPE << "] ")
#define LDBG(X)   LLVM_DEBUG(DBGS() << (X))


static OperationgetOwnerOfValue (Value value)
 Return the owner of the given value. More...
static BaseMemRefType defaultUnknownTypeConverter (Value value, unsigned memorySpace, const BufferizationOptions &options)
 Default unknown type converter: Use a fully dynamic layout map. More...
static void setInsertionPointAfter (OpBuilder &b, Value value)
static void ensureToMemrefOpIsValid (Value tensor, Type memrefType)

Macro Definition Documentation


#define DBGS ( )    (llvm::dbgs() << '[' << DEBUG_TYPE << "] ")

Definition at line 35 of file BufferizableOpInterface.cpp.


#define DEBUG_TYPE   "bufferizable-op-interface"

Definition at line 34 of file BufferizableOpInterface.cpp.


#define LDBG (   X)    LLVM_DEBUG(DBGS() << (X))

Definition at line 36 of file BufferizableOpInterface.cpp.

Function Documentation

◆ defaultUnknownTypeConverter()

static BaseMemRefType defaultUnknownTypeConverter ( Value  value,
unsigned  memorySpace,
const BufferizationOptions options 

Default unknown type converter: Use a fully dynamic layout map.

Definition at line 261 of file BufferizableOpInterface.cpp.

References mlir::Type::cast(), mlir::bufferization::getMemRefTypeWithFullyDynamicLayout(), and mlir::Value::getType().

◆ ensureToMemrefOpIsValid()

static void ensureToMemrefOpIsValid ( Value  tensor,
Type  memrefType 

◆ getOwnerOfValue()

static Operation* getOwnerOfValue ( Value  value)

Return the owner of the given value.

Definition at line 42 of file BufferizableOpInterface.cpp.

References mlir::Value::cast(), and mlir::Value::dyn_cast().

Referenced by mlir::bufferization::getBufferType().

◆ setInsertionPointAfter()

static void setInsertionPointAfter ( OpBuilder b,
Value  value