Express the number of ULPs in fpaccuracy metadata as a real rather than a

rational number, eg as 2.5 rather than 5, 2.  OK'd by Peter Collingbourne.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154387 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan Sands
2012-04-10 08:22:43 +00:00
parent d9fc1ce809
commit 1fd63df693
4 changed files with 48 additions and 4 deletions

View File

@@ -3021,13 +3021,13 @@ call void @llvm.dbg.value(metadata !24, i64 0, metadata !25)
</blockquote>
<p>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:</p>
<p>The metadata node shall consist of a single non-negative floating
point number representing the maximum relative error. For example,
2.5 ULP:</p>
<div class="doc_code">
<pre>
!0 = metadata !{ i32 5, i32 2 }
!0 = metadata !{ float 2.5 }
</pre>
</div>