Home | History | Annotate | Download | only in Analysis

Lines Matching defs:Constant

449     // I guess if either is constant, keep it and ignore the other.
1055 // and a is a constant, we can solve it exactly using the Strong SIV test.
1193 // and a is a constant, we can solve it exactly using the
1254 "dynamic cast of negative of ConstCoeff should yield constant");
1424 // and a2 are constant, we can solve it exactly using an algorithm developed
1622 // and a is a constant, we can solve it exactly using the
1733 // and a is a constant, we can solve it exactly using the
2101 // a2 are constant, we attack it with an SIV test. While they can all be
2167 // and a1 and a2 are constant, we can solve it exactly with an easy adaptation
2256 // Given a product, e.g., 10*X*Y, returns the first constant operand,
2257 // in this case 10. If there is no constant part, returns NULL.
2261 if (const SCEVConstant *Constant = dyn_cast<SCEVConstant>(Product->getOperand(Op)))
2262 return Constant;
2295 // Compute running GCD and record source constant.
2296 // Because we're looking for the constant at the end of the chain,
2302 const SCEVConstant *Constant = dyn_cast<SCEVConstant>(Coeff);
2304 // If the coefficient is the product of a constant and other stuff,
2305 // we can use the constant in the GCD computation.
2306 Constant = getConstantPart(Product);
2307 if (!Constant)
2309 APInt ConstCoeff = Constant->getAPInt();
2316 // Compute running GCD and record destination constant.
2317 // Because we're looking for the constant at the end of the chain,
2323 const SCEVConstant *Constant = dyn_cast<SCEVConstant>(Coeff);
2325 // If the coefficient is the product of a constant and other stuff,
2326 // we can use the constant in the GCD computation.
2327 Constant = getConstantPart(Product);
2328 if (!Constant)
2330 APInt ConstCoeff = Constant->getAPInt();
2339 const SCEVConstant *Constant = dyn_cast<SCEVConstant>(Delta);
2345 assert(!Constant && "Surprised to find multiple constants");
2346 Constant = cast<SCEVConstant>(Operand);
2349 // Search for constant operand to participate in GCD;
2362 if (!Constant)
2364 APInt ConstDelta = cast<SCEVConstant>(Constant)->getAPInt();
2386 // we need to remember that the constant part is 5 and the RunningGCD should
2407 // If the coefficient is the product of a constant and other stuff,
2408 // we can use the constant in the GCD computation.
2409 Constant = getConstantPart(Product);
2411 Constant = cast<SCEVConstant>(Coeff);
2412 APInt ConstCoeff = Constant->getAPInt();
2425 // If the coefficient is the product of a constant and other stuff,
2426 // we can use the constant in the GCD computation.
2427 Constant = getConstantPart(Product);
2429 Constant = cast<SCEVConstant>(Coeff);
2430 APInt ConstCoeff = Constant->getAPInt();
2437 // If the coefficient is the product of a constant and other stuff,
2438 // we can use the constant in the GCD computation.
2439 Constant = getConstantPart(Product);
2441 Constant = cast<SCEVConstant>(Delta);
2444 // or constant, in which case we give up on this direction.
2447 APInt ConstCoeff = Constant->getAPInt();
2890 const SCEV *&Constant) const {
2908 Constant = Subscript;
2924 DEBUG(dbgs() << "\t Constant = " << *Subscript << '\n');