Lines Matching refs:ConstInt
356 ConstantInt *ConstInt) { in collectConstantCandidates() argument
362 ConstInt->getValue(), ConstInt->getType()); in collectConstantCandidates()
364 Cost = TTI->getIntImmCost(Inst->getOpcode(), Idx, ConstInt->getValue(), in collectConstantCandidates()
365 ConstInt->getType()); in collectConstantCandidates()
371 ConstPtrUnionType Cand = ConstInt; in collectConstantCandidates()
374 ConstIntCandVec.push_back(ConstantCandidate(ConstInt)); in collectConstantCandidates()
379 << "Collect constant " << *ConstInt << " from " << *Inst in collectConstantCandidates()
381 else dbgs() << "Collect constant " << *ConstInt in collectConstantCandidates()
436 if (auto ConstInt = dyn_cast<ConstantInt>(Opnd)) { in collectConstantCandidates() local
437 collectConstantCandidates(ConstCandMap, Inst, Idx, ConstInt); in collectConstantCandidates()
448 if (auto *ConstInt = dyn_cast<ConstantInt>(CastInst->getOperand(0))) { in collectConstantCandidates() local
451 collectConstantCandidates(ConstCandMap, Inst, Idx, ConstInt); in collectConstantCandidates()
466 if (auto ConstInt = dyn_cast<ConstantInt>(ConstExpr->getOperand(0))) { in collectConstantCandidates() local
469 collectConstantCandidates(ConstCandMap, Inst, Idx, ConstInt); in collectConstantCandidates()
563 auto Value = ConstCand->ConstInt->getValue(); in maximizeConstantsInRange()
564 Type *Ty = ConstCand->ConstInt->getType(); in maximizeConstantsInRange()
567 LLVM_DEBUG(dbgs() << "= Constant: " << ConstCand->ConstInt->getValue() in maximizeConstantsInRange()
578 C2->ConstInt->getValue(), in maximizeConstantsInRange()
579 ConstCand->ConstInt->getValue()); in maximizeConstantsInRange()
594 LLVM_DEBUG(dbgs() << "New candidate: " << MaxCostItr->ConstInt->getValue() in maximizeConstantsInRange()
613 ConstantInt *ConstInt = MaxCostItr->ConstInt; in findAndMakeBaseConstant() local
616 ConstInfo.BaseInt = ConstInt; in findAndMakeBaseConstant()
618 Type *Ty = ConstInt->getType(); in findAndMakeBaseConstant()
622 APInt Diff = ConstCand->ConstInt->getValue() - ConstInt->getValue(); in findAndMakeBaseConstant()
645 if (LHS.ConstInt->getType() != RHS.ConstInt->getType()) in findBaseConstants()
646 return LHS.ConstInt->getType()->getBitWidth() < in findBaseConstants()
647 RHS.ConstInt->getType()->getBitWidth(); in findBaseConstants()
648 return LHS.ConstInt->getValue().ult(RHS.ConstInt->getValue()); in findBaseConstants()
656 if (MinValItr->ConstInt->getType() == CC->ConstInt->getType()) { in findBaseConstants()
673 APInt Diff = CC->ConstInt->getValue() - MinValItr->ConstInt->getValue(); in findBaseConstants()