Add support for naming the destination of a "set" in a pattern
[oota-llvm.git] / support / tools / TableGen / InstrSelectorEmitter.h
index a1b1b6e7816adffbdfc158b8a33c33a4e4487cf8..9588130b612880732c2d18c4feb302f2abeca0a5 100644 (file)
@@ -142,6 +142,7 @@ private:
   /// register result, specified with a (set) in the pattern.
   ///
   Record *Result;
+  std::string ResultName;     // The name of the result value...
 
   /// TheRecord - The actual TableGen record corresponding to this pattern.
   ///
@@ -185,6 +186,7 @@ public:
   TreePatternNode *getTree() const { return Tree; }
   
   Record *getResult() const { return Result; }
+  const std::string &getResultName() const { return ResultName; }
 
   /// getRecord - Return the actual TableGen record corresponding to this
   /// pattern.