|
MLIR 22.0.0git
|
#include "mlir/Dialect/Bufferization/IR/BufferDeallocationOpInterface.h"#include "mlir/Dialect/Bufferization/IR/Bufferization.h"#include "mlir/Dialect/Bufferization/Transforms/Passes.h"#include "mlir/Dialect/ControlFlow/IR/ControlFlowOps.h"#include "mlir/Dialect/Func/IR/FuncOps.h"#include "mlir/Dialect/MemRef/IR/MemRef.h"#include "mlir/Dialect/SCF/IR/SCF.h"#include "mlir/IR/Iterators.h"#include "mlir/Interfaces/ControlFlowInterfaces.h"#include "mlir/Dialect/Bufferization/Transforms/Passes.h.inc"Go to the source code of this file.
Classes | |
| class | mlir::bufferization::impl::OwnershipBasedBufferDeallocationPassBase< DerivedT > |
Namespaces | |
| namespace | mlir |
| Include the generated interface declarations. | |
| namespace | mlir::bufferization |
| namespace | mlir::bufferization::impl |
Macros | |
| #define | GEN_PASS_DEF_OWNERSHIPBASEDBUFFERDEALLOCATIONPASS |
Functions | |
| std::unique_ptr<::mlir::Pass > | mlir::bufferization::impl::createOwnershipBasedBufferDeallocationPass () |
| std::unique_ptr<::mlir::Pass > | mlir::bufferization::impl::createOwnershipBasedBufferDeallocationPass (OwnershipBasedBufferDeallocationPassOptions options) |
| std::unique_ptr<::mlir::Pass > | mlir::bufferization::createOwnershipBasedBufferDeallocationPass () |
| std::unique_ptr<::mlir::Pass > | mlir::bufferization::createOwnershipBasedBufferDeallocationPass (OwnershipBasedBufferDeallocationPassOptions options) |
| static Value | buildBoolValue (OpBuilder &builder, Location loc, bool value) |
| static bool | isMemref (Value v) |
| static bool | hasNeitherAllocateNorFreeSideEffect (Operation *op) |
| Return "true" if the given op is guaranteed to have neither "Allocate" nor "Free" side effects. | |
| static bool | hasBufferSemantics (Operation *op) |
| Return "true" if the given op has buffer semantics. | |
| #define GEN_PASS_DEF_OWNERSHIPBASEDBUFFERDEALLOCATIONPASS |
Definition at line 33 of file OwnershipBasedBufferDeallocation.cpp.
Definition at line 45 of file OwnershipBasedBufferDeallocation.cpp.
References mlir::Builder::getBoolAttr().
Return "true" if the given op has buffer semantics.
I.e., it has buffer operands, buffer results and/or buffer region entry block arguments.
Definition at line 60 of file OwnershipBasedBufferDeallocation.cpp.
References mlir::Operation::getOperands(), mlir::Operation::getRegions(), mlir::Operation::getResults(), and isMemref().
Return "true" if the given op is guaranteed to have neither "Allocate" nor "Free" side effects.
Definition at line 53 of file OwnershipBasedBufferDeallocation.cpp.
References mlir::mightHaveEffect().
Definition at line 49 of file OwnershipBasedBufferDeallocation.cpp.
References mlir::Value::getType().
Referenced by mlir::bufferization::createOwnershipBasedBufferDeallocationPass().