Lines Matching defs:ConstOpnd
1243 const APInt &ConstOpnd) {
1244 if (ConstOpnd.isZero())
1247 if (ConstOpnd.isAllOnes())
1251 Opnd, ConstantInt::get(Opnd->getType(), ConstOpnd), "and.ra",
1257 // Helper function of OptimizeXor(). It tries to simplify "Opnd1 ^ ConstOpnd"
1261 // via "Res" and "ConstOpnd", respectively; otherwise, false is returned,
1262 // and both "Res" and "ConstOpnd" remain unchanged.
1264 APInt &ConstOpnd, Value *&Res) {
1276 if (C1 != ConstOpnd)
1281 // ConstOpnd was C2, now C1 ^ C2.
1282 ConstOpnd ^= C1;
1290 // "Opnd1 ^ Opnd2 ^ ConstOpnd" into "R ^ C", where C would be 0, and R is a
1294 // via "Res" and "ConstOpnd", respectively (If the entire expression is
1296 // returned, and both "Res" and "ConstOpnd" remain unchanged.
1298 XorOpnd *Opnd2, APInt &ConstOpnd,
1327 int NewInstNum = ConstOpnd.getBoolValue() ? 1 : 2;
1333 ConstOpnd ^= C1;
1343 int NewInstNum = ConstOpnd.getBoolValue() ? 1 : 2;
1349 ConstOpnd ^= C3;
1383 APInt ConstOpnd(Ty->getScalarSizeInBits(), 0);
1391 ConstOpnd ^= *C;
1432 // Step 3.1: Try simplifying "CurrOpnd ^ ConstOpnd"
1433 if (!ConstOpnd.isZero() &&
1434 CombineXorOpnd(I->getIterator(), CurrOpnd, ConstOpnd, CV)) {
1450 // value, try to simplify "PrevOpnd ^ CurrOpnd ^ ConstOpnd"
1451 if (CombineXorOpnd(I->getIterator(), CurrOpnd, PrevOpnd, ConstOpnd, CV)) {
1474 if (!ConstOpnd.isZero()) {
1475 Value *C = ConstantInt::get(Ty, ConstOpnd);
1483 assert(ConstOpnd.isZero());
1484 return ConstantInt::get(Ty, ConstOpnd);