| 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.
| Namespaces | |
| mlir | |
| Include the generated interface declarations. | |
| mlir::bufferization | |
| Macros | |
| #define | GEN_PASS_DEF_OWNERSHIPBASEDBUFFERDEALLOCATIONPASS | 
| Functions | |
| 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.  More... | |
| static bool | hasBufferSemantics (Operation *op) | 
| Return "true" if the given op has buffer semantics.  More... | |
| #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().
| 
 | static | 
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().
| 
 | static | 
Return "true" if the given op is guaranteed to have neither "Allocate" nor "Free" side effects.
Definition at line 53 of file OwnershipBasedBufferDeallocation.cpp.
| 
 | static | 
Definition at line 49 of file OwnershipBasedBufferDeallocation.cpp.
References mlir::Value::getType().
Referenced by hasBufferSemantics().