[LLVMdev] Named Register Implementation

Joerg Sonnenberger joerg at britannica.bec.de
Sat Mar 29 06:36:58 PDT 2014


On Sat, Mar 29, 2014 at 12:36:45PM +0000, Renato Golin wrote:
> 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.

I'm not sure if we have a generic mapping of textual name to DWARF name
right now, but that would be easy to provide. In terms of lowering, this
would be another mode like TLS already is?

Joerg



More information about the llvm-dev mailing list