summaryrefslogtreecommitdiff
path: root/utils/TableGen/InstrInfoEmitter.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-08-03 17:24:10 +0000
committerChris Lattner <sabre@nondot.org>2003-08-03 17:24:10 +0000
commit33ccf7edff6d784c7f6ea85ada2b67062272073e (patch)
treea628407daf282bfc103b34972bc1c8c488fe6a22 /utils/TableGen/InstrInfoEmitter.h
parentd17eabe1d3ba67a4749e2e0e22d3ed38f704b008 (diff)
downloadllvm-33ccf7edff6d784c7f6ea85ada2b67062272073e.tar.gz
llvm-33ccf7edff6d784c7f6ea85ada2b67062272073e.tar.bz2
llvm-33ccf7edff6d784c7f6ea85ada2b67062272073e.tar.xz
Initial checkin of Instruction emitter, which just produces enum values so far
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7515 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/InstrInfoEmitter.h')
-rw-r--r--utils/TableGen/InstrInfoEmitter.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/utils/TableGen/InstrInfoEmitter.h b/utils/TableGen/InstrInfoEmitter.h
new file mode 100644
index 0000000000..bf7e6758a5
--- /dev/null
+++ b/utils/TableGen/InstrInfoEmitter.h
@@ -0,0 +1,26 @@
+//===- InstrInfoEmitter.h - Generate a Instruction Set Desc. ----*- C++ -*-===//
+//
+// This tablegen backend is responsible for emitting a description of the target
+// instruction set for the code generator.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef INSTRINFO_EMITTER_H
+#define INSTRINFO_EMITTER_H
+
+#include <iosfwd>
+class RecordKeeper;
+
+class InstrInfoEmitter {
+ RecordKeeper &Records;
+public:
+ InstrInfoEmitter(RecordKeeper &R) : Records(R) {}
+
+ // run - Output the instruction set description, returning true on failure.
+ void run(std::ostream &o);
+
+ // runEnums - Print out enum values for all of the instructions.
+ void runEnums(std::ostream &o);
+};
+
+#endif