We are working on a new front-end for LLVM IR for a low level language; The input has mov from one scalar to another and we would like to represent these in LLVM IR. being new to LLVM I am not sure if there is a way to represent this since I couldnt find a mov instr. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090528/a4da8803/attachment.html>
On May 28, 2009, at 3:46 PM, Vinod Grover wrote:> We are working on a new front-end for LLVM IR for a low level > language; The input has mov from one scalar to another and we would > like to represent these in LLVM IR. being new to LLVM I am not sure > if there is a way to represent this since I couldnt find a mov instr.Do you know how to do the action you seek in C? If yes, just compile with clang or llvm-gcc at -O4 and then read the output directly for the operations to use.
On Thu, May 28, 2009 at 3:46 PM, Vinod Grover<vgrover528 at gmail.com> wrote:> We are working on a new front-end for LLVM IR for a low level language; The > input has mov from one scalar to another and we would like to represent > these in LLVM IR. being new to LLVM I am not sure if there is a way to > represent this since I couldnt find a mov instr.LLVM IR doesn't require copy instructions: because LLVM IR is in SSA form, a copy would always be identical to the original value. See also http://llvm.org/docs/tutorial/LangImpl7.html#memory . -Eli
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. On Thu, May 28, 2009 at 4:06 PM, Mike Stump <mrs at apple.com> wrote:> On May 28, 2009, at 3:46 PM, Vinod Grover wrote: > > We are working on a new front-end for LLVM IR for a low level > > language; The input has mov from one scalar to another and we would > > like to represent these in LLVM IR. being new to LLVM I am not sure > > if there is a way to represent this since I couldnt find a mov instr. > > Do you know how to do the action you seek in C? If yes, just compile > with clang or llvm-gcc at -O4 and then read the output directly for > the operations to use. > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090528/29259a12/attachment.html>