X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=utils%2FTableGen%2FCodeEmitterGen.h;h=cb272bd56d25e009166adc2e59be1dfa3292b7ba;hb=0d52ff1f7b993750a74a5d4432273092de9af069;hp=19ca5452f5516e64f2d71eca1544f25651df747c;hpb=d0fde30ce850b78371fd1386338350591f9ff494;p=oota-llvm.git diff --git a/utils/TableGen/CodeEmitterGen.h b/utils/TableGen/CodeEmitterGen.h index 19ca5452f55..cb272bd56d2 100644 --- a/utils/TableGen/CodeEmitterGen.h +++ b/utils/TableGen/CodeEmitterGen.h @@ -1,10 +1,10 @@ //===- CodeEmitterGen.h - Code Emitter Generator ----------------*- C++ -*-===// -// +// // The LLVM Compiler Infrastructure // -// This file was developed by the LLVM research group and is distributed under -// the University of Illinois Open Source License. See LICENSE.TXT for details. -// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// //===----------------------------------------------------------------------===// // // FIXME: document @@ -15,19 +15,27 @@ #define CODEMITTERGEN_H #include "TableGenBackend.h" +#include +#include +#include namespace llvm { +class RecordVal; +class BitsInit; + class CodeEmitterGen : public TableGenBackend { RecordKeeper &Records; public: CodeEmitterGen(RecordKeeper &R) : Records(R) {} - + // run - Output the code emitter void run(std::ostream &o); private: void emitMachineOpEmitter(std::ostream &o, const std::string &Namespace); void emitGetValueBit(std::ostream &o, const std::string &Namespace); + void reverseBits(std::vector &Insts); + int getVariableBit(const std::string &VarName, BitsInit *BI, int bit); }; } // End llvm namespace