<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi,</p>
<p>I'm currently trying to implement my own intrinsic that should be replaced as a function call. I saw the code in "CodeGen/IntrinsicLowering.cpp" and precisely the method LowerIntrinsicCall that handle, for example, the llvm.memcpy intrinsic. But, in "Target/X86/X86FastISel.cpp", the intrinsic llvm.memcpy is also handled and lowered. I guess that "CodeGen/IntrinsicLowering.cpp" is a general approach that should work for every backend and the "Target/X86/X86FastISel.cpp" contains a specific, maybe faster, lowering implementation for the X86 target?</p>
<p>Unfortunately, my intrinsic lowering implementation in the function LowerIntrinsicCall of "CodeGen/IntrinsicLowering.cpp" is never called and Clang give me the following message:</p>
<p>"fatal error: error in backend: Cannot select: intrinsic %llvm.myintrinsic"</p>
<p>Any idea?</p>
<p> </p>
<p>Thank you for your help,</p>
<p>Gaël</p>
<div> </div>
</body></html>