[llvm-dev] add intrinsic function support for customized backend

Tim Northover via llvm-dev
Thu, 22 Oct 2015 20:08:57 -0000

On 22 October 2015 at 11:50, Xiangyang Guo via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
>                       [(set i32:$dst, (int_foo i32:$src1, i32:$src2))]>
{

What's your definition of int_foo? It should be coming from
include/llvm/IR/IntrinsicsXYZ.td. If the expected name and types don't
match up with that .td file LLVM tends to just assume you meant a real
call.

Also, make sure you've included IntrinsicsXYZ.td in Intrinsics.td.

Tim.