Expose more properties of llvm::fltSemantics
[oota-llvm.git] / lib / Support / APFloat.cpp
index 43d009976bd7924763d607a31f3071aeb564eb7f..6bcc053d467a1b4653dc82b60bd3123226fed5da 100644 (file)
@@ -841,6 +841,21 @@ APFloat::semanticsPrecision(const fltSemantics &semantics)
 {
   return semantics.precision;
 }
+APFloat::ExponentType
+APFloat::semanticsMaxExponent(const fltSemantics &semantics)
+{
+  return semantics.maxExponent;
+}
+APFloat::ExponentType
+APFloat::semanticsMinExponent(const fltSemantics &semantics)
+{
+  return semantics.minExponent;
+}
+unsigned int
+APFloat::semanticsSizeInBits(const fltSemantics &semantics)
+{
+  return semantics.sizeInBits;
+}
 
 const integerPart *
 APFloat::significandParts() const