<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Dear Sachin,<br>
<br>
First, it's not clear to me what you mean by "LR." Do you mean
that you want to modify the LLVM Intermediate Representation (the
LLVM IR)?<br>
<br>
Assuming you're wanting to transform code with LLVM, then answer
is no. You can implement a pass that performs the
transformation/optimization you want and add it to the compiler.
If you need to modify the code generation portions of LLVM, you
can write a MachineFunctionPass that modifies the native code
generated by LLVM after LLVM has done instruction selection,
instruction scheduling, and register allocation but before
emitting the final assembly/object file.<br>
<br>
Regards,<br>
<br>
John Criswell<br>
<br>
On 9/12/14, 6:45 PM, sachin arora wrote:<br>
</div>
<blockquote
cite="mid:CAJXV4bm3Ge6M+qyuDrHZ-o5NyX9agEuDPdW=RsPuhD_-Dt5UpQ@mail.gmail.com"
type="cite">
<div dir="ltr">Hello all,
<div><br>
</div>
<div>I am new to llvm. I need to make some changes to the LR.
The backend should modify the LR, but only after all the
normal work and all the optimizations are done. </div>
<div>Just before outputting the native code, LR is modified. I
was wondering if I should implement the whole backend in order
to achieve this or is it possible to implement a new pass and
use that. Thanks !</div>
<div><br>
</div>
<div>Regards,</div>
<div>Sachin </div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a class="moz-txt-link-freetext" href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a>
</pre>
</blockquote>
<br>
</body>
</html>