blob: df6a0e655cce5807e2e5670bb7176327e6ec955f [file] [log] [blame]
Dan Gohmanb0cf29c2008-08-13 20:19:35 +00001//===- FastISelEmitter.h - Generate an instruction selector -----*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This tablegen backend emits a "fast" instruction selector.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef FASTISEL_EMITTER_H
15#define FASTISEL_EMITTER_H
16
17#include "TableGenBackend.h"
18#include "CodeGenDAGPatterns.h"
Dan Gohmanb0cf29c2008-08-13 20:19:35 +000019
20namespace llvm {
21
22/// FastISelEmitter - The top-level class which coordinates construction
23/// and emission of the instruction selector.
24///
25class FastISelEmitter : public TableGenBackend {
26 RecordKeeper &Records;
27 CodeGenDAGPatterns CGP;
28public:
29 explicit FastISelEmitter(RecordKeeper &R) : Records(R), CGP(R) {}
30
31 // run - Output the isel, returning true on failure.
32 void run(std::ostream &OS);
33};
34
35} // End llvm namespace
36
37#endif