[LLVMdev] mov or copy instruction

David Blaikie dblaikie at gmail.com
Thu Jun 7 14:08:28 PDT 2012


On Thu, Jun 7, 2012 at 1:48 PM,  <amruth.rd at knights.ucf.edu> wrote:
> Hello everyone,
>
> I didn't come across mov or copy in LLVM IR instruction set. So what is the
> best way to move/copy values between virtual registers?

LLVM IR is in SSA (Static Single Assignment) form. In such a form
there are no copies/moves - just new virtual registers/values. If you
want semantics like that you can alloca and then load/store from
memory (mem2reg can them shift that into SSA form).



More information about the llvm-dev mailing list