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 | c9a620060b00e85071964678c37fd2deb48af161 (patch) | |
tree | dfc287c27015c0c89d915bf86fc338367603609a /llvm/utils/TableGen/CodeGenTarget.h | |
parent | c9fab310987cd9d5271edc5d5bf59bd41f380c82 (diff) | |
download | bcm5719-llvm-c9a620060b00e85071964678c37fd2deb48af161.tar.gz bcm5719-llvm-c9a620060b00e85071964678c37fd2deb48af161.zip |
* Added an explicit type field to ComplexPattern.
* Renamed MatchingNodes to RootNodes.
llvm-svn: 24636
Diffstat (limited to 'llvm/utils/TableGen/CodeGenTarget.h')
-rw-r--r-- | llvm/utils/TableGen/CodeGenTarget.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/llvm/utils/TableGen/CodeGenTarget.h b/llvm/utils/TableGen/CodeGenTarget.h index 36b87599322..c7958d5a476 100644 --- a/llvm/utils/TableGen/CodeGenTarget.h +++ b/llvm/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; } }; |