Move instruction

Hi all,
Can anybody tell me how to generate a mov instruction in llvm. I found out there is a MemMove Inst but I dont think that is what I want.
I want to bypass a load instruction. So i need to generate a mov instruction which will help me remove the redundant load.

At the LLVM IL level, you generally don't generate move instructions;
they're at a lower level. What are you really trying to do?


Hi Eli,
I want to do redundant load elimination. A simple example for that would be

load (a1) , r1;

You don't need to copy r1. Just replace all uses of r2 with r1, and get rid of the definition of r2.