diff options
author | Chris Lattner <sabre@nondot.org> | 2010-03-04 00:28:05 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-03-04 00:28:05 +0000 |
commit | d1aca7c8b4ea45fbee18fc18a21ed963175dd7bc (patch) | |
tree | 56cdeda7005a3d74e3f85c7d9bfa66bb9dbcfe13 /utils/TableGen/DAGISelMatcher.h | |
parent | 6900a39d28132d86529724ba4dc8302edf1a9b53 (diff) | |
download | external_llvm-d1aca7c8b4ea45fbee18fc18a21ed963175dd7bc.zip external_llvm-d1aca7c8b4ea45fbee18fc18a21ed963175dd7bc.tar.gz external_llvm-d1aca7c8b4ea45fbee18fc18a21ed963175dd7bc.tar.bz2 |
enhance comment output to specify what recorded slot
numbers a ComplexPat will match into.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97696 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/DAGISelMatcher.h')
-rw-r--r-- | utils/TableGen/DAGISelMatcher.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/utils/TableGen/DAGISelMatcher.h b/utils/TableGen/DAGISelMatcher.h index c2e8171..8498d60 100644 --- a/utils/TableGen/DAGISelMatcher.h +++ b/utils/TableGen/DAGISelMatcher.h @@ -609,11 +609,15 @@ private: /// the current node. class CheckComplexPatMatcher : public Matcher { const ComplexPattern &Pattern; + /// FirstResult - This is the first slot in the RecordedNodes list that the + /// result of the match populates. + unsigned FirstResult; public: - CheckComplexPatMatcher(const ComplexPattern &pattern) - : Matcher(CheckComplexPat), Pattern(pattern) {} + CheckComplexPatMatcher(const ComplexPattern &pattern, unsigned firstresult) + : Matcher(CheckComplexPat), Pattern(pattern), FirstResult(firstresult) {} const ComplexPattern &getPattern() const { return Pattern; } + unsigned getFirstResult() const { return FirstResult; } static inline bool classof(const Matcher *N) { return N->getKind() == CheckComplexPat; |