Add an option and stuff implementation of a dag isel emitter
[oota-llvm.git] / utils / TableGen / DAGISelEmitter.h
1 //===- DAGISelEmitter.h - Generate an instruction selector ------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file was developed by Chris Lattner and is distributed under
6 // the University of Illinois Open Source License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This tablegen backend emits a DAG instruction selector.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #ifndef DAGISEL_EMITTER_H
15 #define DAGISEL_EMITTER_H
16
17 #include "TableGenBackend.h"
18 #include "CodeGenTarget.h"
19
20 namespace llvm {
21
22 /// InstrSelectorEmitter - The top-level class which coordinates construction
23 /// and emission of the instruction selector.
24 ///
25 class DAGISelEmitter : public TableGenBackend {
26   RecordKeeper &Records;
27   CodeGenTarget Target;
28
29 public:
30   DAGISelEmitter(RecordKeeper &R) : Records(R) {}
31
32   // run - Output the isel, returning true on failure.
33   void run(std::ostream &OS) {}
34 };
35
36 } // End llvm namespace
37
38 #endif