[LLVMdev] Named Register Implementation

Renato Golin renato.golin at linaro.org
Sat Mar 29 05:36:45 PDT 2014


On 29 March 2014 12:27, Joerg Sonnenberger <joerg at britannica.bec.de> wrote:
> declare void @llvm.write_register(i32 regno, i32 val)
> declare i32 @llvm.read_register(i32 regno)
>
> where regno is the DWARF name or a special reservation e.g. for IP or
> SP.

Do front-ends have that info with them? AFAICR, front-ends only emit
metadata related to variables and they let the lowering process to
deal with location. I want to add as little as possible to front-ends
on this.

If they do have, it should be trivial to translate between Dwarf
registers to TLI ones.

cheers,
--renato



More information about the llvm-dev mailing list