Displaying 2 results from an estimated 2 matches for "getregistersforvalu".
Did you mean:
getregistersforvalue
2008 May 20
2
[LLVMdev] [ia64] Assertion failed: (!OpInfo.AssignedRegs.Regs.empty() && "Couldn't allocate input reg!")
..."
constraint
(i.e. TargetLowering::C_RegisterClass) isn't handled and the function
returns
<pair>(0, NULL). However, it is explicitly called for that constraint by
llvm::SelectionDAGLowering::visitInlineAsm():
if (OpInfo.ConstraintType == TargetLowering::C_RegisterClass)
GetRegistersForValue(OpInfo, SawEarlyClobber, OutputRegs,
InputRegs);
Assuming the correct fix is to enhance
llvm::TargetLowering::getRegForInlineAsmConstraint(), can someone give
me
some pointers as to how to fix it? I have no experience with the code
and
like to get my hands dirty...
Thanks,
BTW: Is there a...
2008 May 20
0
[LLVMdev] [ia64] Assertion failed: (!OpInfo.AssignedRegs.Regs.empty() && "Couldn't allocate input reg!")
...ectionDAGLowering::visitInlineAsm():
It's llvm::TargetLowering::getRegClassForInlineAsmConstraint() that
returns an empty vector and thus is the root case of the assert.
It seems that llvm::TargetLowering::getRegForInlineAsmConstraint()
is supposed to work on a single (physical) register.
In GetRegistersForValue() is the following:
3817 // This is a reference to a register class that doesn't
directly correspond
3818 // to an LLVM register class. Allocate NumRegs consecutive,
available,
3819 // registers from the class.
3820 RegClassRegs =
TLI.getRegClassForInlineAsmConstraint(O...