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

Matthias Springer via All-commits all-commits at lists.llvm.org
Fri Sep 20 07:42:56 PDT 2024


  Branch: refs/heads/users/matthias-springer/reinterp_cast_builder
  Home:   https://github.com/llvm/llvm-project
  Commit: 4eaa9b53fedc1ab755a2ffcc4e8a7b41f4409fea
      https://github.com/llvm/llvm-project/commit/4eaa9b53fedc1ab755a2ffcc4e8a7b41f4409fea
  Author: Matthias Springer <mspringer at nvidia.com>
  Date:   2024-09-20 (Fri, 20 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

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 that do not match. The op verifier should probably be made stricter, but that's a larger refactoring 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