<div dir="ltr">Hello,<div><br></div><div>I'm trying to generate LLVM IR that looks like:</div><div><br></div><div>@x = external global void ()*<br></div><div><br></div><div>I've spent some time looking and staring at LLVM docs, but can't go from:</div><div><br></div><div>@x = external global void ()<br></div><div><br></div><div>to the desired * notation</div><div><br></div><div>And therefore when I try to call it, it fails, because I've added the global mapping for x to be a pointer location where the function I'm calling resides.</div><div><br></div><div>Here is the IR today, and I'm guessing the @x() call would be changed to load and then call indirect or something.</div><div><br></div><div><div>define double @sum(double, double) {</div><div>entry:</div><div>  call void @x()</div><div>  %tmp = fadd double %0, %1</div><div>  ret double %tmp</div><div>}</div></div><div><br></div><div>Help much appreciated.</div><div><br></div><div><br></div></div>