This is an archive of the discontinued LLVM Phabricator instance.

[ADT] Allow specifying the size of resulting `SmallVector` in `map_to_vector`
ClosedPublic

Authored by laszlokindrat on May 15 2023, 12:21 PM.

Details

Summary

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.

Diff Detail

Event Timeline

laszlokindrat created this revision.May 15 2023, 12:21 PM
Herald added a project: Restricted Project. · View Herald Transcript
laszlokindrat requested review of this revision.May 15 2023, 12:21 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald Transcript
Mogball accepted this revision.May 15 2023, 12:33 PM
This revision is now accepted and ready to land.May 15 2023, 12:33 PM
kuhar accepted this revision.May 15 2023, 1:02 PM

Making the formatter happy.