[PATCH] D150601: [ADT] Allow specifying the size of resulting `SmallVector` in `map_to_vector`
Laszlo Kindrat via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 15 12:22:01 PDT 2023
laszlokindrat created this revision.
laszlokindrat added reviewers: bzcheeseman, Mogball, rriddle, kuhar.
Herald added subscribers: bviyer, Moerafaat, zero9178, sdasgup3, wenzhicui, wrengr, cota, teijeong, rdzhabarov, tatianashp, msifontes, jurahul, Kayjukh, grosul1, Joonsoo, liufengdb, aartbik, mgester, arpith-jacob, antiagainst, shauheen, mehdi_amini.
Herald added a reviewer: aartbik.
Herald added a project: All.
laszlokindrat requested review of this revision.
Herald added subscribers: llvm-commits, stephenneuendorffer, nicolasvasilache.
Herald added a reviewer: dcaballe.
Herald added projects: MLIR, LLVM.
This patch adds an overload for the `map_to_vector` helper template, exposing a parameter to control the size of the resulting `SmallVector`. A few call sites in mlir are updated to illustrate and test the change.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D150601
Files:
llvm/include/llvm/ADT/SmallVectorExtras.h
mlir/include/mlir/IR/AffineMap.h
mlir/lib/IR/Builders.cpp
mlir/lib/IR/TypeUtilities.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150601.522294.patch
Type: text/x-patch
Size: 7927 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230515/34d3641c/attachment.bin>
More information about the llvm-commits
mailing list