[Mlir-commits] [mlir] [MLIR] Setting MemorySpace During Bufferization + Fixes (PR #78484)

Matthias Springer llvmlistbot at llvm.org
Mon Feb 5 02:18:50 PST 2024


================
@@ -351,6 +349,11 @@ struct BufferizationOptions {
   /// used.
   UnknownTypeConverterFn unknownTypeConverterFn = nullptr;
 
+  // Use during type conversion to determine the memory space for memref based
+  // on the originanl tensor type if the memory space cannot be inferred.
+  DefaultMemorySpaceFn defaultMemorySpaceFn =
----------------
matthias-springer wrote:

Add something like this to the docs: `In case of std::nullopt, bufferization fails when the memory space cannot be inferred at any point.`


https://github.com/llvm/llvm-project/pull/78484


More information about the Mlir-commits mailing list