Lines Matching refs:ConstInt
367 ConstantInt *ConstInt) { in collectConstantCandidates() argument
373 ConstInt->getValue(), ConstInt->getType(), in collectConstantCandidates()
377 Inst->getOpcode(), Idx, ConstInt->getValue(), ConstInt->getType(), in collectConstantCandidates()
384 ConstPtrUnionType Cand = ConstInt; in collectConstantCandidates()
387 ConstIntCandVec.push_back(ConstantCandidate(ConstInt)); in collectConstantCandidates()
392 << "Collect constant " << *ConstInt << " from " << *Inst in collectConstantCandidates()
394 else dbgs() << "Collect constant " << *ConstInt in collectConstantCandidates()
451 if (auto ConstInt = dyn_cast<ConstantInt>(Opnd)) { in collectConstantCandidates() local
452 collectConstantCandidates(ConstCandMap, Inst, Idx, ConstInt); in collectConstantCandidates()
463 if (auto *ConstInt = dyn_cast<ConstantInt>(CastInst->getOperand(0))) { in collectConstantCandidates() local
466 collectConstantCandidates(ConstCandMap, Inst, Idx, ConstInt); in collectConstantCandidates()
481 if (auto ConstInt = dyn_cast<ConstantInt>(ConstExpr->getOperand(0))) { in collectConstantCandidates() local
484 collectConstantCandidates(ConstCandMap, Inst, Idx, ConstInt); in collectConstantCandidates()
586 auto Value = ConstCand->ConstInt->getValue(); in maximizeConstantsInRange()
587 Type *Ty = ConstCand->ConstInt->getType(); in maximizeConstantsInRange()
590 LLVM_DEBUG(dbgs() << "= Constant: " << ConstCand->ConstInt->getValue() in maximizeConstantsInRange()
602 C2->ConstInt->getValue(), in maximizeConstantsInRange()
603 ConstCand->ConstInt->getValue()); in maximizeConstantsInRange()
618 LLVM_DEBUG(dbgs() << "New candidate: " << MaxCostItr->ConstInt->getValue() in maximizeConstantsInRange()
637 ConstantInt *ConstInt = MaxCostItr->ConstInt; in findAndMakeBaseConstant() local
640 ConstInfo.BaseInt = ConstInt; in findAndMakeBaseConstant()
642 Type *Ty = ConstInt->getType(); in findAndMakeBaseConstant()
646 APInt Diff = ConstCand->ConstInt->getValue() - ConstInt->getValue(); in findAndMakeBaseConstant()
669 if (LHS.ConstInt->getType() != RHS.ConstInt->getType()) in findBaseConstants()
670 return LHS.ConstInt->getType()->getBitWidth() < in findBaseConstants()
671 RHS.ConstInt->getType()->getBitWidth(); in findBaseConstants()
672 return LHS.ConstInt->getValue().ult(RHS.ConstInt->getValue()); in findBaseConstants()
680 if (MinValItr->ConstInt->getType() == CC->ConstInt->getType()) { in findBaseConstants()
697 APInt Diff = CC->ConstInt->getValue() - MinValItr->ConstInt->getValue(); in findBaseConstants()