I am New to LLVM:
Assume that, I want to use
if (Instruction* Pi = dyn_cast(&I)) { auto *NewInst = new Instruction(...,Pi); }