[cfe-commits] [llvm-commits] The AArch64 LLVM (& Clang) target

Jakob Stoklund Olesen stoklund at 2pi.dk
Thu Jan 24 09:21:05 PST 2013


On Jan 24, 2013, at 7:10 AM, Tim Northover <t.p.northover at gmail.com> wrote:

> Basically, GPR64RegClass is defined in libLLVMAArch64CodeGen. llvm-mc
> and llvm-objdump don't seem to care about this, but I could see a
> minimal disassembler getting a bit upset.
> 
> Does anyone know if how big an issue this is; and what the ideal
> solution would be?

It's important that the MC libraries don't depend on CodeGen which is huge.

> Put the MCRegisterClass bits into
> libLLVMAArch64Desc (by modifying TableGen)?

There are two kinds of register classes: TargetRegisterClass and MCRegisterClass. The named global variables are TargetRegisterClass instances, and they depend on CodeGen.

You want MCRegisterInfo::getRegClass().

/jakob




More information about the cfe-commits mailing list