[all-commits] [llvm/llvm-project] 0259f9: [mlir][memref] Add builder that infers `reinterpre...

Matthias Springer via All-commits all-commits at lists.llvm.org
Wed Sep 25 00:33:37 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0259f92711599c45d229fb12f6f51915fffac6bd
      https://github.com/llvm/llvm-project/commit/0259f92711599c45d229fb12f6f51915fffac6bd
  Author: Matthias Springer <me at m-sp.org>
  Date:   2024-09-25 (Wed, 25 Sep 2024)

  Changed paths:
    M mlir/include/mlir/Dialect/MemRef/IR/MemRefOps.td
    M mlir/lib/Dialect/Bufferization/IR/BufferDeallocationOpInterface.cpp
    M mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp

  Log Message:
  -----------
  [mlir][memref] Add builder that infers `reinterpret_cast` result type (#109432)

Add a convenience builder that infers the result type of
`memref.reinterpret_cast`.

Note: It is not possible to remove the result type from all builder
overloads because this op currently also allows certain
operand/attribute + result type combinations that do not match. The op
verifier should probably be made stricter, but that's a larger change
that requires additional `memref.cast` ops in some places that build
`reinterpret_cast` ops.



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