]> granicus.if.org Git - llvm/commitdiff
[APFloat] Tag the fltSemantic getter functions with LLVM_READNONE.
authorCraig Topper <craig.topper@gmail.com>
Tue, 21 Mar 2017 07:18:00 +0000 (07:18 +0000)
committerCraig Topper <craig.topper@gmail.com>
Tue, 21 Mar 2017 07:18:00 +0000 (07:18 +0000)
This gives about an 8k reduction in the size of the opt binary on my local x86-64 build.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298344 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/APFloat.h

index d2b3b57f0d2f57876eee8ee8947ebbd2cc8506f1..406242d90ae41fbe708b18983c7ed7f00f973182 100644 (file)
@@ -146,16 +146,16 @@ struct APFloatBase {
   /// \name Floating Point Semantics.
   /// @{
 
-  static const fltSemantics &IEEEhalf();
-  static const fltSemantics &IEEEsingle();
-  static const fltSemantics &IEEEdouble();
-  static const fltSemantics &IEEEquad();
-  static const fltSemantics &PPCDoubleDouble();
-  static const fltSemantics &x87DoubleExtended();
+  static const fltSemantics &IEEEhalf() LLVM_READNONE;
+  static const fltSemantics &IEEEsingle() LLVM_READNONE;
+  static const fltSemantics &IEEEdouble() LLVM_READNONE;
+  static const fltSemantics &IEEEquad() LLVM_READNONE;
+  static const fltSemantics &PPCDoubleDouble() LLVM_READNONE;
+  static const fltSemantics &x87DoubleExtended() LLVM_READNONE;
 
   /// A Pseudo fltsemantic used to construct APFloats that cannot conflict with
   /// anything real.
-  static const fltSemantics &Bogus();
+  static const fltSemantics &Bogus() LLVM_READNONE;
 
   /// @}