reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/Analysis/ScalarEvolutionExpressions.h
   59     Type *getType() const { return V->getType(); }
lib/Analysis/ConstantFolding.cpp
  264                                   ConstantInt::get(Src->getType(), ShiftAmt));
lib/Analysis/IVDescriptors.cpp
 1098       SE->getConstant(CV->getType(), CVSize / Size, true /* signed */);
lib/Analysis/InstructionSimplify.cpp
 1179         CI->getType()->getScalarSizeInBits())
 4886   if (!OffsetConstInt || OffsetConstInt->getType()->getBitWidth() > 64)
lib/Analysis/LazyValueInfo.cpp
  960         assert(A->getType() == B->getType());
  960         assert(A->getType() == B->getType());
  961         return ConstantInt::get(A->getType(), A->getValue() + B->getValue());
lib/Analysis/ScalarEvolution.cpp
 6366         uint32_t BitWidth = cast<IntegerType>(SA->getType())->getBitWidth();
 7348       return getZero(CI->getType());
 7676     auto *Ty = cast<IntegerType>(RHS->getType());
 7690     StableValue = ConstantInt::get(cast<IntegerType>(RHS->getType()), 0);
 7700     unsigned BitWidth = getTypeSizeInBits(RHS->getType());
 7702         getConstant(getEffectiveSCEVType(RHS->getType()), BitWidth);
lib/Analysis/ScalarEvolutionExpander.cpp
 1888             ConstantInt::getSigned(VO.second->getType(), -(Offset * 8) / ESize);
 1892             ConstantInt::getSigned(VO.second->getType(), -Offset);
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
 2568     uint64_t Size = AP.getDataLayout().getTypeAllocSize(CI->getType());
