From 490104720db9e1e0eb9cc27e88e2d7288ac27ff0 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Thu, 15 Nov 2012 06:51:10 +0000 Subject: Add llvm.ceil, llvm.trunc, llvm.rint, llvm.nearbyint intrinsics. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168025 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/LangRef.html | 141 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 141 insertions(+) (limited to 'docs') diff --git a/docs/LangRef.html b/docs/LangRef.html index cdb76848e2..9c4c4eefd6 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -260,6 +260,10 @@
  • 'llvm.fma.*' Intrinsic
  • 'llvm.fabs.*' Intrinsic
  • 'llvm.floor.*' Intrinsic
  • +
  • 'llvm.ceil.*' Intrinsic
  • +
  • 'llvm.trunc.*' Intrinsic
  • +
  • 'llvm.rint.*' Intrinsic
  • +
  • 'llvm.nearbyint.*' Intrinsic
  • Bit Manipulation Intrinsics @@ -7634,6 +7638,143 @@ LLVM.

    + +

    + 'llvm.ceil.*' Intrinsic +

    + +
    + +
    Syntax:
    +

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

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

    The 'llvm.ceil.*' intrinsics return the ceiling 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 ceil functions + would, and handles error conditions in the same way.

    + +
    + + +

    + 'llvm.trunc.*' Intrinsic +

    + +
    + +
    Syntax:
    +

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

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

    The 'llvm.trunc.*' intrinsics returns the operand rounded to the + nearest integer not larger in magnitude than 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 trunc functions + would, and handles error conditions in the same way.

    + +
    + + +

    + 'llvm.rint.*' Intrinsic +

    + +
    + +
    Syntax:
    +

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

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

    The 'llvm.rint.*' intrinsics returns the operand rounded to the + nearest integer. It may raise an inexact floating-point exception if the + operand isn't an integer.

    + +
    Arguments:
    +

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

    + +
    Semantics:
    +

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

    + +
    + + +

    + 'llvm.nearbyint.*' Intrinsic +

    + +
    + +
    Syntax:
    +

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

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

    The 'llvm.nearbyint.*' intrinsics returns the operand rounded to the + nearest integer.

    + +
    Arguments:
    +

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

    + +
    Semantics:
    +

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

    + +
    + -- cgit v1.2.3