<div dir="ltr"><span class="Apple-style-span" style="border-collapse: collapse; font-size: 16px; "><div class="nH"><div class="nH hx " style="color: rgb(0, 0, 0); padding-top: 4px; padding-right: 8px; padding-bottom: 4px; padding-left: 8px; ">
<div class="nH"><div class="nH"><div class="h7  ie" style="padding-bottom: 10px; "><div class="l m" style="float: left; width: 100%; margin-top: inherit; border-left: inherit; background-image: url(https://mail.google.com/mail/images/2/cv/card-ex-lm.gif); background-repeat: repeat-y; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(255, 255, 255); background-position: 0% 0%; ">
<div class="l n" style="margin-left: 4px; padding: inherit; margin: inherit; background-image: url(https://mail.google.com/mail/images/2/cv/card-ex-rm.gif); background-repeat: repeat-y; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: initial; margin-right: inherit; border-right: inherit; padding: inherit; background-position: 100% 0%; ">
<div class="k" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: -10px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; position: relative; background-color: transparent; ">
<div class="diLZtc"><div class="nH"><div id=":1gt"><div class="HprMsc"><div class="gs"><div id=":1gu" class="ii gt" style="font-size: 80%; margin-top: 5px; margin-right: 15px; margin-bottom: 5px; margin-left: 15px; padding-bottom: 20px; ">
<div dir="ltr"><span class="Apple-style-span" style="color: rgb(2, 19, 36); font-size: 16px; font-weight: bold;"><br></span>Hi,<div><br></div><div>I am a student (software engineering), and i am using the LLVM in my project (I am sorry of the lack of details, but i want to take the minimum of your time, if you want more details don't hesitate...).</div>
<div><br></div><div>I need to add a new optimization to the LLVM compiler. </div><div>The optimization ALREADY written for x86 IR (i mean that the code that handles the optimization is designated to work on assembly 86) . </div>
<div>So, this is what i think - </div><div>I will add a Basic Block Pass to the LLVM, the code of the pass will iterate etch instruction and convert it to x86 IR, now the optimization will take place, after the optimization i will convert the x86 IR code back into LLVM IR. </div>
<div><br></div><div>To the question(s):<br></div><div>Do you think my idea is a good one (if yes, do you see any problems implementing this)?</div><div>Do you have another idea?</div><div>Is the LLVM have such built in capability ( converting LLVM IR to other IRs ) ?</div>
<div><br></div><div>Grateful for you time.</div><div>Thank you.</div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></span></div>