Home | History | Annotate | Download | only in Scalar

Lines Matching refs:ConstInt

74   ConstantInt *ConstInt;
77 ConstantCandidate(ConstantInt *ConstInt)
78 : ConstInt(ConstInt), CumulativeCost(0) { }
160 ConstantInt *ConstInt);
265 /// \brief Record constant integer ConstInt for instruction Inst at operand
274 ConstantInt *ConstInt) {
280 ConstInt->getValue(), ConstInt->getType());
282 Cost = TTI->getIntImmCost(Inst->getOpcode(), Idx, ConstInt->getValue(),
283 ConstInt->getType());
289 std::tie(Itr, Inserted) = ConstCandMap.insert(std::make_pair(ConstInt, 0));
291 ConstCandVec.push_back(ConstantCandidate(ConstInt));
296 dbgs() << "Collect constant " << *ConstInt << " from " << *Inst
299 dbgs() << "Collect constant " << *ConstInt << " indirectly from "
324 if (auto ConstInt = dyn_cast<ConstantInt>(Opnd)) {
325 collectConstantCandidates(ConstCandMap, Inst, Idx, ConstInt);
336 if (auto *ConstInt = dyn_cast<ConstantInt>(CastInst->getOperand(0))) {
339 collectConstantCandidates(ConstCandMap, Inst, Idx, ConstInt);
350 if (auto ConstInt = dyn_cast<ConstantInt>(ConstExpr->getOperand(0))) {
353 collectConstantCandidates(ConstCandMap, Inst, Idx, ConstInt);
387 ConstInfo.BaseConstant = MaxCostItr->ConstInt;
392 APInt Diff = ConstCand->ConstInt->getValue() -
407 if (LHS.ConstInt->getType() != RHS.ConstInt->getType())
408 return LHS.ConstInt->getType()->getBitWidth() <
409 RHS.ConstInt->getType()->getBitWidth();
410 return LHS.ConstInt->getValue().ult(RHS.ConstInt->getValue());
418 if (MinValItr->ConstInt->getType() == CC->ConstInt->getType()) {
420 APInt Diff = CC->ConstInt->getValue() - MinValItr->ConstInt->getValue();