[LLVMdev] mov instruction in LLVM IR

Bill Wendling isanbard at gmail.com
Thu May 28 16:53:59 PDT 2009


On Thu, May 28, 2009 at 4:23 PM, Vinod Grover <vgrover528 at gmail.com> wrote:
> The input language is at assembly level, and the location akin to a %temp (
> a virtual register if you will) and contains moves from one virtual to
> another. Though these are not like memory but I could represent them as
> local variables and do loads and stores; so I dont know how to represent it
> in C except as local variables.
>
If you want to move from one vreg to another, you can always perform a
"bitcast" on the RHS and assign to the LHS (bitcasting to the same
type, of course). Though first you should ask yourself why you want to
do that and not simply just use the RHS.

-bw



More information about the llvm-dev mailing list