summaryrefslogtreecommitdiff
path: root/utils/TableGen/IntrinsicEmitter.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-03-03 02:32:46 +0000
committerChris Lattner <sabre@nondot.org>2006-03-03 02:32:46 +0000
commit9e493cfcc32aee58e6750ce1efa52d5c3bc3f893 (patch)
tree041552b29e7c173fa470ea821de2601ef1d46167 /utils/TableGen/IntrinsicEmitter.h
parent86d064d44caf81e03b4233863747aebb3d0fba9a (diff)
downloadllvm-9e493cfcc32aee58e6750ce1efa52d5c3bc3f893.tar.gz
llvm-9e493cfcc32aee58e6750ce1efa52d5c3bc3f893.tar.bz2
llvm-9e493cfcc32aee58e6750ce1efa52d5c3bc3f893.tar.xz
initial implementation of intrinsic parsing
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26495 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/IntrinsicEmitter.h')
-rw-r--r--utils/TableGen/IntrinsicEmitter.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/utils/TableGen/IntrinsicEmitter.h b/utils/TableGen/IntrinsicEmitter.h
new file mode 100644
index 0000000000..debbe4bbcc
--- /dev/null
+++ b/utils/TableGen/IntrinsicEmitter.h
@@ -0,0 +1,38 @@
+//===- IntrinsicEmitter.h - Generate intrinsic information ------*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file was developed by Chris Lattner and is distributed under
+// the University of Illinois Open Source License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+//
+// This tablegen backend emits information about intrinsic functions.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef INTRINSIC_EMITTER_H
+#define INTRINSIC_EMITTER_H
+
+#include "CodeGenIntrinsics.h"
+#include "TableGenBackend.h"
+
+namespace llvm {
+ class IntrinsicEmitter : public TableGenBackend {
+ RecordKeeper &Records;
+
+ public:
+ IntrinsicEmitter(RecordKeeper &R) : Records(R) {}
+
+ void run(std::ostream &OS);
+
+ void EmitEnumInfo(const std::vector<CodeGenIntrinsic> &Ints,
+ std::ostream &OS);
+ };
+
+} // End llvm namespace
+
+#endif
+
+
+