Lines Matching defs:ConstInt

359 /// Record constant integer ConstInt for instruction Inst at operand
367 ConstantInt *ConstInt) {
368 if (ConstInt->getType()->isVectorTy())
376 ConstInt->getValue(), ConstInt->getType(),
380 Inst->getOpcode(), Idx, ConstInt->getValue(), ConstInt->getType(),
387 ConstPtrUnionType Cand = ConstInt;
390 ConstIntCandVec.push_back(ConstantCandidate(ConstInt));
395 << "Collect constant " << *ConstInt << " from " << *Inst
397 else dbgs() << "Collect constant " << *ConstInt
462 if (auto ConstInt = dyn_cast<ConstantInt>(Opnd)) {
463 collectConstantCandidates(ConstCandMap, Inst, Idx, ConstInt);
474 if (auto *ConstInt = dyn_cast<ConstantInt>(CastInst->getOperand(0))) {
477 collectConstantCandidates(ConstCandMap, Inst, Idx, ConstInt);
492 if (auto ConstInt = dyn_cast<ConstantInt>(ConstExpr->getOperand(0))) {
495 collectConstantCandidates(ConstCandMap, Inst, Idx, ConstInt);
596 auto Value = ConstCand->ConstInt->getValue();
597 Type *Ty = ConstCand->ConstInt->getType();
600 LLVM_DEBUG(dbgs() << "= Constant: " << ConstCand->ConstInt->getValue()
612 C2->ConstInt->getValue(), ConstCand->ConstInt->getValue());
627 LLVM_DEBUG(dbgs() << "New candidate: " << MaxCostItr->ConstInt->getValue()
646 ConstantInt *ConstInt = MaxCostItr->ConstInt;
649 ConstInfo.BaseInt = ConstInt;
651 Type *Ty = ConstInt->getType();
655 APInt Diff = ConstCand->ConstInt->getValue() - ConstInt->getValue();
678 if (LHS.ConstInt->getType() != RHS.ConstInt->getType())
679 return LHS.ConstInt->getBitWidth() < RHS.ConstInt->getBitWidth();
680 return LHS.ConstInt->getValue().ult(RHS.ConstInt->getValue());
688 if (MinValItr->ConstInt->getType() == CC->ConstInt->getType()) {
705 APInt Diff = CC->ConstInt->getValue() - MinValItr->ConstInt->getValue();