[llvm-dev] Relation between Register and MCRegister

Mircea Trofin via llvm-dev llvm-dev at lists.llvm.org
Tue Sep 29 09:12:50 PDT 2020


On Tue, Sep 29, 2020 at 9:08 AM Quentin Colombet <qcolombet at apple.com>
wrote:

> Hi,
>
> Register can represent virtual or physical registers.
> MCRegister can only represent physical registers.
>

That's what I thought, but MCRegister has some stack slot APIs.


> Eventually all Register instances are replaced by a MCRegister.
>

What happens in that case to the stack slot APIs?


>
> Cheers,
> -Quentin
>
> > On Sep 28, 2020, at 5:46 PM, Mircea Trofin via llvm-dev <
> llvm-dev at lists.llvm.org> wrote:
> >
> > Hello,
> >
> > I'm trying to understand what the relation between these two types is:
> do we need them both? Register seems to be delegating to MCRegister without
> owning any new additional responsibilities.
> >
> > Thanks!
> > _______________________________________________
> > LLVM Developers mailing list
> > llvm-dev at lists.llvm.org
> > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200929/178518ce/attachment.html>


More information about the llvm-dev mailing list