Lines Matching defs:ConstOpnd
1241 const APInt &ConstOpnd) {
1242 if (ConstOpnd.isZero())
1245 if (ConstOpnd.isAllOnes())
1249 Opnd, ConstantInt::get(Opnd->getType(), ConstOpnd), "and.ra",
1255 // Helper function of OptimizeXor(). It tries to simplify "Opnd1 ^ ConstOpnd"
1259 // via "Res" and "ConstOpnd", respectively; otherwise, false is returned,
1260 // and both "Res" and "ConstOpnd" remain unchanged.
1262 APInt &ConstOpnd, Value *&Res) {
1274 if (C1 != ConstOpnd)
1279 // ConstOpnd was C2, now C1 ^ C2.
1280 ConstOpnd ^= C1;
1288 // "Opnd1 ^ Opnd2 ^ ConstOpnd" into "R ^ C", where C would be 0, and R is a
1292 // via "Res" and "ConstOpnd", respectively (If the entire expression is
1294 // returned, and both "Res" and "ConstOpnd" remain unchanged.
1296 XorOpnd *Opnd2, APInt &ConstOpnd,
1325 int NewInstNum = ConstOpnd.getBoolValue() ? 1 : 2;
1331 ConstOpnd ^= C1;
1341 int NewInstNum = ConstOpnd.getBoolValue() ? 1 : 2;
1347 ConstOpnd ^= C3;
1381 APInt ConstOpnd(Ty->getScalarSizeInBits(), 0);
1389 ConstOpnd ^= *C;
1430 // Step 3.1: Try simplifying "CurrOpnd ^ ConstOpnd"
1431 if (!ConstOpnd.isZero() &&
1432 CombineXorOpnd(I->getIterator(), CurrOpnd, ConstOpnd, CV)) {
1448 // value, try to simplify "PrevOpnd ^ CurrOpnd ^ ConstOpnd"
1449 if (CombineXorOpnd(I->getIterator(), CurrOpnd, PrevOpnd, ConstOpnd, CV)) {
1472 if (!ConstOpnd.isZero()) {
1473 Value *C = ConstantInt::get(Ty, ConstOpnd);
1481 assert(ConstOpnd.isZero());
1482 return ConstantInt::get(Ty, ConstOpnd);