[llvm] r177833 - PPC ZERO register needs a register number of 0.
Hal Finkel
hfinkel at anl.gov
Tue Mar 26 13:10:10 PDT 2013
----- Original Message -----
> From: "Jakob Stoklund Olesen" <stoklund at 2pi.dk>
> To: "Hal Finkel" <hfinkel at anl.gov>
> Cc: llvm-commits at cs.uiuc.edu
> Sent: Saturday, March 23, 2013 8:05:20 PM
> Subject: Re: [llvm] r177833 - PPC ZERO register needs a register number of 0.
>
>
>
>
> On Mar 23, 2013, at 3:06 PM, Hal Finkel < hfinkel at anl.gov > wrote:
>
>
> Author: hfinkel
> Date: Sat Mar 23 17:06:07 2013
> New Revision: 177833
>
> URL: http://llvm.org/viewvc/llvm-project?rev=177833&view=rev
> Log:
> PPC ZERO register needs a register number of 0.
>
> In order for the new ZERO register to be used with MC, etc. we need
> to specify
> its register number (0).
>
>
> This whole function could be generated by TableGen.
>
>
> All you have to do is set the HWEncoding field in your register
> definitions, and then call TRI->getEncodingValue(Reg).
>
>
> See ARMRegisterInfo.td for an example.
Thanks for pointing this out! Done in r178067.
-Hal
>
>
> /jakob
>
>
More information about the llvm-commits
mailing list