diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst --- a/llvm/docs/LangRef.rst +++ b/llvm/docs/LangRef.rst @@ -10394,6 +10394,12 @@ type is matched against the return type, it does not require its own name suffix. +Intrinsic overloads based solely the distinction between whether the +types are integer or floating point should not be relied upon for +correct code generation. In such cases, the recommended approach when +defining intrinsics is to create separate integer and FP intrinsics +rather than rely on overloading. + To learn how to add an intrinsic function, please see the `Extending LLVM Guide `_.