[all-commits] [llvm/llvm-project] b3d48a: [mlir][Memref] Introduce a memref::ExtractAlignedP...

Nicolas Vasilache via All-commits all-commits at lists.llvm.org
Mon Sep 26 08:55:21 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b3d48a60ff248f3d1a61435e5ad440c310b3d95c
      https://github.com/llvm/llvm-project/commit/b3d48a60ff248f3d1a61435e5ad440c310b3d95c
  Author: Nicolas Vasilache <nicolas.vasilache at gmail.com>
  Date:   2022-09-26 (Mon, 26 Sep 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/MemRef/IR/MemRefOps.td
    M mlir/test/Dialect/MemRef/ops.mlir

  Log Message:
  -----------
  [mlir][Memref] Introduce a memref::ExtractAlignedPointerAsIndexOp

As experience with memref::ExtractStridedMetadataOp grows we are
still missing a simple way to extract the pointer held by a memref
and lower to different backednds (LLVM, SPIRV, library calls).

This revision introduces a memref.extract_aligned_pointer_as_index that
returns an index containing the aligned pointer of the strided memref.

This operation is intended to be used solely as step during lowering,
it has no side effects. A reverse operation that creates a memref from
an index interpreted as a pointer is explicitly discouraged.

Differential Revision: https://reviews.llvm.org/D134651




More information about the All-commits mailing list