@@ -214,8 +214,10 @@ std::pair<Value *, FPClassTest> fcmpToClassTest(CmpInst::Predicate Pred,
214
214
const APFloat *ConstRHS,
215
215
bool LookThroughSrc = true );
216
216
217
- // / Compute the possible floating-point classes that \p LHS could be based on an
218
- // / fcmp returning true. Returns { TestedValue, ClassesIfTrue, ClassesIfFalse }
217
+ // / Compute the possible floating-point classes that \p LHS could be based on
218
+ // / fcmp \Pred \p LHS, \p RHS.
219
+ // /
220
+ // / \returns { TestedValue, ClassesIfTrue, ClassesIfFalse }
219
221
// /
220
222
// / If the compare returns an exact class test, ClassesIfTrue == ~ClassesIfFalse
221
223
// /
@@ -230,10 +232,13 @@ std::pair<Value *, FPClassTest> fcmpToClassTest(CmpInst::Predicate Pred,
230
232
// /
231
233
std::tuple<Value *, FPClassTest, FPClassTest>
232
234
fcmpImpliesClass (CmpInst::Predicate Pred, const Function &F, Value *LHS,
233
- const APFloat *ConstRHS , bool LookThroughSrc = true );
235
+ Value *RHS , bool LookThroughSrc = true );
234
236
std::tuple<Value *, FPClassTest, FPClassTest>
235
237
fcmpImpliesClass (CmpInst::Predicate Pred, const Function &F, Value *LHS,
236
- Value *RHS, bool LookThroughSrc = true );
238
+ FPClassTest RHS, bool LookThroughSrc = true );
239
+ std::tuple<Value *, FPClassTest, FPClassTest>
240
+ fcmpImpliesClass (CmpInst::Predicate Pred, const Function &F, Value *LHS,
241
+ const APFloat &RHS, bool LookThroughSrc = true );
237
242
238
243
struct KnownFPClass {
239
244
// / Floating-point classes the value could be one of.
0 commit comments