llvm-project
af068354 - [VPlan] Use parameter packs to avoid unary/binary/ternary matchers. NFC (#152272)

Commit
86 days ago
[VPlan] Use parameter packs to avoid unary/binary/ternary matchers. NFC (#152272) Instead of defining unary/binary/ternary/4ary overloads of each matcher, we can use parameter packs to support arbitrary numbers of operands. This allows us to remove the explicit N-ary definitions for each matcher. We need to rewrite Recipe_match's constructor to use a parameter pack too, otherwise we end up with ambiguous overloads.
Author
Parents
Loading