summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/MetadataLoader.cpp
diff options
context:
space:
mode:
authorTim Shen <timshen@google.com>2020-03-10 15:32:53 -0700
committerTim Shen <timshen@google.com>2020-03-11 16:22:31 -0700
commitd00f5632f39e101b1679ef887b03c566c4400d19 (patch)
tree8839993358319ff849a4e7f4862ded62970c9063 /llvm/lib/Bitcode/Reader/MetadataLoader.cpp
parentd4757a6cf104ae57c27b915fb6dd424a1992c146 (diff)
[mlir] Add a simplifying wrapper for generateCopy and expose it.
Summary: affineDataCopyGenerate is a monolithinc function that combines several steps for good reasons, but it makes customizing the behaivor even harder. The major two steps by affineDataCopyGenerate are: a) Identify interesting memrefs and collect their uses. b) Create new buffers to forward these uses. Step (a) actually has requires tremendous customization options. One could see that from the recently added filterMemRef parameter. This patch adds a function that only does (b), in the hope that (a) can be directly implemented by the callers. In fact, (a) is quite simple if the caller has only one buffer to consider, or even one use. Differential Revision: https://reviews.llvm.org/D75965
Diffstat (limited to 'llvm/lib/Bitcode/Reader/MetadataLoader.cpp')
0 files changed, 0 insertions, 0 deletions