summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/CodeGenTarget.h
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2005-12-08 02:14:08 +0000
committerEvan Cheng <evan.cheng@apple.com>2005-12-08 02:14:08 +0000
commitc9a620060b00e85071964678c37fd2deb48af161 (patch)
treedfc287c27015c0c89d915bf86fc338367603609a /llvm/utils/TableGen/CodeGenTarget.h
parentc9fab310987cd9d5271edc5d5bf59bd41f380c82 (diff)
downloadbcm5719-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.h8
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;
}
};
OpenPOWER on IntegriCloud