[LLVMdev] Named Register Implementation

Joerg Sonnenberger joerg at britannica.bec.de
Sat Mar 29 03:37:46 PDT 2014


On Fri, Mar 28, 2014 at 03:00:41PM +0000, Renato Golin wrote:
> So, I think we kind of agree that some named registers could be
> implemented, and that it should be an intrinsic that passes the name
> of the register down.

I'd like to separate this into two different functionalities:

(1) Reserve registers, so that normal allocation won't use them.
This can be done on a global or function level.

(2) Provide intrinsincs to read/write a given register.

The former is also required to implement -ffixed-XXX, the second would
be used to used to implement named registers in combination with (1).

Joerg



More information about the llvm-dev mailing list