[all-commits] [llvm/llvm-project] c515c7: [mlir][Bufferization] castOrReallocMemRefValue: Us...

Matthias Gehre via All-commits all-commits at lists.llvm.org
Thu Apr 18 06:47:30 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c515c780244e3ecbb1fcfd06b3ad588d8d22c28e
      https://github.com/llvm/llvm-project/commit/c515c780244e3ecbb1fcfd06b3ad588d8d22c28e
  Author: Matthias Gehre <matthias.gehre at amd.com>
  Date:   2024-04-18 (Thu, 18 Apr 2024)

  Changed paths:
    M mlir/include/mlir/Dialect/Bufferization/IR/Bufferization.h
    M mlir/lib/Dialect/Bufferization/IR/BufferizationOps.cpp
    M mlir/lib/Dialect/Bufferization/Transforms/Bufferize.cpp
    M mlir/test/Dialect/Bufferization/Transforms/one-shot-module-bufferize-out-params.mlir
    M mlir/test/Dialect/Bufferization/Transforms/one-shot-module-bufferize.mlir

  Log Message:
  -----------
  [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.
```



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list