swift
9c58e4b0 - [patternmatch] Add InstructionOperand_match to support for matching against instructions with misc number of operands.

Commit
6 years ago
[patternmatch] Add InstructionOperand_match to support for matching against instructions with misc number of operands. NOTE: 1. To test this I changed UnaryOp_match to use this under the hood. 2. These types of m_##ID##Inst matchers now will only accept compound types and I added a static assert to verify that this mistake doesn't happen. We previously had matchers that would take an int or the like to match tuple extract patterns. I converted those to use TupleExtractOperation that also properly handles destructures.
Author
Committer
Parents
Loading