[llvm-dev] Relation between Register and MCRegister

Quentin Colombet via llvm-dev llvm-dev at lists.llvm.org
Tue Sep 29 09:08:32 PDT 2020


Hi,

Register can represent virtual or physical registers.
MCRegister can only represent physical registers.

Eventually all Register instances are replaced by a MCRegister. 

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



More information about the llvm-dev mailing list