diff options
author | Evan Cheng <evan.cheng@apple.com> | 2005-12-08 02:14:08 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2005-12-08 02:14:08 +0000 |
commit | 3aa39f439a0971a2502b2c728a8006becaf96601 (patch) | |
tree | e6801bc85862c41d7505df78b05077ec97056802 /utils/TableGen/CodeGenTarget.h | |
parent | ec693f77c03f5511001bfcac8180de6b551f7b1d (diff) | |
download | external_llvm-3aa39f439a0971a2502b2c728a8006becaf96601.zip external_llvm-3aa39f439a0971a2502b2c728a8006becaf96601.tar.gz external_llvm-3aa39f439a0971a2502b2c728a8006becaf96601.tar.bz2 |
* Added an explicit type field to ComplexPattern.
* Renamed MatchingNodes to RootNodes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24636 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/CodeGenTarget.h')
-rw-r--r-- | utils/TableGen/CodeGenTarget.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/utils/TableGen/CodeGenTarget.h b/utils/TableGen/CodeGenTarget.h index 36b8759..c7958d5 100644 --- a/utils/TableGen/CodeGenTarget.h +++ b/utils/TableGen/CodeGenTarget.h @@ -160,17 +160,19 @@ public: /// ComplexPattern - ComplexPattern info, corresponding to the ComplexPattern /// tablegen class in TargetSelectionDAG.td class ComplexPattern { + MVT::ValueType Ty; unsigned NumOperands; std::string SelectFunc; - std::vector<Record*> MatchingNodes; + std::vector<Record*> RootNodes; public: ComplexPattern() : NumOperands(0) {}; ComplexPattern(Record *R); + MVT::ValueType getValueType() const { return Ty; } unsigned getNumOperands() const { return NumOperands; } const std::string &getSelectFunc() const { return SelectFunc; } - const std::vector<Record*> &getMatchingNodes() const { - return MatchingNodes; + const std::vector<Record*> &getRootNodes() const { + return RootNodes; } }; |