summaryrefslogtreecommitdiff
path: root/test/example/match.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [Matcher] Add bval for matching boolean literals (#4162)Max Graey2021-09-201-1/+13
|
* Add new unary and binary matchers (#3168)Thomas Lively2020-09-241-11/+62
| | | | | Adds new matchers that allow for matching any unary or binary operation and optionally extracting it. The previous matchers only allowed matching specific unary and binary operations. This should help simplify #3132.
* Expression matching API (#3134)Thomas Lively2020-09-181-0/+448
Provides an easily extensible layered API for matching expression patterns and extracting their components. The low-level API provides modular building blocks for creating matchers for any data type and the high-level API provides a succinct and flexible interface for matching expressions and extracting useful information from them. Matchers are currently provided for Const, Unary, Binary, and Select instructions. Adding a matcher for a new type of expression is straightforward enough that I expect to add them as they become useful as part of other changes.