<div dir="ltr"><div>I would like to add an intrinsic that the user can put in their code.</div><div>The intrinsic is for sending, ala MPI, a value to another processor.</div><div>I have read the short document,</div><div><a href="https://llvm.org/docs/ExtendingLLVM.html">https://llvm.org/docs/ExtendingLLVM.html</a>, about adding intrinsics but</div><div>must be missing something because it doesn't mention changing anything</div><div>in clang.  I added my intrinsic to</div><div>llvm/include/llvm/IR/IntrinsicsX86.td, then I added it to</div><div>clang/include/clang/Basic/BuiltinsX86.def.  When I compile my code I get:</div><div><br></div><div>send.c:14:3: error: cannot compile this builtin function yet</div><div>  __builtin_uli_send0(1, 0, &incr);</div><div>  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</div><div><br></div><div>The AST has information about my intrinsic and the parameters, but not</div><div>sure how to proceed.</div><div><br></div><div>What am I missing?</div><div><br></div><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><br></div><div>--------------</div><div>Seth Copen Goldstein</div><div>Carnegie Mellon University</div><div>Computer Science Dept</div><div>7111 GHC</div><div>412-268-3828</div></div></div></div></div></div>
</div>