[LLVMdev] apparent mistake in several ports register td file ???
reed kotler
rkotler at mips.com
Thu Mar 29 13:06:24 PDT 2012
On 03/29/2012 08:54 AM, Jakob Stoklund Olesen wrote:
>
> On Mar 21, 2012, at 2:58 PM, reed kotler wrote:
>
>> The field Num seems to have no meaning. It is not recognized by the
>> backend tools. It does not hurt anything but should not be there.
>>
>> class ARMReg<bits<4> num, string n, list<Register> subregs = []> :
>> Register<n> {
>> field bits<4> Num;
>> let Namespace = "ARM";
>> let SubRegs = subregs;
>> // All bits of ARM registers with sub-registers are covered by
>> sub-registers.
>> let CoveredBySubRegs = 1;
>> }
>
> You are right, the field is not used currently. Instead, we have large
> switch statements like getARMRegisterNumbering().
>
> Actually, I think it might be useful to have TableGen handle the
> register encoding numbering, just like it does for DWARF register numbers.
>
> /jakob
>
Yes, I was thinking to file a bug against tablegen for this.
But then the definition should be in target.td for Num and others should
just have a "let".
Reed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120329/d190cd48/attachment.html>
More information about the llvm-dev
mailing list