<div dir="ltr">Hi, All,<div><br></div><div>I want to add one intrinsic function for my particular backend. Let's say the intrinsic function is named "foo" which takes two i32 inputs and has one i32 output. </div><div><br></div><div>First, I add this line "def int_foo : Intrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty], [IntrReadArgMem]>;" in /include/llvm/IR/Intrinsics.td.</div><div><br></div><div>Then, in my target/InstrInfo.td, I'm supposed to add one pattern to match this intrinsic function. However, I don't understand how LLVM can tell the difference between this intrinsic function call and other normal function calls. From the IR, I can see both intrinsic functions and other normal functions use 'call'. </div><div><br></div><div>So my question is how to add intrinsic function support for customized backend? Any hint/suggestion is appreciable.</div><div><br></div><div>Regards,</div><div><br></div><div>Xiangyang</div></div>