Fix variable in register in LLVM IR

I am writing LLVM pass. For a specific variable, I want to use a register (machine specific register). Can I specify this in LLVM IR so that the LLVM backend uses this register for the variable and does not use this register for other purposes.

+3


source to share


1 answer


It's impossible now.



+1


source







All Articles