Displaying 5 results from an estimated 5 matches for "getllvmregnum".
2014 Jan 17
2
[LLVMdev] Invalid RegNum error
I'm writing a compiler using LLVM, and suddenly today I started to get this
error, when emitting to a .s file.
Assertion failed: (I != M+Size && I->FromReg == RegNum && "Invalid
RegNum"), function getLLVMRegNum, file MCRegisterInfo.cpp, line 78.
I'm emitting using x86_64-apple-darwin. Any thoughts about what could be
causing this? LLVM validation does not report any errors.
Timothy
--
“One of the main causes of the fall of the Roman Empire was that–lacking
zero–they had no way to indicate successf...
2018 Nov 03
2
llvm bug 36466 fix
Hi
I come across the following exception when I use the llvm-dwarfdump
-debug-info target_binary:
llvm-dwarfdump: /home/linux/llvm-7/llvm/lib/MC/MCRegisterInfo.cpp:87: int
llvm::MCRegisterInfo::getLLVMRegNum(unsigned int, bool) const: Assertion `I
!= M+Size && I->FromReg == RegNum && "Invalid RegNum"' failed.
Stack dump:
0. Program arguments: /home/linux/llvm-7/llvm/build/bin/llvm-dwarfdump
-debug-info C++/483.xalancbmk.O1
#0 0x000000000093ab37 llvm::sys::PrintStac...
2018 Nov 03
2
llvm bug 36466 fix
...llvm-dev at lists.llvm.org> wrote:
>
>> Hi
>>
>> I come across the following exception when I use the llvm-dwarfdump
>> -debug-info target_binary:
>>
>> llvm-dwarfdump: /home/linux/llvm-7/llvm/lib/MC/MCRegisterInfo.cpp:87: int
>> llvm::MCRegisterInfo::getLLVMRegNum(unsigned int, bool) const: Assertion `I
>> != M+Size && I->FromReg == RegNum && "Invalid RegNum"' failed.
>> Stack dump:
>> 0. Program arguments:
>> /home/linux/llvm-7/llvm/build/bin/llvm-dwarfdump -debug-info
>> C++/483.xalancbmk....
2018 Nov 03
2
llvm bug 36466 fix
...gt; Hi
>>>>
>>>> I come across the following exception when I use the llvm-dwarfdump
>>>> -debug-info target_binary:
>>>>
>>>> llvm-dwarfdump: /home/linux/llvm-7/llvm/lib/MC/MCRegisterInfo.cpp:87:
>>>> int llvm::MCRegisterInfo::getLLVMRegNum(unsigned int, bool) const:
>>>> Assertion `I != M+Size && I->FromReg == RegNum && "Invalid RegNum"' failed.
>>>> Stack dump:
>>>> 0. Program arguments:
>>>> /home/linux/llvm-7/llvm/build/bin/llvm-dwarfdump -debug-...
2011 Jul 06
0
[LLVMdev] MCInstPrinter::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_ostream &OS, unsigned Reg...