• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/

Lines Matching refs:ConstantInt

160     SmallVector<std::pair<Constant *, SmallVector<ConstantInt *, 4>>, 2>;
169 ConstantInt *Value;
172 ValueEqualityComparisonCase(ConstantInt *Value, BasicBlock *Dest)
309 !isa<ConstantInt>(PN->getIncomingValueForBlock(SI2BB)))
426 /// Extract ConstantInt from value, looking through IntToPtr
428 static ConstantInt *GetConstantInt(Value *V, const DataLayout &DL) {
430 ConstantInt *CI = dyn_cast<ConstantInt>(V);
435 // ConstantInt if possible.
440 return ConstantInt::get(PtrTy, 0);
445 if (ConstantInt *CI = dyn_cast<ConstantInt>(CE->getOperand(0))) {
450 return cast<ConstantInt>(
478 SmallVector<ConstantInt *, 8> Vals;
512 ConstantInt *C;
575 ConstantInt::get(C->getContext(),
597 Vals.push_back(ConstantInt::get(C->getContext(),
642 Vals.push_back(ConstantInt::get(I->getContext(), Tmp));
784 ConstantInt *TheVal = (*V1)[0].Value;
910 ConstantInt *TIV = nullptr;
957 /// applications that sort ConstantInt's to ensure uniqueness.
959 bool operator()(const ConstantInt *LHS, const ConstantInt *RHS) const {
966 static int ConstantIntSortPredicate(ConstantInt *const *P1,
967 ConstantInt *const *P2) {
968 const ConstantInt *LHS = *P1;
969 const ConstantInt *RHS = *P2;
992 ConstantInt *CI = mdconst::extract<ConstantInt>(MD->getOperand(i));
1085 std::set<ConstantInt *, ConstantIntOrdering> PTIHandled;
1140 std::set<ConstantInt *, ConstantIntOrdering> PTIHandled;
1141 std::map<ConstantInt *, uint64_t> WeightsForHandled;
1173 for (ConstantInt *I : PTIHandled) {
2253 ConstantInt *CB = dyn_cast<ConstantInt>(PN->getIncomingValue(i));
2357 isa<ConstantInt>(IfCond))
2883 ConstantInt *PBI_C = cast<ConstantInt>(
3332 ConstantInt::get(Type::getInt1Ty(BB->getContext()), CondIsTrue));
3354 ConstantInt::get(Type::getInt1Ty(BB->getContext()), CondIsTrue),
3627 ConstantInt *TrueVal = dyn_cast<ConstantInt>(Select->getTrueValue());
3628 ConstantInt *FalseVal = dyn_cast<ConstantInt>(Select->getFalseValue());
3705 ConstantInt *Cst = cast<ConstantInt>(ICI->getOperand(1));
3722 ConstantInt *VVal = SI->findCaseDest(BB);
3740 V = ConstantInt::getFalse(BB->getContext());
3742 V = ConstantInt::getTrue(BB->getContext());
3760 Constant *DefaultCst = ConstantInt::getTrue(BB->getContext());
3761 Constant *NewCst = ConstantInt::getFalse(BB->getContext());
3811 SmallVectorImpl<ConstantInt *> &Values = ConstantCompare.Vals;
4425 static bool CasesAreContiguous(SmallVectorImpl<ConstantInt *> &Cases) {
4459 SmallVector<ConstantInt *, 16> CasesA;
4460 SmallVector<ConstantInt *, 16> CasesB;
4487 SmallVectorImpl<ConstantInt *> *ContiguousCases = nullptr;
4505 ConstantInt::get(Offset->getType(), ContiguousCases->size());
4514 Cmp = ConstantInt::getTrue(SI->getContext());
4582 SmallVector<ConstantInt *, 8> DeadCases;
4613 for (ConstantInt *DeadCase : DeadCases) {
4630 static PHINode *FindPHIForConditionForwarding(ConstantInt *CaseValue,
4668 ConstantInt *CaseValue = Case.getCaseValue();
4724 if (!isa<ConstantFP>(C) && !isa<ConstantInt>(C) &&
4791 GetCaseResults(SwitchInst *SI, ConstantInt *CaseVal, BasicBlock *CaseDest,
4862 static uintptr_t MapCaseToResult(ConstantInt *CaseVal,
4872 std::make_pair(Result, SmallVector<ConstantInt *, 4>(1, CaseVal)));
4887 ConstantInt *CaseVal = I.getCaseValue();
4953 ConstantInt *const FirstCase = ResultVector[0].second[0];
4954 ConstantInt *const SecondCase = ResultVector[1].second[0];
5035 Module &M, uint64_t TableSize, ConstantInt *Offset,
5036 const SmallVectorImpl<std::pair<ConstantInt *, Constant *>> &Values,
5075 ConstantInt *BitMap = nullptr;
5079 ConstantInt *LinearOffset = nullptr;
5080 ConstantInt *LinearMultiplier = nullptr;
5089 Module &M, uint64_t TableSize, ConstantInt *Offset,
5090 const SmallVectorImpl<std::pair<ConstantInt *, Constant *>> &Values,
5103 ConstantInt *CaseVal = Values[I].first;
5144 ConstantInt *ConstVal = dyn_cast<ConstantInt>(TableContents[I]);
5164 LinearOffset = cast<ConstantInt>(TableContents[0]);
5165 LinearMultiplier = ConstantInt::get(M.getContext(), DistToPrev);
5180 ConstantInt *Val = cast<ConstantInt>(TableContents[I - 1]);
5184 BitMap = ConstantInt::get(M.getContext(), TableInt);
5230 ShiftAmt, ConstantInt::get(MapTy, BitMapElementTy->getBitWidth()),
5341 const SmallVectorImpl<std::pair<ConstantInt *, Constant *>> &Values) {
5356 Constant *TrueConst = ConstantInt::getTrue(RangeCmp->getType());
5357 Constant *FalseConst = ConstantInt::getFalse(RangeCmp->getType());
5394 RangeCmp, ConstantInt::get(RangeCmp->getType(), 1), "inverted.cmp",
5432 ConstantInt *MinCaseVal = CI->getCaseValue();
5433 ConstantInt *MaxCaseVal = CI->getCaseValue();
5437 using ResultListTy = SmallVector<std::pair<ConstantInt *, Constant *>, 4>;
5445 ConstantInt *CaseVal = CI->getCaseValue();
5539 TableIndex, ConstantInt::get(MinCaseVal->getType(), TableSize));
5567 ConstantInt *TableMask = ConstantInt::get(Mod.getContext(), MaskInt);
5730 auto *ShiftC = ConstantInt::get(Ty, Shift);
5731 auto *Sub = Builder.CreateSub(SI->getCondition(), ConstantInt::get(Ty, Base));
5741 cast<ConstantInt>(ConstantInt::get(Ty, Sub.lshr(ShiftC->getValue()))));
5941 if (ICI->isEquality() && isa<ConstantInt>(ICI->getOperand(1))) {
6015 ConstantInt *TorF = *Imp ? ConstantInt::getTrue(BB->getContext())
6016 : ConstantInt::getFalse(BB->getContext());