<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hello everyone, </span><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Sorry to bother you. I'm an undergraduate, and I'm trying to finish my graduation project using LLVM. In this project, I hope to transform all loop in program to condition statement. For example,</div>
<div style="font-family:arial,sans-serif;font-size:13px">Before transformation: for (int i = 0; i < 5; i++) a++;</div><div style="font-family:arial,sans-serif;font-size:13px">After transformation: int i = 0; if (i < 5) a++; i++;</div>
<div style="font-family:arial,sans-serif;font-size:13px">The idea is very clear, however, I'm a newbie to LLVM. After read code of some LLVM's transformation, I still have no idea of how to implement this idea.</div>
<div style="font-family:arial,sans-serif;font-size:13px">Hope you can give me some hint. Thank you very much!</div></div>