Displaying 1 result from an estimated 1 matches for "llvmregist".
Did you mean:
llvmregion
2011 Jul 06
0
[LLVMdev] MCInstPrinter::printRegName
...nter->printRegName? I just want to have it output the same register
number as before (the same output the false path would produce).
void MCAsmStreamer::EmitRegisterName(int64_t Register) {
if (InstPrinter) {
const TargetAsmInfo &asmInfo = getContext().getTargetAsmInfo();
unsigned LLVMRegister = asmInfo.getLLVMRegNum(Register, true);
InstPrinter->printRegName(OS, LLVMRegister);
} else {
OS << Register;
}
}
My current implementation of printRegName which I copied from other backends
(X86, ARM and PowerPC) looks like this:
void MipsInstPrinter::printRegName(raw_ost...