diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-02-17 00:31:50 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-02-17 00:31:50 +0000 |
| commit | a845f654fa1207835b8f5a999deaa8f8211c89a9 (patch) | |
| tree | 5d985235f885d873997ce22676a24629ed7fac6e /llvm/utils/TableGen/DAGISelMatcher.h | |
| parent | 9e89907ed5d895ed76978540200cdb32ce23c37a (diff) | |
| download | bcm5719-llvm-a845f654fa1207835b8f5a999deaa8f8211c89a9.tar.gz bcm5719-llvm-a845f654fa1207835b8f5a999deaa8f8211c89a9.zip | |
make the new isel generator plop out a CheckComplexPattern function
for evaluating complex patterns. Some cleanup has to happen before
this can be used though.
llvm-svn: 96419
Diffstat (limited to 'llvm/utils/TableGen/DAGISelMatcher.h')
| -rw-r--r-- | llvm/utils/TableGen/DAGISelMatcher.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/DAGISelMatcher.h b/llvm/utils/TableGen/DAGISelMatcher.h index 68737e2796b..b5dabafa524 100644 --- a/llvm/utils/TableGen/DAGISelMatcher.h +++ b/llvm/utils/TableGen/DAGISelMatcher.h @@ -317,6 +317,8 @@ public: CheckComplexPatMatcherNode(const ComplexPattern &pattern) : MatcherNodeWithChild(CheckComplexPat), Pattern(pattern) {} + const ComplexPattern &getPattern() const { return Pattern; } + static inline bool classof(const MatcherNode *N) { return N->getKind() == CheckComplexPat; } |

