Lines Matching refs:ConstInt
365 ConstantInt *ConstInt) { in collectConstantCandidates() argument
371 ConstInt->getValue(), ConstInt->getType(), in collectConstantCandidates()
375 Inst->getOpcode(), Idx, ConstInt->getValue(), ConstInt->getType(), in collectConstantCandidates()
382 ConstPtrUnionType Cand = ConstInt; in collectConstantCandidates()
385 ConstIntCandVec.push_back(ConstantCandidate(ConstInt)); in collectConstantCandidates()
390 << "Collect constant " << *ConstInt << " from " << *Inst in collectConstantCandidates()
392 else dbgs() << "Collect constant " << *ConstInt in collectConstantCandidates()
457 if (auto ConstInt = dyn_cast<ConstantInt>(Opnd)) { in collectConstantCandidates() local
458 collectConstantCandidates(ConstCandMap, Inst, Idx, ConstInt); in collectConstantCandidates()
469 if (auto *ConstInt = dyn_cast<ConstantInt>(CastInst->getOperand(0))) { in collectConstantCandidates() local
472 collectConstantCandidates(ConstCandMap, Inst, Idx, ConstInt); in collectConstantCandidates()
487 if (auto ConstInt = dyn_cast<ConstantInt>(ConstExpr->getOperand(0))) { in collectConstantCandidates() local
490 collectConstantCandidates(ConstCandMap, Inst, Idx, ConstInt); in collectConstantCandidates()
591 auto Value = ConstCand->ConstInt->getValue(); in maximizeConstantsInRange()
592 Type *Ty = ConstCand->ConstInt->getType(); in maximizeConstantsInRange()
595 LLVM_DEBUG(dbgs() << "= Constant: " << ConstCand->ConstInt->getValue() in maximizeConstantsInRange()
607 C2->ConstInt->getValue(), ConstCand->ConstInt->getValue()); in maximizeConstantsInRange()
622 LLVM_DEBUG(dbgs() << "New candidate: " << MaxCostItr->ConstInt->getValue() in maximizeConstantsInRange()
641 ConstantInt *ConstInt = MaxCostItr->ConstInt; in findAndMakeBaseConstant() local
644 ConstInfo.BaseInt = ConstInt; in findAndMakeBaseConstant()
646 Type *Ty = ConstInt->getType(); in findAndMakeBaseConstant()
650 APInt Diff = ConstCand->ConstInt->getValue() - ConstInt->getValue(); in findAndMakeBaseConstant()
673 if (LHS.ConstInt->getType() != RHS.ConstInt->getType()) in findBaseConstants()
674 return LHS.ConstInt->getBitWidth() < RHS.ConstInt->getBitWidth(); in findBaseConstants()
675 return LHS.ConstInt->getValue().ult(RHS.ConstInt->getValue()); in findBaseConstants()
683 if (MinValItr->ConstInt->getType() == CC->ConstInt->getType()) { in findBaseConstants()
700 APInt Diff = CC->ConstInt->getValue() - MinValItr->ConstInt->getValue(); in findBaseConstants()