Use special register for variable in LLVM

I am writing an LLVM pass that modifies the LLVM bitcode. For one variable, I want it to use a register like R15 on x86. How can I tell LLVM to use this register when generating machine code? Could this be instructed at the bitcode level?

0


source to share


1 answer


You can use inline assembler to simulate this requirement. It is not possible to "bind" a specific variable for registration.



+3


source







All Articles