<div dir="ltr">I read the tutorial document, but I didn't understand the it and Ops fields of instruction class well. Can any one give me an example?<div><br></div><div>Instruction *newInstr = new Instruction(Type *ty, unsigned it, Use *Ops, unsigned NumOps, Instruction *InsertBefore);<br></div><div><br></div><div>For example, I have an <b>instruction *pInst </b>without no the type of operation in advance. If I want to create a new instruction which is similar to the <b>pInst. </b>How can I do it? </div><div><br></div><div>Any help will be appreciated. Thanks.</div><div><br></div><div>Best,</div><div>Zhi</div></div>