@@ -1226,56 +1226,44 @@ class ICmpInst: public CmpInst {
12261226 return {getSwappedPredicate (Pred), Pred.hasSameSign ()};
12271227 }
12281228
1229- // / @returns the swapped predicate along with samesign information .
1230- CmpPredicate getSwappedCmpPredicate () const {
1229+ // / @returns the swapped predicate.
1230+ Predicate getSwappedCmpPredicate () const {
12311231 return getSwappedPredicate (getCmpPredicate ());
12321232 }
12331233
12341234 // / For example, EQ->EQ, SLE->SLE, UGT->SGT, etc.
12351235 // / @returns the predicate that would be the result if the operand were
12361236 // / regarded as signed.
1237- // / Return the signed version of the predicate along with samesign
1238- // / information.
1239- CmpPredicate getSignedPredicate () const {
1240- return getSignedPredicate (getCmpPredicate ());
1237+ // / Return the signed version of the predicate.
1238+ Predicate getSignedPredicate () const {
1239+ return getSignedPredicate (getPredicate ());
12411240 }
12421241
1243- // / Return the signed version of the predicate along with samesign
1244- // / information: static variant.
1245- static CmpPredicate getSignedPredicate (CmpPredicate Pred) {
1246- return {CmpInst::getSignedPredicate (Pred), Pred.hasSameSign ()};
1247- }
1242+ // / Return the signed version of the predicate: static variant.
1243+ static Predicate getSignedPredicate (Predicate Pred);
12481244
12491245 // / For example, EQ->EQ, SLE->ULE, UGT->UGT, etc.
12501246 // / @returns the predicate that would be the result if the operand were
12511247 // / regarded as unsigned.
1252- // / Return the unsigned version of the predicate along with samesign
1253- // / information.
1254- CmpPredicate getUnsignedPredicate () const {
1255- return getUnsignedPredicate (getCmpPredicate ());
1248+ // / Return the unsigned version of the predicate.
1249+ Predicate getUnsignedPredicate () const {
1250+ return getUnsignedPredicate (getPredicate ());
12561251 }
12571252
1258- // / Return the unsigned version of the predicate along with samesign
1259- // / information: static variant.
1260- static CmpPredicate getUnsignedPredicate (CmpPredicate Pred) {
1261- return {CmpInst::getUnsignedPredicate (Pred), Pred.hasSameSign ()};
1262- }
1253+ // / Return the unsigned version of the predicate: static variant.
1254+ static Predicate getUnsignedPredicate (Predicate Pred);
12631255
12641256 // / For example, SLT->ULT, ULT->SLT, SLE->ULE, ULE->SLE, EQ->EQ
12651257 // / @returns the unsigned version of the signed predicate pred or
1266- // / the signed version of the signed predicate pred, along with
1267- // / samesign information.
1258+ // / the signed version of the signed predicate pred.
12681259 // / Static variant.
1269- static CmpPredicate getFlippedSignednessPredicate (CmpPredicate Pred) {
1270- return {CmpInst::getFlippedSignednessPredicate (Pred), Pred.hasSameSign ()};
1271- }
1260+ static Predicate getFlippedSignednessPredicate (Predicate Pred);
12721261
12731262 // / For example, SLT->ULT, ULT->SLT, SLE->ULE, ULE->SLE, EQ->EQ
12741263 // / @returns the unsigned version of the signed predicate pred or
1275- // / the signed version of the signed predicate pred, along with
1276- // / samesign information.
1277- CmpPredicate getFlippedSignednessPredicate () const {
1278- return getFlippedSignednessPredicate (getCmpPredicate ());
1264+ // / the signed version of the signed predicate pred.
1265+ Predicate getFlippedSignednessPredicate () const {
1266+ return getFlippedSignednessPredicate (getPredicate ());
12791267 }
12801268
12811269 void setSameSign (bool B = true ) {
0 commit comments