[LLVMdev] Why make the register list a dag for RegisterClass in target descriptor file?

Thomson lilotom at gmail.com
Sun Jan 19 16:59:57 PST 2014

Thanks Tim. Is there any document about these operators? Such how does each
set represent a different RegClass?


On Sun, Jan 19, 2014 at 7:57 PM, Tim Northover <t.p.northover at gmail.com>wrote:

> On 19 January 2014 10:19, Thomson <lilotom at gmail.com> wrote:
> > The blow snippet in target.td shows the regList in RegisterClass is
> typed as
> > dag. Why not make it a simple list, such as list<Register>?
> I don't know about the original reason, but these days we have a few
> operators in use to make constructing those sets easier which would be
> much harder to do for lists. E.g. "(sequence "R%u", 0, 12)", "(sub
> GPR, PC)" from ARM.
> Cheers.
> Tim.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140120/055ff90c/attachment.html>

More information about the llvm-dev mailing list