[PATCH] D73593: [mlir] [VectorOps] consolidate all vector utilities to one header/cc file
Aart Bik via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 29 15:47:34 PST 2020
aartbik marked 3 inline comments as done.
aartbik added inline comments.
================
Comment at: mlir/include/mlir/Dialect/VectorOps/VectorUtils.h:37
+/// de-linearized index.
+SmallVector<int64_t, 4> delinearize(ArrayRef<int64_t> sliceStrides,
+ int64_t linearIndex);
----------------
dcaballe wrote:
> aartbik wrote:
> > dcaballe wrote:
> > > All these utilities returning `SmallVector` should be turned into `void utility_name(..., SmallVectorImpl<element_type>& output_name)` so that they can accept SmallVectors of arbitrary static sizes.
> > Note that this is a refactoring of existing code, so I would prefer to do that as follow up. But just in case you insist, can you point me to at least one occurrence of this elsewhere in the tree?
> Agree, we can address this separately.
> There are a few examples here: https://github.com/llvm/llvm-project/blob/master/llvm/include/llvm/Analysis/LoopInfo.h#L256
Ah, I see what you mean. Thanks for pointing this out.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D73593/new/
https://reviews.llvm.org/D73593
More information about the llvm-commits
mailing list