<div dir="ltr">I just put the definition of int_foo in file include/llvm/IR/Intrinsics.td like this "def int_foo : Intrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty], [IntrReadArgMem]>;", is that a problem? Is a separate file IntrinsicsMyTarget.td necessary in this case? <div><br></div><div>Thanks</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-10-22 16:08 GMT-04:00 Tim Northover <span dir="ltr"><<a href="mailto:t.p.northover@gmail.com" target="_blank">t.p.northover@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 22 October 2015 at 11:50, Xiangyang Guo via llvm-dev<br>
<span class=""><<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br>
> [(set i32:$dst, (int_foo i32:$src1, i32:$src2))]> {<br>
<br>
</span>What's your definition of int_foo? It should be coming from<br>
include/llvm/IR/IntrinsicsXYZ.td. If the expected name and types don't<br>
match up with that .td file LLVM tends to just assume you meant a real<br>
call.<br>
<br>
Also, make sure you've included IntrinsicsXYZ.td in Intrinsics.td.<br>
<span class="HOEnZb"><font color="#888888"><br>
Tim.<br>
</font></span></blockquote></div><br></div>