This is an archive of the discontinued LLVM Phabricator instance.

[NFC] Move CombinationGenerator from Exegesis to ADT
ClosedPublic

Authored by lebedev.ri on Nov 4 2021, 2:21 PM.

Diff Detail

Event Timeline

lebedev.ri created this revision.Nov 4 2021, 2:21 PM
lebedev.ri requested review of this revision.Nov 4 2021, 2:21 PM
courbet accepted this revision.Nov 5 2021, 1:55 AM
courbet added inline comments.
llvm/include/llvm/ADT/CombinationGenerator.h
16–17

I'm not sure this is very relevant here.

53

[nit] this does not have the semantics of operator++. Rename this to next() ?

62

I think this would be better as operator*.

This revision is now accepted and ready to land.Nov 5 2021, 1:55 AM
lebedev.ri updated this revision to Diff 385054.Nov 5 2021, 6:33 AM
lebedev.ri marked 2 inline comments as done.

@courbet thank you for taking a look!
Address nits.

llvm/include/llvm/ADT/CombinationGenerator.h
16–17

I think this is useful for understanding of the algorithm.

This revision was landed with ongoing or failed builds.Nov 5 2021, 6:54 AM
This revision was automatically updated to reflect the committed changes.