commit | c61dccaf706cd6a0f9175e4061bfaffa86508728 | [log] [tgz] |
---|---|---|
author | Matthias Gehre <matthias.gehre@amd.com> | Thu Apr 18 15:47:08 2024 +0200 |
committer | Copybara-Service <copybara-worker@google.com> | Thu Apr 18 06:53:05 2024 -0700 |
tree | cac93f1b6fa3bdaf3a898125181fdbfca10669c8 | |
parent | d37030676542f20a9d976773797ae55cea3ecbce [diff] |
[mlir][Bufferization] castOrReallocMemRefValue: Use BufferizationOptions (#89175) This allows to configure both the op used for allocation and copy of memrefs. It also changes the default behavior because the default allocation in `BufferizationOptions` creates `memref.alloc` with `alignment = 64` where we used to create `memref.alloca` without any alignment before. Fixes ``` // TODO: Use alloc/memcpy callback from BufferizationOptions if called via // BufferizableOpInterface impl of ToMemrefOp. ``` GitOrigin-RevId: c515c780244e3ecbb1fcfd06b3ad588d8d22c28e
See https://mlir.llvm.org/ for more information.