[all-commits] [llvm/llvm-project] 3ccaac: [mlir] Add MemRefTypeBuilder and refactor some Mem...

Tim Shen via All-commits all-commits at lists.llvm.org
Thu Jan 30 23:36:01 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 3ccaac3cdd8f1e5b19e2da04be2ebbfc1fb9aa32
      https://github.com/llvm/llvm-project/commit/3ccaac3cdd8f1e5b19e2da04be2ebbfc1fb9aa32
  Author: Tim Shen <timshen at google.com>
  Date:   2020-01-30 (Thu, 30 Jan 2020)

  Changed paths:
    M mlir/include/mlir/IR/StandardTypes.h
    M mlir/lib/Conversion/GPUToNVVM/LowerGpuOpsToNVVMOps.cpp
    M mlir/lib/Dialect/FxpMathOps/Transforms/UniformKernelUtils.h
    M mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
    M mlir/lib/Dialect/StandardOps/Ops.cpp
    M mlir/lib/IR/StandardTypes.cpp
    M mlir/lib/Transforms/PipelineDataTransfer.cpp
    M mlir/lib/Transforms/Utils/Utils.cpp

  Log Message:
  -----------
  [mlir] Add MemRefTypeBuilder and refactor some MemRefType::get().

The refactored MemRefType::get() calls all intend to clone from another
memref type, with some modifications. In fact, some calls dropped memory space
during the cloning. Migrate them to the cloning API so that nothing gets
dropped if they are not explicitly listed.

It's close to NFC but not quite, as it helps with propagating memory spaces in
some places.

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




More information about the All-commits mailing list