title: Create a LLVM function with a reference argument (e.g. double &x)
body: <p>I want to create, from scratch,  a new function in LLVM IR. The LLVM code should correspond to a C++ function with a reference argument, say</p>
  
  <p>void foo(double &amp;x){
     x=0;
  }</p>
  
  <p>The tutorial such as <a href="http://llvm.org/releases/2.6/docs/tutorial/JITTutorial1.html" rel="nofollow">http://llvm.org/releases/2.6/docs/tutorial/JITTutorial1.html</a> is too old (llvm 2.6) and does not consider pass-by-reference function. </p>
  
  <p>Any hint on how to do this? Thanks.  </p>