This is an archive of the discontinued LLVM Phabricator instance.

[fir][NFC] Remove explicit num of inlined element for SmallVectors
ClosedPublic

Authored by clementval on Oct 1 2021, 2:12 AM.

Details

Summary

Remove explicit number of inlined elements for SmallVector.

This patch is part of the upstreaming effort from fir-dev branch.

Co-authored-by: Jean Perier <jperier@nvidia.com>
Co-authored-by: Eric Schweitz <eschweitz@nvidia.com>

Diff Detail

Event Timeline

clementval created this revision.Oct 1 2021, 2:12 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 1 2021, 2:12 AM
clementval requested review of this revision.Oct 1 2021, 2:12 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 1 2021, 2:12 AM
awarzynski accepted this revision.Oct 1 2021, 2:30 AM
awarzynski added a subscriber: awarzynski.

This makes the code follow LLVM's coding guidelines for SmallVector:

In the absence of a well-motivated choice for the number of inlined elements N, it is recommended to use SmallVector<T> (that is, omitting the N).

LGTM

This revision is now accepted and ready to land.Oct 1 2021, 2:30 AM

This makes the code follow LLVM's coding guidelines for SmallVector:

In the absence of a well-motivated choice for the number of inlined elements N, it is recommended to use SmallVector<T> (that is, omitting the N).

LGTM

Thanks for the quick review.