[LLVMdev] [RFC, ARM] expanding RET to CopyToReg;BRIND

Rafael EspĂ­ndola rafael.espindola at gmail.com
Tue May 30 04:26:39 PDT 2006

I have changed the way in which the ARM backend generates a function
return. Instead of expanding a RET to a CopyToReg;RETFLAG, it now
expands into a CopyToReg;BRIND. I haven't commit it yet, but the patch
is attached.

In my opinion the resulting code is easier to understand, but I have
some questions:

Why all backends use RETFLAG?

Why it is named RETFLAG?

Why the Copy that places the result must have a Flag operand? If I
understand correctly, the Flag operand exists in nodes that use a flag
register (cpsr in ARM).

-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm.patch
Type: application/octet-stream
Size: 2418 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20060530/bc2931b9/attachment.obj>

More information about the llvm-dev mailing list