enhance the new isel to use SelectNodeTo for most patterns,
[oota-llvm.git] / utils / TableGen / CodeGenDAGPatterns.h
index c246483acffc001b9bf178a33c174358303bfa76..60898bc04ce58cbeb6baff18024306fcabbf303e 100644 (file)
@@ -125,6 +125,11 @@ public:
     return TypeConstraints;
   }
   
+  /// getKnownType - If the type constraints on this node imply a fixed type
+  /// (e.g. all stores return void, etc), then return it as an
+  /// MVT::SimpleValueType.  Otherwise, return EEVT::isUnknown.
+  unsigned getKnownType() const;
+  
   /// hasProperty - Return true if this node has the specified property.
   ///
   bool hasProperty(enum SDNP Prop) const { return Properties & (1 << Prop); }