1 //===- FastISelEmitter.h - Generate an instruction selector -----*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This tablegen backend emits a "fast" instruction selector.
12 //===----------------------------------------------------------------------===//
14 #ifndef FASTISEL_EMITTER_H
15 #define FASTISEL_EMITTER_H
17 #include "TableGenBackend.h"
18 #include "CodeGenDAGPatterns.h"
24 /// FastISelEmitter - The top-level class which coordinates construction
25 /// and emission of the instruction selector.
27 class FastISelEmitter : public TableGenBackend {
28 RecordKeeper &Records;
29 CodeGenDAGPatterns CGP;
30 const CodeGenTarget &Target;
31 const std::string InstNS;
33 explicit FastISelEmitter(RecordKeeper &R);
35 // run - Output the isel, returning true on failure.
36 void run(std::ostream &OS);
39 } // End llvm namespace