Home | History | Annotate | Download | only in InstCombine

Lines Matching refs:APFloat

35     // The constructor has to initialize a APFloat, which is uncessary for
49 void set(const APFloat& C);
70 APFloat *getFpValPtr(void)
71 { return reinterpret_cast<APFloat*>(&FpValBuf.buffer[0]); }
72 const APFloat *getFpValPtr(void) const
73 { return reinterpret_cast<const APFloat*>(&FpValBuf.buffer[0]); }
75 const APFloat &getFpVal(void) const {
80 APFloat &getFpVal(void) {
91 // Construct an APFloat from a signed integer.
92 // TODO: We should get rid of this function when APFloat can be constructed
94 APFloat createAPFloatFromInt(const fltSemantics &Sem, int Val);
99 // True iff FpValBuf contains an instance of APFloat.
108 AlignedCharArrayUnion<APFloat> FpValBuf;
126 void set(const APFloat& Coefficient, Value *V)
206 getFpValPtr()->~APFloat();
209 void FAddendCoef::set(const APFloat& C) {
210 APFloat *P = getFpValPtr();
214 // APFloat::operator=().
215 new(P) APFloat(C);
226 APFloat *P = getFpValPtr();
228 new(P) APFloat(Sem, IntVal);
230 new(P) APFloat(Sem, 0 - IntVal);
236 APFloat FAddendCoef::createAPFloatFromInt(const fltSemantics &Sem, int Val) {
238 return APFloat(Sem, Val);
240 APFloat T(Sem, 0 - Val);
254 enum APFloat::roundingMode RndMode = APFloat::rmNearestTiesToEven;
264 const APFloat &T = That.getFpVal();
270 APFloat &T = getFpVal();
275 enum APFloat::roundingMode RndMode = APFloat::rmNearestTiesToEven;
285 const APFloat &T = That.getFpVal();
291 APFloat &T = getFpVal();
316 APFloat &F0 = getFpVal();
320 APFloat::rmNearestTiesToEven);
322 F0.multiply(That.getFpVal(), APFloat::rmNearestTiesToEven);
390 Addend0.set(APFloat(C0->getValueAPF().getSemantics()), nullptr);
498 const APFloat &F = CFP->getValueAPF();