diff options
author | Duncan Sands <baldrick@free.fr> | 2012-04-10 08:23:07 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2012-04-10 08:23:07 +0000 |
commit | 8250016fb9491fcfde7fce05230d66e267944484 (patch) | |
tree | 9140b62c2c03c670521fbd2c26fcb2024e6dca06 /lib/CodeGen/CodeGenFunction.h | |
parent | 2b124ea9d2c27c6d002ecd4623f6321e305d907e (diff) |
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/cfe/trunk@154388 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index bcc2c7bc15..3e0cd14625 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -2518,8 +2518,7 @@ public: /// SetFPAccuracy - Set the minimum required accuracy of the given floating /// point operation, expressed as the maximum relative error in ulp. - void SetFPAccuracy(llvm::Value *Val, unsigned AccuracyN, - unsigned AccuracyD = 1); + void SetFPAccuracy(llvm::Value *Val, float Accuracy); private: llvm::MDNode *getRangeForLoadFromType(QualType Ty); |