From 168a4c3d320a8189ce06dfd1ebe774c7589e9cb3 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Tue, 3 Jul 2012 12:25:40 +0000 Subject: [PATCH] Document the llvm.fabs intrinsic. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159657 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/LangRef.html | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/docs/LangRef.html b/docs/LangRef.html index ba653dbd498..64154d4eaa8 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -257,6 +257,7 @@
  • 'llvm.exp.*' Intrinsic
  • 'llvm.log.*' Intrinsic
  • 'llvm.fma.*' Intrinsic
  • +
  • 'llvm.fabs.*' Intrinsic
  • Bit Manipulation Intrinsics @@ -7506,6 +7507,40 @@ LLVM.

    + +

    + 'llvm.fabs.*' Intrinsic +

    + +
    + +
    Syntax:
    +

    This is an overloaded intrinsic. You can use llvm.fabs on any + floating point or vector of floating point type. Not all targets support all + types however.

    + +
    +  declare float     @llvm.fabs.f32(float  %Val)
    +  declare double    @llvm.fabs.f64(double %Val)
    +  declare x86_fp80  @llvm.fabs.f80(x86_fp80  %Val)
    +  declare fp128     @llvm.fabs.f128(fp128 %Val)
    +  declare ppc_fp128 @llvm.fabs.ppcf128(ppc_fp128  %Val)
    +
    + +
    Overview:
    +

    The 'llvm.fabs.*' intrinsics return the absolute value of + the operand.

    + +
    Arguments:
    +

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

    + +
    Semantics:
    +

    This function returns the same values as the libm fabs functions + would, and handles error conditions in the same way.

    + +
    + -- 2.34.1