1
//===- DAGISelEmitter.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 DAG instruction selector.
12
//===----------------------------------------------------------------------===//
14
#ifndef DAGISEL_EMITTER_H
15
#define DAGISEL_EMITTER_H
17
#include "TableGenBackend.h"
18
#include "CodeGenDAGPatterns.h"
23
/// DAGISelEmitter - The top-level class which coordinates construction
24
/// and emission of the instruction selector.
26
class DAGISelEmitter : public TableGenBackend {
27
RecordKeeper &Records;
28
CodeGenDAGPatterns CGP;
30
explicit DAGISelEmitter(RecordKeeper &R) : Records(R), CGP(R) {}
32
// run - Output the isel, returning true on failure.
33
void run(raw_ostream &OS);
35
void EmitPredicateFunctions(raw_ostream &OS);
38
} // End llvm namespace