void EDEmitter::run(raw_ostream &o) {
    unsigned int i = 0;

    CompoundConstantEmitter infoArray;
    CodeGenTarget target;

    populateInstInfo(infoArray, target);

    o << "InstInfo instInfo" << target.getName().c_str() << "[] = ";
    infoArray.emit(o, i);
    o << ";" << "\n";
}
示例#2
0
void EmitEnhancedDisassemblerInfo(RecordKeeper &RK, raw_ostream &OS) {
  emitSourceFileHeader("Enhanced Disassembler Info", OS);
  unsigned int i = 0;

  CompoundConstantEmitter infoArray;
  CodeGenTarget target(RK);

  populateInstInfo(infoArray, target);

  emitCommonEnums(OS, i);

  OS << "static const llvm::EDInstInfo instInfo"
     << target.getName() << "[] = ";
  infoArray.emit(OS, i);
  OS << ";" << "\n";
}
示例#3
0
文件: EDEmitter.cpp 项目: nobled/llvm
void EDEmitter::run(raw_ostream &o) {
  unsigned int i = 0;

  CompoundConstantEmitter infoArray;
  CodeGenTarget target(Records);

  populateInstInfo(infoArray, target);

  emitCommonEnums(o, i);

  o << "namespace {\n";

  o << "llvm::EDInstInfo instInfo" << target.getName().c_str() << "[] = ";
  infoArray.emit(o, i);
  o << ";" << "\n";

  o << "}\n";
}