<div dir="ltr">Hi all,<div><br><div style>I'm a newbie to LLVM. I'm trying to extract number of instructions from a program source code </div><div style><br></div><div style>I'm able to extract instruction count by analysis pass but only can print it out using "opt load ". Can I use this obtained <i>instruction_count</i> and put it back in the source code. </div>
<div style>I couldn't find any examples that instrument source code as transformation passes modify bitcode files.</div></div><div style><br></div><div style>If this sounds absurd, is there any other way to extract code features and then insert it back in source code.</div>
<div style><br></div><div style>Thanks,</div><div style>Chris</div></div>