1
//===- CodeEmitterGen.h - Code Emitter Generator ----------------*- 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
//===----------------------------------------------------------------------===//
12
//===----------------------------------------------------------------------===//
14
#ifndef CODEMITTERGEN_H
15
#define CODEMITTERGEN_H
17
#include "TableGenBackend.h"
27
class CodeEmitterGen : public TableGenBackend {
28
RecordKeeper &Records;
30
CodeEmitterGen(RecordKeeper &R) : Records(R) {}
32
// run - Output the code emitter
33
void run(raw_ostream &o);
35
void emitMachineOpEmitter(raw_ostream &o, const std::string &Namespace);
36
void emitGetValueBit(raw_ostream &o, const std::string &Namespace);
37
void reverseBits(std::vector<Record*> &Insts);
38
int getVariableBit(const std::string &VarName, BitsInit *BI, int bit);
41
} // End llvm namespace