[LLVMdev] [ia64] Assertion failed: (!OpInfo.AssignedRegs.Regs.empty() && "Couldn't allocate input reg!")
Chris Lattner
sabre at nondot.org
Tue May 20 15:45:04 PDT 2008
On Tue, 20 May 2008, Marcel Moolenaar wrote:
> On May 20, 2008, at 1:45 PM, Marcel Moolenaar wrote:
>> The following IR is causing the assert:
The issue here is that the IA64 backend doesn't have inline asm support
yet. This should be pretty easy to add. Take a look at the X86 version:
X86TargetLowering::getRegForInlineAsmConstraint
it just maps "r" onto the GPR register class, itanium should do something
similar.
> Is it me or is the comment not really applicable to this particular
> case?
Right. The issue is that the target didn't return info about what it is,
so the generic code is trying to guess :). The code at the end of the
X86/X86ISelLowering.cpp file should be a good place to start, or the ARM
backend or PPC which are somewhat simpler.
-Chris
--
http://nondot.org/sabre/
http://llvm.org/
More information about the llvm-dev
mailing list