Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
mlir/include/mlir/Dialect/Bufferization/Transforms/BufferUtils.h
Show First 20 Lines • Show All 119 Lines • ▼ Show 20 Lines | protected: | ||||
/// about alloc and dealloc positions. | /// about alloc and dealloc positions. | ||||
Liveness liveness; | Liveness liveness; | ||||
}; | }; | ||||
// Create a global op for the given tensor-valued constant in the program. | // Create a global op for the given tensor-valued constant in the program. | ||||
// Globals are created lazily at the top of the enclosing ModuleOp with pretty | // Globals are created lazily at the top of the enclosing ModuleOp with pretty | ||||
// names. Duplicates are avoided. | // names. Duplicates are avoided. | ||||
FailureOr<memref::GlobalOp> getGlobalFor(arith::ConstantOp constantOp, | FailureOr<memref::GlobalOp> getGlobalFor(arith::ConstantOp constantOp, | ||||
uint64_t alignment); | uint64_t alignment, | ||||
Attribute memorySpace = {}); | |||||
springerm: nit: Can we make this optional: `Attribute memorySpace = {}`
| |||||
} // namespace bufferization | } // namespace bufferization | ||||
} // namespace mlir | } // namespace mlir | ||||
#endif // MLIR_DIALECT_BUFFERIZATION_TRANSFORMS_BUFFERUTILS_H | #endif // MLIR_DIALECT_BUFFERIZATION_TRANSFORMS_BUFFERUTILS_H |
nit: Can we make this optional: Attribute memorySpace = {}