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

ether zhhb etherzhhb at gmail.com
Mon Oct 18 04:49:06 PDT 2010


hi,

On Mon, Oct 18, 2010 at 12:39 PM, leledumbo <leledumbo_cool at yahoo.co.id> wrote:
>
> Other than:
> %x = add i32 5,0 ; suppose I want to assign 5 to %x
you do not need to do this at the level of LLVM IR, or do you mind to
tell us the reason for this?

best regards
ether
>
> is there any other way? Something like x86's mov instruction
>
> --
> View this message in context: http://old.nabble.com/How-to-assign-a-constant-to-a-register--tp29987387p29987387.html
> Sent from the LLVM - Dev mailing list archive at Nabble.com.
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>




More information about the llvm-dev mailing list