@@ -572,7 +572,7 @@ class IEEEFloat final {
572
572
// / emphasizes producing different codes for different inputs in order to
573
573
// / be used in canonicalization and memoization. As such, equality is
574
574
// / bitwiseIsEqual, and 0 != -0.
575
- friend hash_code hash_value (const IEEEFloat &Arg);
575
+ LLVM_ABI_FRIEND friend hash_code hash_value (const IEEEFloat &Arg);
576
576
577
577
// / Converts this value into a decimal string.
578
578
// /
@@ -629,12 +629,13 @@ class IEEEFloat final {
629
629
// / 0 -> \c IEK_Zero
630
630
// / Inf -> \c IEK_Inf
631
631
// /
632
- friend int ilogb (const IEEEFloat &Arg);
632
+ LLVM_ABI_FRIEND friend int ilogb (const IEEEFloat &Arg);
633
633
634
634
// / Returns: X * 2^Exp for integral exponents.
635
- friend IEEEFloat scalbn (IEEEFloat X, int Exp, roundingMode);
635
+ LLVM_ABI_FRIEND friend IEEEFloat scalbn (IEEEFloat X, int Exp, roundingMode);
636
636
637
- friend IEEEFloat frexp (const IEEEFloat &X, int &Exp, roundingMode);
637
+ LLVM_ABI_FRIEND friend IEEEFloat frexp (const IEEEFloat &X, int &Exp,
638
+ roundingMode);
638
639
639
640
// / \name Special value setters.
640
641
// / @{
@@ -905,9 +906,11 @@ class DoubleAPFloat final {
905
906
LLVM_ABI LLVM_READONLY int getExactLog2 () const ;
906
907
LLVM_ABI LLVM_READONLY int getExactLog2Abs () const ;
907
908
908
- friend DoubleAPFloat scalbn (const DoubleAPFloat &X, int Exp, roundingMode);
909
- friend DoubleAPFloat frexp (const DoubleAPFloat &X, int &Exp, roundingMode);
910
- friend hash_code hash_value (const DoubleAPFloat &Arg);
909
+ LLVM_ABI_FRIEND friend DoubleAPFloat scalbn (const DoubleAPFloat &X, int Exp,
910
+ roundingMode);
911
+ LLVM_ABI_FRIEND friend DoubleAPFloat frexp (const DoubleAPFloat &X, int &Exp,
912
+ roundingMode);
913
+ LLVM_ABI_FRIEND friend hash_code hash_value (const DoubleAPFloat &Arg);
911
914
};
912
915
913
916
LLVM_ABI hash_code hash_value (const DoubleAPFloat &Arg);
@@ -1512,7 +1515,7 @@ class APFloat : public APFloatBase {
1512
1515
APFLOAT_DISPATCH_ON_SEMANTICS (getExactLog2 ());
1513
1516
}
1514
1517
1515
- friend hash_code hash_value (const APFloat &Arg);
1518
+ LLVM_ABI_FRIEND friend hash_code hash_value (const APFloat &Arg);
1516
1519
friend int ilogb (const APFloat &Arg) { return ilogb (Arg.getIEEE ()); }
1517
1520
friend APFloat scalbn (APFloat X, int Exp, roundingMode RM);
1518
1521
friend APFloat frexp (const APFloat &X, int &Exp, roundingMode RM);
0 commit comments