[llvm-commits] [patch] Drop DwarfRegNum from the D registers

Rafael Ávila de Espíndola rafael.espindola at gmail.com
Tue May 31 19:42:44 PDT 2011


On 11-05-31 9:05 PM, Akira Hatanaka wrote:
> Could you tell me what I need to add/change in
> MipsFrameLowering::emitPrologue in order to emit the correct cfi_offset
> directives when double precision callee-saved registers are saved?
> Currently, the following directive gets emitted when double register
> $f20 is saved,
> .cfi_offset -1, -8
>
> instead of something like this:
> .cfi_offset 53, -4
> .cfi_offset 52, -8
>
> Should I just push back two MachineMoves (one for each of the paired
> single precision registers)?

I think so. The two options I can think of are creating two MachineMoves 
or expanding one into two cfi directives. We should probably move to 
model were the cfi instructions have a more direct representation in the 
machine instructions, so creating two MachineMoves is probably the right 
thing to do.

> Thank you.

Thanks,
Rafael



More information about the llvm-commits mailing list