[all-commits] [llvm/llvm-project] 9cbd13: [mlir][NFC] Add a new getStridesAndOffset function

qcolombet via All-commits all-commits at lists.llvm.org
Wed Dec 7 06:06:16 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9cbd136db4850e44e7c4e076d7c820829023c619
      https://github.com/llvm/llvm-project/commit/9cbd136db4850e44e7c4e076d7c820829023c619
  Author: Quentin Colombet <quentin.colombet at gmail.com>
  Date:   2022-12-07 (Wed, 07 Dec 2022)

  Changed paths:
    M mlir/include/mlir/IR/BuiltinTypes.h
    M mlir/lib/Conversion/LLVMCommon/MemRefBuilder.cpp
    M mlir/lib/Conversion/LLVMCommon/Pattern.cpp
    M mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp
    M mlir/lib/Dialect/MemRef/Transforms/ExpandStridedMetadata.cpp
    M mlir/lib/IR/BuiltinTypes.cpp

  Log Message:
  -----------
  [mlir][NFC] Add a new getStridesAndOffset function

The new function is a wrapper around the regular `getStridesAndOffset`
that offers a more compact way (as in writing less code) of getting the
relevant information.

This method is intended to be used only when it is known that the
LogicalResult of the regular `getStridesAndOffset` must be "succeeded".

This warpper will assert on that.

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




More information about the All-commits mailing list