Hi,<br><br>  A way to handle moves is to have an array mapping virtual regs to the llvm instructions<br>which compute them. Then a<br>dr <- sr<br>move can be handled by doing<br>reg_to_inst [dr] = reg_to_inst [sr].<br><br>
And whenever sr is used as an input to an operation, use reg_to_inst [sr] instead.<br><br>                       Zoltan<br><br><div class="gmail_quote">On Fri, May 29, 2009 at 1:23 AM, Vinod Grover <span dir="ltr"><<a href="mailto:vgrover528@gmail.com">vgrover528@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">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.<div>

<br><div><br><div class="gmail_quote">On Thu, May 28, 2009 at 4:06 PM, Mike Stump <span dir="ltr"><<a href="mailto:mrs@apple.com" target="_blank">mrs@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div><div></div><div>On May 28, 2009, at 3:46 PM, Vinod Grover wrote:<br>
> We are working on a new front-end for LLVM IR for a low level<br>
> language; The input has mov from one scalar to another and we would<br>
> like to represent these in LLVM IR. being new to LLVM I am not sure<br>
> if there is a way to represent this since I couldnt find a mov instr.<br>
<br>
</div></div>Do you know how to do the action you seek in C?  If yes, just compile<br>
with clang or llvm-gcc at -O4 and then read the output directly for<br>
the operations to use.<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</blockquote></div><br></div></div>
<br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br>