diff options
author | Duncan Sands <baldrick@free.fr> | 2012-04-16 19:39:33 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2012-04-16 19:39:33 +0000 |
commit | 2867c85a3754320f96e36afb63325bb76269caa4 (patch) | |
tree | c5bd58459f230d669f87a597c75213ab42b9529d /include/llvm/Support/MDBuilder.h | |
parent | 2c651fe6f445724627dcc48064797dca2aa4aedc (diff) | |
download | external_llvm-2867c85a3754320f96e36afb63325bb76269caa4.tar.gz external_llvm-2867c85a3754320f96e36afb63325bb76269caa4.tar.bz2 external_llvm-2867c85a3754320f96e36afb63325bb76269caa4.zip |
Remove support for the special 'fast' value for fpmath accuracy for the moment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154850 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/MDBuilder.h')
-rw-r--r-- | include/llvm/Support/MDBuilder.h | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/include/llvm/Support/MDBuilder.h b/include/llvm/Support/MDBuilder.h index f6d84526ab..40f028a432 100644 --- a/include/llvm/Support/MDBuilder.h +++ b/include/llvm/Support/MDBuilder.h @@ -26,9 +26,6 @@ namespace llvm { class MDBuilder { LLVMContext &Context; - MDString *getFastString() { - return createString("fast"); - } public: MDBuilder(LLVMContext &context) : Context(context) {} @@ -41,19 +38,12 @@ namespace llvm { // FPMath metadata. //===------------------------------------------------------------------===// - /// \brief Return metadata with appropriate settings for 'fast math'. - MDNode *createFastFPMath() { - return MDNode::get(Context, getFastString()); - } - - /// \brief Return metadata with the given settings. Special values for the - /// Accuracy parameter are 0.0, which means the default (maximal precision) - /// setting; and negative values which all mean 'fast'. + /// \brief Return metadata with the given settings. The special value 0.0 + /// for the Accuracy parameter indicates the default (maximal precision) + /// setting. MDNode *createFPMath(float Accuracy) { if (Accuracy == 0.0) return 0; - if (Accuracy < 0.0) - return MDNode::get(Context, getFastString()); assert(Accuracy > 0.0 && "Invalid fpmath accuracy!"); Value *Op = ConstantFP::get(Type::getFloatTy(Context), Accuracy); return MDNode::get(Context, Op); |