blob: 7b5f4f84b0e685476f7018fd777dae3a721cf050 [file] [log] [blame]
Chris Lattner4a24c642005-09-03 01:14:03 +00001//===- 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
20namespace llvm {
21
22/// InstrSelectorEmitter - The top-level class which coordinates construction
23/// and emission of the instruction selector.
24///
25class DAGISelEmitter : public TableGenBackend {
26 RecordKeeper &Records;
27 CodeGenTarget Target;
28
29public:
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