[LLVMdev] How to assign a constant to a register?

Duncan Sands baldrick at free.fr
Wed Oct 20 02:59:32 PDT 2010


On 20/10/10 11:37, leledumbo wrote:
>
>> Why not just use ConstantInt::get() when you want the number 5?
>
> Because I'm not using LLVM libraries, I'm generating LLVM assembly myself.

In that case, why not output '5' when you want 5?

Ciao,

Duncan.



More information about the llvm-dev mailing list