[cfe-dev] PPC asm register definitions

Chris Lattner clattner at apple.com
Mon Sep 14 16:48:01 PDT 2009


On Sep 14, 2009, at 3:01 PM, Richard Pennington wrote:

> Hi,
>
> I filed bug http://llvm.org/bugs/show_bug.cgi?id=4976 this morning.  
> Dale
> Johannesen mentioned that "3" is not a valid register name for the  
> LLVM
> PPC code generator, it wants "r3".
>
> Should I change Targets.cpp to use "r0"... instead?
>
> Also, the names GCCReg* don't seem right. Wouldn't LLVMRegNames* fit  
> better?

"3" is probably valid on ppc targets that don't use "r" prefixes on  
their registers.  Is that the case?  clang can convert asm constraints  
as needed to make the llvm backend happy.

-Chris



More information about the cfe-dev mailing list