Add a sanity-check to tablegen to catch the case where isSimpleLoad
[oota-llvm.git] / utils / TableGen / RegisterInfoEmitter.h
index 79e9309a4278d9368d42bdcd7d8f423ec9fb644f..b5493a9f4574f563911d3f285920d689710e7bc7 100644 (file)
@@ -1,5 +1,12 @@
 //===- RegisterInfoEmitter.h - Generate a Register File Desc. ---*- C++ -*-===//
 //
+//                     The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+//
 // This tablegen backend is responsible for emitting a description of a target
 // register file for a code generator.  It uses instances of the Register,
 // RegisterAliases, and RegisterClass classes to gather this information.
 #ifndef REGISTER_INFO_EMITTER_H
 #define REGISTER_INFO_EMITTER_H
 
-#include <iosfwd>
-class RecordKeeper;
+#include "TableGenBackend.h"
 
-class RegisterInfoEmitter {
+namespace llvm {
+
+class RegisterInfoEmitter : public TableGenBackend {
   RecordKeeper &Records;
 public:
   RegisterInfoEmitter(RecordKeeper &R) : Records(R) {}
-  
+
   // run - Output the register file description, returning true on failure.
   void run(std::ostream &o);
 
@@ -27,4 +35,6 @@ public:
   void runEnums(std::ostream &o);
 };
 
+} // End llvm namespace
+
 #endif