projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make the new isel generator plop out a CheckComplexPattern function
[oota-llvm.git]
/
utils
/
TableGen
/
DAGISelMatcher.h
diff --git
a/utils/TableGen/DAGISelMatcher.h
b/utils/TableGen/DAGISelMatcher.h
index 68737e2796b436323442c85401d97b42615f728d..b5dabafa5240dc9b0c9df1b0d43d0a7a66848953 100644
(file)
--- a/
utils/TableGen/DAGISelMatcher.h
+++ b/
utils/TableGen/DAGISelMatcher.h
@@
-317,6
+317,8
@@
public:
CheckComplexPatMatcherNode(const ComplexPattern &pattern)
: MatcherNodeWithChild(CheckComplexPat), Pattern(pattern) {}
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;
}
static inline bool classof(const MatcherNode *N) {
return N->getKind() == CheckComplexPat;
}