This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Improve FieldParser list container detection
ClosedPublic

Authored by rkayaith on Mar 28 2023, 6:55 PM.

Details

Summary

The current detection logic will fail for containers with an overloaded
push_back member. This causes issues with types like std::vector and
SmallVector<SomeNonTriviallyCopyableT>, which have both
push_back(const T&) and push_back(T&&).

Diff Detail

Event Timeline

rkayaith created this revision.Mar 28 2023, 6:55 PM
Herald added a project: Restricted Project. · View Herald Transcript
rkayaith updated this revision to Diff 509193.Mar 28 2023, 7:55 PM
rkayaith edited the summary of this revision. (Show Details)

add test

rkayaith published this revision for review.Mar 28 2023, 8:15 PM
rkayaith added a reviewer: Mogball.
rriddle accepted this revision.Apr 2 2023, 10:45 PM
This revision is now accepted and ready to land.Apr 2 2023, 10:45 PM
This revision was automatically updated to reflect the committed changes.