Lines Matching refs:ConstInt
360 ConstantInt *ConstInt) { in collectConstantCandidates() argument
366 ConstInt->getValue(), ConstInt->getType(), in collectConstantCandidates()
370 Inst->getOpcode(), Idx, ConstInt->getValue(), ConstInt->getType(), in collectConstantCandidates()
377 ConstPtrUnionType Cand = ConstInt; in collectConstantCandidates()
380 ConstIntCandVec.push_back(ConstantCandidate(ConstInt)); in collectConstantCandidates()
385 << "Collect constant " << *ConstInt << " from " << *Inst in collectConstantCandidates()
387 else dbgs() << "Collect constant " << *ConstInt in collectConstantCandidates()
444 if (auto ConstInt = dyn_cast<ConstantInt>(Opnd)) { in collectConstantCandidates() local
445 collectConstantCandidates(ConstCandMap, Inst, Idx, ConstInt); in collectConstantCandidates()
456 if (auto *ConstInt = dyn_cast<ConstantInt>(CastInst->getOperand(0))) { in collectConstantCandidates() local
459 collectConstantCandidates(ConstCandMap, Inst, Idx, ConstInt); in collectConstantCandidates()
474 if (auto ConstInt = dyn_cast<ConstantInt>(ConstExpr->getOperand(0))) { in collectConstantCandidates() local
477 collectConstantCandidates(ConstCandMap, Inst, Idx, ConstInt); in collectConstantCandidates()
579 auto Value = ConstCand->ConstInt->getValue(); in maximizeConstantsInRange()
580 Type *Ty = ConstCand->ConstInt->getType(); in maximizeConstantsInRange()
583 LLVM_DEBUG(dbgs() << "= Constant: " << ConstCand->ConstInt->getValue() in maximizeConstantsInRange()
595 C2->ConstInt->getValue(), in maximizeConstantsInRange()
596 ConstCand->ConstInt->getValue()); in maximizeConstantsInRange()
611 LLVM_DEBUG(dbgs() << "New candidate: " << MaxCostItr->ConstInt->getValue() in maximizeConstantsInRange()
630 ConstantInt *ConstInt = MaxCostItr->ConstInt; in findAndMakeBaseConstant() local
633 ConstInfo.BaseInt = ConstInt; in findAndMakeBaseConstant()
635 Type *Ty = ConstInt->getType(); in findAndMakeBaseConstant()
639 APInt Diff = ConstCand->ConstInt->getValue() - ConstInt->getValue(); in findAndMakeBaseConstant()
662 if (LHS.ConstInt->getType() != RHS.ConstInt->getType()) in findBaseConstants()
663 return LHS.ConstInt->getType()->getBitWidth() < in findBaseConstants()
664 RHS.ConstInt->getType()->getBitWidth(); in findBaseConstants()
665 return LHS.ConstInt->getValue().ult(RHS.ConstInt->getValue()); in findBaseConstants()
673 if (MinValItr->ConstInt->getType() == CC->ConstInt->getType()) { in findBaseConstants()
690 APInt Diff = CC->ConstInt->getValue() - MinValItr->ConstInt->getValue(); in findBaseConstants()