[LLVMdev] (MC) <target>RegisterInfo.td: alternate register names

Carter, Jack jcarter at mips.com
Fri Feb 10 17:50:41 PST 2012


Folks, Please confirm or correct the following assertions:

In Target.td one of the data member fields for class Register is list<string> AltNames.

If this is for alternate names for a given register (in Mips $28 and $gp are the same) it would be quite useful for the llvm-mc assembler which has to handle cases where there are multiple names for the same register.

A quick recursive grep shows that no target is currently using this. It is also not use when generating <target>GenAsmMatcher.inc.

If this is the case, I will try and incorporate AltNames so the strings get correctly matched in the AsmMatcher.

Cheers,

Jack
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120211/0b223af9/attachment.html>


More information about the llvm-dev mailing list