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()
459 if (auto ConstInt = dyn_cast<ConstantInt>(Opnd)) { in collectConstantCandidates() local
460 collectConstantCandidates(ConstCandMap, Inst, Idx, ConstInt); in collectConstantCandidates()
471 if (auto *ConstInt = dyn_cast<ConstantInt>(CastInst->getOperand(0))) { in collectConstantCandidates() local
474 collectConstantCandidates(ConstCandMap, Inst, Idx, ConstInt); in collectConstantCandidates()
489 if (auto ConstInt = dyn_cast<ConstantInt>(ConstExpr->getOperand(0))) { in collectConstantCandidates() local
492 collectConstantCandidates(ConstCandMap, Inst, Idx, ConstInt); in collectConstantCandidates()
594 auto Value = ConstCand->ConstInt->getValue(); in maximizeConstantsInRange()
595 Type *Ty = ConstCand->ConstInt->getType(); in maximizeConstantsInRange()
598 LLVM_DEBUG(dbgs() << "= Constant: " << ConstCand->ConstInt->getValue() in maximizeConstantsInRange()
610 C2->ConstInt->getValue(), in maximizeConstantsInRange()
611 ConstCand->ConstInt->getValue()); in maximizeConstantsInRange()
626 LLVM_DEBUG(dbgs() << "New candidate: " << MaxCostItr->ConstInt->getValue() in maximizeConstantsInRange()
645 ConstantInt *ConstInt = MaxCostItr->ConstInt; in findAndMakeBaseConstant() local
648 ConstInfo.BaseInt = ConstInt; in findAndMakeBaseConstant()
650 Type *Ty = ConstInt->getType(); in findAndMakeBaseConstant()
654 APInt Diff = ConstCand->ConstInt->getValue() - ConstInt->getValue(); in findAndMakeBaseConstant()
677 if (LHS.ConstInt->getType() != RHS.ConstInt->getType()) in findBaseConstants()
678 return LHS.ConstInt->getType()->getBitWidth() < in findBaseConstants()
679 RHS.ConstInt->getType()->getBitWidth(); in findBaseConstants()
680 return LHS.ConstInt->getValue().ult(RHS.ConstInt->getValue()); in findBaseConstants()
688 if (MinValItr->ConstInt->getType() == CC->ConstInt->getType()) { in findBaseConstants()
705 APInt Diff = CC->ConstInt->getValue() - MinValItr->ConstInt->getValue(); in findBaseConstants()