Enhance constant folding of bitcast operations on vectors of floats.
[oota-llvm.git] / lib / Support / APFloat.cpp
index 6d018afa3f63422c69e7d02d5894deb94cffd8f6..e765ba0a27bbc11bde785cffc1ac88cf4bbad47d 100644 (file)
@@ -3197,6 +3197,12 @@ APFloat::initFromAPInt(const APInt& api, bool isIEEE)
     llvm_unreachable(0);
 }
 
+APFloat
+APFloat::getAllOnesValue(unsigned BitWidth, bool isIEEE)
+{
+  return APFloat(APInt::getAllOnesValue(BitWidth), isIEEE);
+}
+
 APFloat APFloat::getLargest(const fltSemantics &Sem, bool Negative) {
   APFloat Val(Sem, fcNormal, Negative);