From 999f90bedf94e7d55508f0797802b75064f1de09 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Thu, 27 Oct 2011 19:19:14 +0000 Subject: Add a pinned metadata name for fpaccuracy, and document it git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143135 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/LangRef.html | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'docs') diff --git a/docs/LangRef.html b/docs/LangRef.html index 8dca415172..a12a42b39d 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -103,6 +103,7 @@
  • Metadata Nodes and Metadata Strings
    1. 'tbaa' Metadata
    2. +
    3. 'fpaccuracy' Metadata
  • @@ -2966,6 +2967,35 @@ call void @llvm.dbg.value(metadata !24, i64 0, metadata !25) +

    + 'fpaccuracy' Metadata +

    + +
    + +

    fpaccuracy metadata may be attached to any instruction of floating + point type. It expresses the maximum relative error of the result of + that instruction, in ULPs. ULP is defined as follows:

    + +

    +If x is a real number that lies between two finite consecutive floating-point +numbers a and b, without being equal to one of them, then ulp(x) = |b - a|, +otherwise ulp(x) is the distance between the two non-equal finite +floating-point numbers nearest x. Moreover, ulp(NaN) is NaN. +

    + +

    The maximum relative error may be any rational number. The metadata node + shall consist of a pair of unsigned integers respectively representing + the numerator and denominator. For example, 2.5 ULP:

    + +
    +
    +!0 = metadata !{ i32 5, i32 2 }
    +
    +
    + +
    + -- cgit v1.2.3