From a4d7414a59114b2fe0595fb45bd71ce8ad35b546 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 21 Jul 2005 01:29:16 +0000 Subject: llvm.sqrt somehow escaped documentation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22490 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/LangRef.html | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) (limited to 'docs/LangRef.html') diff --git a/docs/LangRef.html b/docs/LangRef.html index 73e7e2d..6206d77 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -143,6 +143,8 @@
  • 'llvm.memmove' Intrinsic
  • 'llvm.memset' Intrinsic
  • 'llvm.isunordered' Intrinsic
  • +
  • 'llvm.sqrt' Intrinsic
  • +
  • Bit counting Intrinsics @@ -3133,6 +3135,41 @@ false. + + + +
    + +
    Syntax:
    +
    +  declare <float or double> %llvm.sqrt(<float or double> Val)
    +
    + +
    Overview:
    + +

    +The 'llvm.sqrt' intrinsic returns the sqrt of the specified operand, +returning the same value as the libm 'sqrt' function would. Unlike +sqrt in libm, however, llvm.sqrt has undefined behavior for +negative numbers (which allows for better optimization). +

    + +
    Arguments:
    + +

    +The argument and return value are floating point numbers of the same type. +

    + +
    Semantics:
    + +

    +This function returns the sqrt of the specified operand if it is a positive +floating point number. +

    +
    +