Add SchedRW as an Instruction field.
[oota-llvm.git] / include / llvm / TableGen / Record.h
index 3cf4f1f054658b87f5dd77b3353e3476474331c1..76ee69dd8dbd0e1312a706012b6637391a3b97ef 100644 (file)
@@ -1559,6 +1559,11 @@ public:
   ///
   Init *getValueInit(StringRef FieldName) const;
 
+  /// Return true if the named field is unset.
+  bool isValueUnset(StringRef FieldName) const {
+    return getValueInit(FieldName) == UnsetInit::get();
+  }
+
   /// getValueAsString - This method looks up the specified field and returns
   /// its value as a string, throwing an exception if the field does not exist
   /// or if the value is not a string.