MLIR 22.0.0git
BufferDeallocationOpInterface.h File Reference
#include "mlir/Analysis/Liveness.h"
#include "mlir/IR/Operation.h"
#include "mlir/IR/SymbolTable.h"
#include "mlir/Support/LLVM.h"
#include "mlir/Dialect/Bufferization/IR/BufferDeallocationOpInterface.h.inc"

Go to the source code of this file.

Classes

struct  mlir::bufferization::ValueComparator
 Compare two SSA values in a deterministic manner. More...
class  mlir::bufferization::Ownership
 This class is used to track the ownership of values. More...
struct  mlir::bufferization::DeallocationOptions
 Options for BufferDeallocationOpInterface-based buffer deallocation. More...
class  mlir::bufferization::DeallocationState
 This class collects all the state that we need to perform the buffer deallocation pass with associated helper functions such that we have easy access to it in the BufferDeallocationOpInterface implementations and the BufferDeallocation pass. More...

Namespaces

namespace  mlir
 Include the generated interface declarations.
namespace  mlir::bufferization
namespace  mlir::bufferization::deallocation_impl

Functions

FailureOr< Operation * > mlir::bufferization::deallocation_impl::insertDeallocOpForReturnLike (DeallocationState &state, Operation *op, ValueRange operands, SmallVectorImpl< Value > &updatedOperandOwnerships)
 Insert a bufferization.dealloc operation right before op which has to be a terminator without any successors.