[LLVMdev] instructions requiring specific physical registers for operands

Anton Korobeynikov anton at korobeynikov.info
Wed May 9 04:27:46 PDT 2012


Hello Jonas,

> I wonder, what would be the best solution for instructions that require
> operands in a particular register, and even gives the result in a particular
> register?
You need to custom select such instruction. See e.g. div / idiv on x86
as an example.

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the llvm-dev mailing list