diff options
author | Evan Cheng <evan.cheng@apple.com> | 2005-12-08 02:00:36 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2005-12-08 02:00:36 +0000 |
commit | 0fc71988900e600f3ef5b13d9682e2bbab92811d (patch) | |
tree | da55a15927c1eb9a0fb2e8007e0697a08a32e9f3 /utils/TableGen/CodeGenTarget.h | |
parent | cc827e60b67b2cbcf08a37b119e68081e4171b8a (diff) | |
download | llvm-0fc71988900e600f3ef5b13d9682e2bbab92811d.tar.gz llvm-0fc71988900e600f3ef5b13d9682e2bbab92811d.tar.bz2 llvm-0fc71988900e600f3ef5b13d9682e2bbab92811d.tar.xz |
Added support for ComplexPattern. These are patterns that require C++ pattern
matching code that is not currently auto-generated by tblgen, e.g. X86
addressing mode. Selection routines for complex patterns can return multiple operands, e.g. X86 addressing mode returns 4.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24634 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/CodeGenTarget.h')
-rw-r--r-- | utils/TableGen/CodeGenTarget.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/utils/TableGen/CodeGenTarget.h b/utils/TableGen/CodeGenTarget.h index f2c4da336c..36b8759932 100644 --- a/utils/TableGen/CodeGenTarget.h +++ b/utils/TableGen/CodeGenTarget.h @@ -157,6 +157,23 @@ public: bool isLittleEndianEncoding() const; }; +/// ComplexPattern - ComplexPattern info, corresponding to the ComplexPattern +/// tablegen class in TargetSelectionDAG.td +class ComplexPattern { + unsigned NumOperands; + std::string SelectFunc; + std::vector<Record*> MatchingNodes; +public: + ComplexPattern() : NumOperands(0) {}; + ComplexPattern(Record *R); + + unsigned getNumOperands() const { return NumOperands; } + const std::string &getSelectFunc() const { return SelectFunc; } + const std::vector<Record*> &getMatchingNodes() const { + return MatchingNodes; + } +}; + } // End llvm namespace #endif |