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?
source
to share