title: Creating a new Store Instruction LLVM
body: <p>I am working with LLVM IR code. I want to create a new <code>store</code> instruction ( Eg: <code>store i32 %add, i32* %temp1, align 4</code>) and I need to insert it after a particular instruction, say after an <code>add</code> instruction. My intention is, the result of an addition operation (some pointer) is stored in <code>%add</code>, I need to keep a copy of the same in a <i>temperory variable</i> say <code>%temp1</code>.</p>
  
  <p>For that, I created a variable named <code>temp1</code> first (<code>%temp1 = alloca i32, align 4</code>). Now I want to store the result of addition instruction (<code>%add = add nsw i32 %0, %1</code>) i.e., <code>%add</code> to <code>temp1</code>. Then the final <i>store instruction</i> will be something like this: <code>store i32 %add, i32* %temp1, align 4</code>. How to do this?</p>
  
  <p>Any help with some examples?</p>