[LLVMdev] Named Register Implementation

Renato Golin renato.golin at linaro.org
Fri Mar 28 09:01:21 PDT 2014


On 28 March 2014 15:25, Tom Stellard <tom at stellard.net> wrote:
> Couldn't you avoid using a string literal in the SDNode, by having the
> SelectionDAGBuilder look up the register id with the function you
> proposed above and then add that id as the operand to the intrinsic's
> SDNode?

That's a good idea, change the argument to an id on
SelectionDAGBuilder::visitIntrinsicCall() and use the TargetLowering
to retrieve the ids.

Thanks!
--renato



More information about the llvm-dev mailing list