[llvm] r177833 - PPC ZERO register needs a register number of 0.
Jakob Stoklund Olesen
stoklund at 2pi.dk
Sat Mar 23 18:05:20 PDT 2013
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.
/jakob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130323/cd04980f/attachment.html>
More information about the llvm-commits
mailing list