<meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">Hi,<div>I am planning to extract every operation as function.</div>

<div><br></div><div>eg. z=x+y; ==> z=func(x,y,op);</div><div><br></div><div>I wish to write a custom definition of op. Which I would like to define in func. </div><div><br></div><div>It would be really helpful if someone could suggest passes already available in llvm to look for or point some references how should one proceed on it.</div>

<div><br></div><div>Is codeExtractor.cpp useful for this. I was also thinking of going like loop-extract way. any other suggestion would be extremely helpful </div></span>