[PATCH] D73296: [mlir] Add MemRefTypeBuilder and refactor some MemRefType::get().

Tim Shen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 23 14:20:30 PST 2020


timshen created this revision.
timshen added a reviewer: nicolasvasilache.
Herald added subscribers: llvm-commits, liufengdb, herhut, lucyrfox, mgester, arpith-jacob, csigg, antiagainst, shauheen, burmako, jpienaar, rriddle, mehdi_amini, sanjoy.google, bixia, jholewinski.
Herald added a project: LLVM.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D73296

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73296.240010.patch
Type: text/x-patch
Size: 11361 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200123/06fbc1fb/attachment.bin>


More information about the llvm-commits mailing list