lib/CodeGen/CodeGenPrepare.cpp
 6835   if (TTI->getIntImmCost(GEPIIdx->getValue(), GEPIIdx->getType())
 6880     if (GEPIIdx->getType() !=
 6881         cast<ConstantInt>(UGEPI->getOperand(1))->getType())
 6884     if (TTI->getIntImmCost(UGEPIIdx->getValue(), UGEPIIdx->getType())
 6895     unsigned ImmCost = TTI->getIntImmCost(NewIdx, GEPIIdx->getType());
 6904         ConstantInt::get(GEPIIdx->getType(),
lib/IR/AsmWriter.cpp
 1294     if (CI->getType()->isIntegerTy(1)) {
lib/IR/ConstantFold.cpp
 1118         return UndefValue::get(CI2->getType());               // X / 0 == undef
 1123         return Constant::getNullValue(CI2->getType());        // X % 1 == 0
 1125         return UndefValue::get(CI2->getType());               // X % 0 == undef
 1135           unsigned DstWidth = CI2->getType()->getBitWidth();
 1173             unsigned DstWidth = CI2->getType()->getBitWidth();
 1179               return Constant::getNullValue(CI2->getType());
 1238           return UndefValue::get(CI1->getType());   // MIN_INT / -1 -> undef
 1246           return UndefValue::get(CI1->getType());   // MIN_INT % -1 -> undef
lib/IR/Constants.cpp
  649   assert(Slot->getType() == IntegerType::get(Context, V.getBitWidth()));
  677   assert(C->getType() == Ty->getScalarType() &&
  973     if (CI->getType()->isIntegerTy(8))
  975     else if (CI->getType()->isIntegerTy(16))
  977     else if (CI->getType()->isIntegerTy(32))
  979     else if (CI->getType()->isIntegerTy(64))
 2654     if (CI->getType()->isIntegerTy(8)) {
 2658     if (CI->getType()->isIntegerTy(16)) {
 2662     if (CI->getType()->isIntegerTy(32)) {
 2666     assert(CI->getType()->isIntegerTy(64) && "Unsupported ConstantData type");
lib/IR/IRBuilder.cpp
  407     assert(Size->getType() == getInt64Ty() &&
  423     assert(Size->getType() == getInt64Ty() &&
  440     assert(Size->getType() == getInt64Ty() &&
lib/IR/Metadata.cpp
  957     Type *Ty = High->getType();
 1460           OffsetConst->getType(), OffsetConst->getValue() + Offset));
lib/IR/Verifier.cpp
 2473     Assert(Case.getCaseValue()->getType() == SwitchTy,
 3338     Assert(High->getType() == Low->getType() && High->getType() == Ty,
 3338     Assert(High->getType() == Low->getType() && High->getType() == Ty,
 3338     Assert(High->getType() == Low->getType() && High->getType() == Ty,
 4015   Assert(CI && CI->getType()->isIntegerTy(64), "dereferenceable, "
 4206     Assert(CI && CI->getType()->isIntegerTy(64),
 4711     Assert(Op3->getType()->getBitWidth() <= 32,
lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp
 1047       if (CI->getType()->getBitWidth() < DestBW)
 1548     auto *QVI = ConstantInt::get(QI->getType(), QV);
 1550     P = B.CreateTrunc(P, QI->getType());
 1565     return (CI->getType()->getSignBit() & CI->getSExtValue()) == 0;
 1676       if (!Msb || Msb->getZExtValue() != Msb->getType()->getSignBit())
lib/Target/WebAssembly/WebAssemblyFastISel.cpp
  422       if (ICmp->isEquality() && C->isZero() && C->getType()->isIntegerTy(32)) {
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
  511     Value *NewMask = ConstantInt::get(BCst->getType(), BorD);
  512     Value *NewMaskedValue = ConstantInt::get(BCst->getType(), BandBxorDorE);
 1237       unsigned BigBitSize = BigC->getType()->getBitWidth();
 1238       unsigned SmallBitSize = SmallC->getType()->getBitWidth();
 1246         Value *NewVal = ConstantInt::get(AndC->getType()->getContext(), N);
 2214       LHSC->getType() == RHSC->getType() &&
 2214       LHSC->getType() == RHSC->getType() &&
 2246           Value *MaskC = ConstantInt::get(LAddC->getType(), ~DiffC);
lib/Transforms/InstCombine/InstCombineCalls.cpp
  223   MI->setLength(Constant::getNullValue(MemOpLength->getType()));
  247   if (!LenC || !FillC || !FillC->getType()->isIntegerTy(8))
  279     MI->setLength(Constant::getNullValue(LenC->getType()));
 3528         II->setArgOperand(2, ConstantInt::get(CWidth->getType(),
 3539         II->setArgOperand(1, ConstantInt::get(COffset->getType(),
 3706       II->setArgOperand(2, ConstantInt::get(CC->getType(),
 3725       II->setArgOperand(2, ConstantInt::get(CC->getType(), CmpInst::ICMP_NE));
 3789                         ConstantInt::get(CC->getType(), SrcPred) };
lib/Transforms/InstCombine/InstCombineCompares.cpp
 4234       return new ICmpInst(Pred, And, Constant::getNullValue(Cst1->getType()));
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
 1010       NewDMask = ConstantInt::get(DMask->getType(), NewDMaskVal);
lib/Transforms/InstCombine/InstCombineVectorOps.cpp
 1798     IndexC = ConstantInt::get(IndexC->getType(), NewInsIndex);
lib/Transforms/InstCombine/InstructionCombining.cpp
 1219       Op = ConstantInt::get(CI->getType(), Quotient);
lib/Transforms/Scalar/ConstantHoisting.cpp
  365                               ConstInt->getValue(), ConstInt->getType());
  368                               ConstInt->getType());
  569     Type *Ty = ConstCand->ConstInt->getType();
  623   Type *Ty = ConstInt->getType();
  650     if (LHS.ConstInt->getType() != RHS.ConstInt->getType())
  650     if (LHS.ConstInt->getType() != RHS.ConstInt->getType())
  651       return LHS.ConstInt->getType()->getBitWidth() <
  652              RHS.ConstInt->getType()->getBitWidth();
  661     if (MinValItr->ConstInt->getType() == CC->ConstInt->getType()) {
  661     if (MinValItr->ConstInt->getType() == CC->ConstInt->getType()) {
  873         IntegerType *Ty = ConstInfo.BaseInt->getType();
lib/Transforms/Scalar/JumpThreading.cpp
  251     if (!CI || !CI->getType()->isIntegerTy(1))
lib/Transforms/Scalar/SCCP.cpp
 1595                 ShiftAmt->getType()->getScalarSizeInBits())
 1612                 ShiftAmt->getType()->getScalarSizeInBits())
lib/Transforms/Scalar/SpeculateAroundPHIs.cpp
  235     MatCost = TTI.getIntImmCost(IncomingC->getValue(), IncomingC->getType());
  287                                         IncomingC->getType());
  291                               IncomingC->getType());
lib/Transforms/Utils/LowerMemIntrinsics.cpp
   39   Type *TypeOfCopyLen = CopyLen->getType();
lib/Transforms/Utils/SimplifyCFG.cpp
  428         if (CI->getType() == PtrTy)
 2204     if (!CB || !CB->getType()->isIntegerTy(1))
 2817         assert(PBI_C->getType()->isIntegerTy(1));
 5098     Value *Result = Builder.CreateIntCast(Index, LinearMultiplier->getType(),
 5108     IntegerType *MapTy = BitMap->getType();
 5406   unsigned CaseSize = MinCaseVal->getType()->getPrimitiveSizeInBits();
 5426         TableIndex, ConstantInt::get(MinCaseVal->getType(), TableSize));
 5459     IntegerType *MapTy = TableMask->getType();
tools/clang/lib/CodeGen/CGBuiltin.cpp
 2051       AlignmentCI = ConstantInt::get(AlignmentCI->getType(),
12816       Index = ConstantInt::get(Index->getType(), 1 - Index->getZExtValue());