MLIR  19.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/BuiltinOps.h"
#include "mlir/IR/IRMapping.h"
#include "mlir/IR/Operation.h"
#include "mlir/IR/TypeUtilities.h"
#include "mlir/IR/Value.h"
#include "mlir/Interfaces/ControlFlowInterfaces.h"
#include "llvm/ADT/ScopeExit.h"
#include "llvm/Support/Debug.h"
#include "mlir/Dialect/Bufferization/IR/BufferizableOpInterface.cpp.inc"

Go to the source code of this file.

Namespaces

 mlir
 Include the generated interface declarations.
 
 mlir::bufferization
 

Macros

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

Functions

static bool isRepetitiveRegion (Region *region, const BufferizationOptions &options)
 
static void setInsertionPointAfter (OpBuilder &b, Value value)
 
static void ensureToMemrefOpIsValid (Value tensor, Type memrefType)
 

Macro Definition Documentation

◆ DBGS

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

Definition at line 39 of file BufferizableOpInterface.cpp.

◆ DEBUG_TYPE

#define DEBUG_TYPE   "bufferizable-op-interface"

Definition at line 38 of file BufferizableOpInterface.cpp.

◆ LDBG

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

Definition at line 40 of file BufferizableOpInterface.cpp.

Function Documentation

◆ ensureToMemrefOpIsValid()

static void ensureToMemrefOpIsValid ( Value  tensor,
Type  memrefType 
)
static

Definition at line 630 of file BufferizableOpInterface.cpp.

References mlir::Value::getType().

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

◆ isRepetitiveRegion()

static bool isRepetitiveRegion ( Region region,
const BufferizationOptions options 
)
static

◆ setInsertionPointAfter()

static void setInsertionPointAfter ( OpBuilder b,
Value  value 
)
static