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"; }
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"; }
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"; }