Lines Matching defs:ConstInt

357 /// Record constant integer ConstInt for instruction Inst at operand
365 ConstantInt *ConstInt) {
366 if (ConstInt->getType()->isVectorTy())
374 ConstInt->getValue(), ConstInt->getType(),
378 Inst->getOpcode(), Idx, ConstInt->getValue(), ConstInt->getType(),
385 ConstPtrUnionType Cand = ConstInt;
388 ConstIntCandVec.push_back(ConstantCandidate(ConstInt));
393 << "Collect constant " << *ConstInt << " from " << *Inst
395 else dbgs() << "Collect constant " << *ConstInt
460 if (auto ConstInt = dyn_cast<ConstantInt>(Opnd)) {
461 collectConstantCandidates(ConstCandMap, Inst, Idx, ConstInt);
472 if (auto *ConstInt = dyn_cast<ConstantInt>(CastInst->getOperand(0))) {
475 collectConstantCandidates(ConstCandMap, Inst, Idx, ConstInt);
490 if (auto ConstInt = dyn_cast<ConstantInt>(ConstExpr->getOperand(0))) {
493 collectConstantCandidates(ConstCandMap, Inst, Idx, ConstInt);
575 auto Value = ConstCand->ConstInt->getValue();
576 Type *Ty = ConstCand->ConstInt->getType();
579 LLVM_DEBUG(dbgs() << "= Constant: " << ConstCand->ConstInt->getValue()
590 APInt Diff = C2->ConstInt->getValue() - ConstCand->ConstInt->getValue();
603 LLVM_DEBUG(dbgs() << "New candidate: " << MaxCostItr->ConstInt->getValue()
622 ConstantInt *ConstInt = MaxCostItr->ConstInt;
625 ConstInfo.BaseInt = ConstInt;
627 Type *Ty = ConstInt->getType();
631 APInt Diff = ConstCand->ConstInt->getValue() - ConstInt->getValue();
654 if (LHS.ConstInt->getType() != RHS.ConstInt->getType())
655 return LHS.ConstInt->getBitWidth() < RHS.ConstInt->getBitWidth();
656 return LHS.ConstInt->getValue().ult(RHS.ConstInt->getValue());
664 if (MinValItr->ConstInt->getType() == CC->ConstInt->getType()) {
681 APInt Diff = CC->ConstInt->getValue() - MinValItr->ConstInt->getValue();