|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
Declarations
include/llvm/IR/Constants.h 102 static Constant *get(Type *Ty, uint64_t V, bool isSigned = false);
References
include/llvm/Analysis/Utils/Local.h 58 Result = Builder->CreateAdd(Result, ConstantInt::get(IntPtrTy, Size),
67 Constant *Scale = ConstantInt::get(IntPtrTy, Size);
85 Op = Builder->CreateMul(Op, ConstantInt::get(IntPtrTy, Size),
include/llvm/IR/IRBuilder.h 1239 return CreateShl(LHS, ConstantInt::get(LHS->getType(), RHS), Name,
1260 return CreateLShr(LHS, ConstantInt::get(LHS->getType(), RHS), Name,isExact);
1280 return CreateAShr(LHS, ConstantInt::get(LHS->getType(), RHS), Name,isExact);
1298 return CreateAnd(LHS, ConstantInt::get(LHS->getType(), RHS), Name);
1324 return CreateOr(LHS, ConstantInt::get(LHS->getType(), RHS), Name);
1345 return CreateXor(LHS, ConstantInt::get(LHS->getType(), RHS), Name);
2492 V = CreateInsertElement(Undef, V, ConstantInt::get(I32Ty, 0),
2620 Value *Zero = ConstantInt::get(IntPtrTy, 0);
2649 Value *Mask = ConstantInt::get(IntPtrTy, Alignment - 1);
2679 Value *Mask = CreateSub(Alignment, ConstantInt::get(IntPtrTy, 1), "mask");
lib/Analysis/CmpInstAnalysis.cpp 47 return ConstantInt::get(CmpInst::makeCmpResultType(OpTy), 0);
55 return ConstantInt::get(CmpInst::makeCmpResultType(OpTy), 1);
lib/Analysis/ConstantFolding.cpp 227 ConstantInt::get(Src->getType(), ShiftAmt));
946 NewIdxs.push_back(ConstantInt::get(IntPtrTy, 0));
1641 return ConstantInt::get(Ty, UIntVal, IsSigned);
1969 return ConstantInt::get(Ty, Op->getValue().countPopulation());
2213 return ConstantInt::get(Ty, C0->countTrailingZeros());
2215 return ConstantInt::get(Ty, C0->countLeadingZeros());
lib/Analysis/IVDescriptors.cpp 732 return ConstantInt::get(Tp, 0);
735 return ConstantInt::get(Tp, 1);
738 return ConstantInt::get(Tp, -1, true);
lib/Analysis/InstructionSimplify.cpp 930 return IsDiv ? ConstantInt::get(Ty, 1) : Constant::getNullValue(Ty);
2313 return ConstantInt::get(GetCompareTy(LHS),
2400 return ConstantInt::get(GetCompareTy(LHS),
2411 return ConstantInt::get(GetCompareTy(LHS),
2462 return ConstantInt::get(GetCompareTy(LHS),
2478 return ConstantInt::get(GetCompareTy(LHS),
3208 return ConstantInt::get(ITy, CmpInst::isTrueWhenEqual(Pred));
3502 return ConstantInt::get(RetTy, Pred == FCmpInst::FCMP_ORD);
3508 return ConstantInt::get(RetTy, CmpInst::isUnordered(Pred));
3515 return ConstantInt::get(RetTy, CmpInst::isUnordered(Pred));
3606 return ConstantInt::get(RetTy, IsMaxNum);
3613 return ConstantInt::get(RetTy, !IsMaxNum);
4895 ConstantInt::get(Int64Ty, OffsetInt / 4));
lib/Analysis/MemoryBuiltins.cpp 923 Value *Size = ConstantInt::get(ArraySize->getType(),
lib/Analysis/ScalarEvolutionExpander.cpp 843 ConstantInt::get(Ty, RHS->logBase2()), NWFlags,
863 ConstantInt::get(Ty, RHS.logBase2()),
1570 Constant *One = ConstantInt::get(Ty, 1);
lib/Analysis/TypeBasedAliasAnalysis.cpp 549 auto *OffsetNode = ConstantAsMetadata::get(ConstantInt::get(Int64, 0));
556 ConstantAsMetadata::get(ConstantInt::get(Int64, AccessSize));
lib/Analysis/ValueTracking.cpp 2686 Constant *BaseVal = ConstantInt::get(T, Base);
2689 Multiple = ConstantInt::get(T, 1);
2694 Multiple = ConstantInt::get(T, CI->getZExtValue() / Base);
lib/Bitcode/Reader/BitcodeReader.cpp 2387 V = ConstantInt::get(CurTy, decodeSignRotatedValue(Record[0]));
lib/CodeGen/AtomicExpandPass.cpp 677 ConstantInt::get(Ret.WordType, (1 << ValueSize * 8) - 1), Ret.ShiftAmt,
lib/CodeGen/CodeGenPrepare.cpp 1239 B = ConstantInt::get(B->getType(), 1);
1241 B = ConstantInt::get(B->getType(), -1);
1299 B = ConstantInt::get(B->getType(), 1);
2157 return ConstantInt::get(IntPtrTy, BaseOffs);
4874 V = Builder.CreateMul(V, ConstantInt::get(IntPtrTy, AddrMode.Scale),
4884 Value *V = ConstantInt::get(IntPtrTy, AddrMode.BaseOffs);
4970 V = Builder.CreateMul(V, ConstantInt::get(IntPtrTy, AddrMode.Scale),
4989 Value *V = ConstantInt::get(IntPtrTy, AddrMode.BaseOffs);
5361 Value *BaseIndex = ConstantInt::get(IntPtrTy, BaseOffset);
5377 Value *Index = ConstantInt::get(IntPtrTy, Offset - BaseOffset);
lib/CodeGen/ExpandMemCmp.cpp 300 ConstantInt::get(Diff->getType(), 0));
398 Cmp = Builder.CreateICmpNE(OrList[0], ConstantInt::get(Diff->getType(), 0));
lib/CodeGen/GlobalISel/IRTranslator.cpp 949 Indices.push_back(ConstantInt::get(Int32Ty, 0));
953 Indices.push_back(ConstantInt::get(Int32Ty, Idx));
956 Indices.push_back(ConstantInt::get(Int32Ty, Idx));
1819 getOrCreateVReg(*ConstantInt::get(IntPtrIRTy, DL->getTypeAllocSize(Ty)));
lib/CodeGen/GlobalMerge.cpp 535 ConstantInt::get(Int32Ty, 0),
536 ConstantInt::get(Int32Ty, StructIdxs[idx]),
lib/CodeGen/HardwareLoops.cpp 444 CondBuilder.CreateICmpNE(EltsRem, ConstantInt::get(EltsRem->getType(), 0));
lib/CodeGen/IntrinsicLowering.cpp 72 Value *Tmp1 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 8),
74 Value *Tmp2 = Builder.CreateLShr(V, ConstantInt::get(V->getType(), 8),
80 Value *Tmp4 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 24),
82 Value *Tmp3 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 8),
84 Value *Tmp2 = Builder.CreateLShr(V, ConstantInt::get(V->getType(), 8),
86 Value *Tmp1 = Builder.CreateLShr(V,ConstantInt::get(V->getType(), 24),
89 ConstantInt::get(V->getType(), 0xFF0000),
92 ConstantInt::get(V->getType(), 0xFF00),
100 Value *Tmp8 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 56),
102 Value *Tmp7 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 40),
104 Value *Tmp6 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 24),
106 Value *Tmp5 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 8),
108 Value* Tmp4 = Builder.CreateLShr(V, ConstantInt::get(V->getType(), 8),
111 ConstantInt::get(V->getType(), 24),
114 ConstantInt::get(V->getType(), 40),
117 ConstantInt::get(V->getType(), 56),
120 ConstantInt::get(V->getType(),
124 ConstantInt::get(V->getType(),
128 ConstantInt::get(V->getType(),
132 ConstantInt::get(V->getType(),
136 ConstantInt::get(V->getType(),
140 ConstantInt::get(V->getType(),
170 Value *Count = ConstantInt::get(V->getType(), 0);
176 Value *MaskCst = ConstantInt::get(V->getType(), MaskValues[ct]);
179 ConstantInt::get(V->getType(), i),
186 V = Builder.CreateLShr(V, ConstantInt::get(V->getType(), 64),
202 Value *ShVal = ConstantInt::get(V->getType(), i);
302 Value *SrcM1 = ConstantInt::get(Src->getType(), 1);
326 CI->replaceAllUsesWith(ConstantInt::get(CI->getType(), 0));
361 CI->replaceAllUsesWith(ConstantInt::get(CI->getType(), 1));
470 CI->replaceAllUsesWith(ConstantInt::get(CI->getType(), 1));
lib/CodeGen/MIRParser/MIParser.cpp 2314 ShufMask.push_back(ConstantInt::get(I32Ty, Int.getExtValue()));
lib/CodeGen/SafeStack.cpp 545 ConstantInt::get(IntPtrTy, ~uint64_t(FrameAlignment - 1))),
554 ConstantInt::get(Int32Ty, -Offset));
573 ConstantInt::get(Int32Ty, -Offset));
609 ConstantInt::get(Int32Ty, -Offset));
632 IRB.CreateGEP(Int8Ty, BasePointer, ConstantInt::get(Int32Ty, -FrameSize),
653 Value *Size = IRB.CreateMul(ArraySize, ConstantInt::get(IntPtrTy, TySize));
666 IRB.CreateAnd(SP, ConstantInt::get(IntPtrTy, ~uint64_t(Align - 1))),
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp 1952 CV.push_back(ConstantInt::get(EltVT.getTypeForEVT(*DAG.getContext()),
lib/CodeGen/ShadowStackGCLowering.cpp 119 ConstantInt::get(Int32Ty, Roots.size(), false),
120 ConstantInt::get(Int32Ty, NumMeta, false),
lib/CodeGen/SjLjEHPrepare.cpp 107 Value *Zero = ConstantInt::get(Int32Ty, 0);
108 Value *One = ConstantInt::get(Int32Ty, 1);
lib/IR/AutoUpgrade.cpp 1288 Constant *ShiftAmt = ConstantInt::get(Ty, 32);
1295 Constant *Mask = ConstantInt::get(Ty, 0xffffffff);
1910 ConstantInt::get(I32Ty, 0));
1912 ConstantInt::get(I32Ty, 0));
1923 ConstantInt::get(I32Ty, 0));
2245 ConstantInt::get(I32Ty, I));
4005 ConstantAsMetadata::get(ConstantInt::get(Int32Ty, Module::Max)),
lib/IR/ConstantFold.cpp 63 ConstantExpr::getExtractElement(CV, ConstantInt::get(Ty, i));
338 ConstantInt::get(Res->getType(), ByteStart*8));
355 Constant *N = ConstantInt::get(DestTy, ATy->getNumElements());
377 Constant *N = ConstantInt::get(DestTy, NumElems);
423 return ConstantInt::get(DestTy, 1);
431 return ConstantInt::get(DestTy, 1);
581 ConstantExpr::getExtractElement(V, ConstantInt::get(Ty, i));
631 return ConstantInt::get(DestTy, 0);
746 ConstantInt::get(Ty, i));
748 ConstantInt::get(Ty, i));
887 ConstantInt::get(Ty, Elt - SrcNumElts));
890 InElt = ConstantExpr::getExtractElement(V1, ConstantInt::get(Ty, Elt));
974 Constant *ExtractIdx = ConstantInt::get(Ty, i);
1312 Constant *ExtractIdx = ConstantInt::get(Ty, i);
1814 return ConstantInt::get(ResultTy, CmpInst::isTrueWhenEqual(Predicate));
1818 return ConstantInt::get(ResultTy, CmpInst::isUnordered(Predicate));
1866 case ICmpInst::ICMP_EQ: return ConstantInt::get(ResultTy, V1 == V2);
1867 case ICmpInst::ICMP_NE: return ConstantInt::get(ResultTy, V1 != V2);
1868 case ICmpInst::ICMP_SLT: return ConstantInt::get(ResultTy, V1.slt(V2));
1869 case ICmpInst::ICMP_SGT: return ConstantInt::get(ResultTy, V1.sgt(V2));
1870 case ICmpInst::ICMP_SLE: return ConstantInt::get(ResultTy, V1.sle(V2));
1871 case ICmpInst::ICMP_SGE: return ConstantInt::get(ResultTy, V1.sge(V2));
1872 case ICmpInst::ICMP_ULT: return ConstantInt::get(ResultTy, V1.ult(V2));
1873 case ICmpInst::ICMP_UGT: return ConstantInt::get(ResultTy, V1.ugt(V2));
1874 case ICmpInst::ICMP_ULE: return ConstantInt::get(ResultTy, V1.ule(V2));
1875 case ICmpInst::ICMP_UGE: return ConstantInt::get(ResultTy, V1.uge(V2));
1886 return ConstantInt::get(ResultTy, R==APFloat::cmpUnordered);
1888 return ConstantInt::get(ResultTy, R!=APFloat::cmpUnordered);
1890 return ConstantInt::get(ResultTy, R==APFloat::cmpUnordered ||
1893 return ConstantInt::get(ResultTy, R==APFloat::cmpEqual);
1895 return ConstantInt::get(ResultTy, R!=APFloat::cmpEqual);
1897 return ConstantInt::get(ResultTy, R==APFloat::cmpLessThan ||
1900 return ConstantInt::get(ResultTy, R==APFloat::cmpUnordered ||
1903 return ConstantInt::get(ResultTy, R==APFloat::cmpLessThan);
1905 return ConstantInt::get(ResultTy, R==APFloat::cmpUnordered ||
1908 return ConstantInt::get(ResultTy, R==APFloat::cmpGreaterThan);
1910 return ConstantInt::get(ResultTy, R!=APFloat::cmpGreaterThan);
1912 return ConstantInt::get(ResultTy, R==APFloat::cmpLessThan ||
1915 return ConstantInt::get(ResultTy, R!=APFloat::cmpLessThan);
1917 return ConstantInt::get(ResultTy, R==APFloat::cmpGreaterThan ||
1928 ConstantExpr::getExtractElement(C1, ConstantInt::get(Ty, i));
1930 ConstantExpr::getExtractElement(C2, ConstantInt::get(Ty, i));
2003 return ConstantInt::get(ResultTy, Result);
2074 return ConstantInt::get(ResultTy, Result);
2418 ConstantInt::get(CurrIdx->getType()->getScalarType(), NumElements);
lib/IR/Constants.cpp 292 return ConstantInt::get(Ty, 0);
672 return get(Ty, V, true);
2350 return ConstantInt::get(Ty, 1);
2376 return ConstantInt::get(Ty, 1);
2778 return ConstantInt::get(getElementType(), getElementAsInteger(Elt));
lib/IR/Instructions.cpp 536 ArraySize = ConstantInt::get(IntPtrTy, 1);
1837 NewMask[i] = ConstantInt::get(Int32Ty, MaskElt);
lib/IR/MDBuilder.cpp 50 Vals[i + 1] = createConstant(ConstantInt::get(Int32Ty, Weights[i]));
68 Ops.push_back(createConstant(ConstantInt::get(Int64Ty, Count)));
73 Ops.push_back(createConstant(ConstantInt::get(Int64Ty, ID)));
113 Ops.push_back(createConstant(ConstantInt::get(Int64, CalleeArgNo)));
116 Ops.push_back(createConstant(ConstantInt::get(Int64, ArgNo, true)));
119 Ops.push_back(createConstant(ConstantInt::get(Int1, VarArgArePassed)));
205 Vals[i * 3 + 0] = createConstant(ConstantInt::get(Int64, Fields[i].Offset));
206 Vals[i * 3 + 1] = createConstant(ConstantInt::get(Int64, Fields[i].Size));
221 Ops[i * 2 + 2] = createConstant(ConstantInt::get(Int64, Fields[i].second));
254 Ops[1] = createConstant(ConstantInt::get(Int64, Size));
258 Ops[I * 3 + 4] = createConstant(ConstantInt::get(Int64, Fields[I].Offset));
259 Ops[I * 3 + 5] = createConstant(ConstantInt::get(Int64, Fields[I].Size));
lib/IR/Module.cpp 341 ConstantAsMetadata::get(ConstantInt::get(Int32Ty, Behavior)),
352 addModuleFlag(Behavior, Key, ConstantInt::get(Int32Ty, Val));
lib/IR/ProfileSummary.cpp 30 ConstantAsMetadata::get(ConstantInt::get(Int64Ty, Val))};
53 ConstantAsMetadata::get(ConstantInt::get(Int32Ty, Entry.Cutoff)),
54 ConstantAsMetadata::get(ConstantInt::get(Int64Ty, Entry.MinCount)),
55 ConstantAsMetadata::get(ConstantInt::get(Int32Ty, Entry.NumCounts))};
lib/Target/AArch64/AArch64ISelLowering.cpp12191 Lo, Builder.CreateShl(Hi, ConstantInt::get(ValTy, 64)), "val64");
lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp 958 ConstantAsMetadata::get(ConstantInt::get(I32Ty, 0))
lib/Target/AMDGPU/AMDGPUPrintfRuntimeBinding.cpp 348 Value *sumC = ConstantInt::get(SizetTy, Sum, false);
390 new StoreInst(ConstantInt::get(I32Ty, UniqID), id_gep_cast);
464 Value *ANumV = ConstantInt::get(Int32Ty, ANum, false);
470 Value *ANumV = ConstantInt::get(Int32Ty, 0xFFFFFF00, false);
537 BuffOffset.push_back(ConstantInt::get(I32Ty, ArgSize));
lib/Target/AMDGPU/R600OpenCLImageTypeLoweringPass.cpp 182 Replacement = ConstantInt::get(Int32Type, ResourceID);
215 Replacement = ConstantInt::get(Int32Type, ResourceID);
lib/Target/AMDGPU/SIAnnotateControlFlow.cpp 149 IntMaskZero = ConstantInt::get(IntMask, 0);
lib/Target/ARM/ARMISelLowering.cpp 9643 const Constant *C = ConstantInt::get(Int32Ty, NumLPads);
9744 const Constant *C = ConstantInt::get(Int32Ty, NumLPads);
10146 const Constant *C = ConstantInt::get(Int32Ty, LoopSize);
16630 Lo, Builder.CreateShl(Hi, ConstantInt::get(ValTy, 32)), "val64");
lib/Target/Hexagon/HexagonCommonGEP.cpp 1109 IdxList[IdxC++] = ConstantInt::get(Int32Ty, 0);
lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp 1456 Value *S = IRB.CreateLShr(PN, ConstantInt::get(PN->getType(), IterCount));
2214 Value *Thr = ConstantInt::get(Ty, Threshold);
lib/Target/Mips/MipsConstantIslandPass.cpp 1658 const Constant *C = ConstantInt::get(Int32Ty, V);
lib/Target/NVPTX/NVVMReflect.cpp 172 Call->replaceAllUsesWith(ConstantInt::get(Call->getType(), ReflectVal));
lib/Target/XCore/XCoreISelLowering.cpp 300 Constant *Idx = ConstantInt::get(Ty, Offset);
lib/Transforms/Coroutines/CoroSplit.cpp 799 auto *SizeConstant = ConstantInt::get(SizeIntrin->getType(), Size);
lib/Transforms/IPO/ArgumentPromotion.cpp 292 Ops.push_back(ConstantInt::get(IdxTy, II));
lib/Transforms/IPO/GlobalOpt.cpp 1315 ConstantInt::get(IntPtrTy, TypeSize),
1335 Constant *ConstantZero = ConstantInt::get(CI->getArgOperand(0)->getType(), 0);
1523 if (NElems == ConstantInt::get(CI->getArgOperand(0)->getType(), 1))
1541 Value *AllocSize = ConstantInt::get(IntPtrTy, TypeSize);
1542 Value *NumElements = ConstantInt::get(IntPtrTy, AT->getNumElements());
lib/Transforms/IPO/LowerTypeTests.cpp 976 ConstantInt::get(isa<IntegerType>(Ty) ? Ty : Int64Ty, Const);
lib/Transforms/InstCombine/InstCombineAddSub.cpp 941 return BinaryOperator::CreateAnd(NotX, ConstantInt::get(Ty, 1));
1249 Constant *ShAmt = ConstantInt::get(Ty, ExtendAmt);
1275 auto *Shl = BinaryOperator::CreateShl(LHS, ConstantInt::get(Ty, 1));
1726 Builder.CreateAdd(Op0, ConstantInt::get(I.getType(), 1)), X);
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp 71 return ConstantInt::get(CmpInst::makeCmpResultType(LHS->getType()), 0);
73 return ConstantInt::get(CmpInst::makeCmpResultType(LHS->getType()), 1);
300 Z = ConstantInt::get(X->getType(), 0);
543 return ConstantInt::get(LHS->getType(), !IsAnd);
565 return ConstantInt::get(LHS->getType(), !IsAnd);
737 return ConstantInt::get(LHS->getType(), !IsAnd);
852 return Builder.CreateICmp(NewPred, Add, ConstantInt::get(X->getType(), 1));
1039 return Builder.CreateICmpEQ(CtPop, ConstantInt::get(CtPop->getType(), 1));
1047 return Builder.CreateICmpNE(CtPop, ConstantInt::get(CtPop->getType(), 1));
1758 Value *IsZero = Builder.CreateICmpEQ(X, ConstantInt::get(I.getType(), 0));
lib/Transforms/InstCombine/InstCombineAtomicRMW.cpp 141 RMWI.setOperand(1, ConstantInt::get(RMWI.getType(), 0));
lib/Transforms/InstCombine/InstCombineCalls.cpp 272 StoreInst *S = Builder.CreateStore(ConstantInt::get(ITy, Fill), Dest,
531 ShiftVecAmts.push_back(ConstantInt::get(SVT, Idx));
731 Constant *Args[] = {ConstantInt::get(IntTy64, Val),
893 Constant *Args[] = {ConstantInt::get(IntTy64, Val.getZExtValue()),
902 Constant *CILength = ConstantInt::get(IntTy8, Length, false);
903 Constant *CIIndex = ConstantInt::get(IntTy8, Index, false);
1227 auto *C = ConstantInt::get(Op0->getType(), DefiniteZeros);
1897 Value *CV = ConstantInt::get(X->getType(), C);
1953 Constant *WidthC = ConstantInt::get(Ty, BitWidth);
2422 return replaceInstUsesWith(CI, ConstantInt::get(II->getType(), 0));
2429 return replaceInstUsesWith(CI, ConstantInt::get(II->getType(), Result));
2445 return replaceInstUsesWith(CI, ConstantInt::get(II->getType(), 0));
2450 return replaceInstUsesWith(CI, ConstantInt::get(II->getType(), Result));
3369 return replaceInstUsesWith(CI, ConstantInt::get(II->getType(), Exp));
3402 return replaceInstUsesWith(*II, ConstantInt::get(II->getType(), false));
3410 return replaceInstUsesWith(*II, ConstantInt::get(II->getType(), true));
3413 return replaceInstUsesWith(*II, ConstantInt::get(II->getType(), false));
3433 II->setArgOperand(1, ConstantInt::get(Src1->getType(),
3446 { Src0, ConstantInt::get(Src1->getType(), Mask & FullMask) }
3470 return replaceInstUsesWith(*II, ConstantInt::get(II->getType(), Result));
3986 II->setOperand(2, ConstantInt::get(OpIntTy, GCR.getBasePtrIndex()));
lib/Transforms/InstCombine/InstCombineCasts.cpp 35 return ConstantInt::get(Val->getType(), 0);
131 Amt = ConstantInt::get(AI.getArraySize()->getType(), Scale);
137 Value *Off = ConstantInt::get(AI.getArraySize()->getType(),
731 Value *And = Builder.CreateAnd(Src, ConstantInt::get(SrcTy, 1));
802 return BinaryOperator::CreateAShr(A, ConstantInt::get(CI.getType(),
861 Value *Sh = ConstantInt::get(In->getType(),
868 Constant *One = ConstantInt::get(In->getType(), 1);
897 Constant *Res = ConstantInt::get(CI.getType(), isNE);
906 In = Builder.CreateLShr(In, ConstantInt::get(In->getType(), ShAmt),
911 Constant *One = ConstantInt::get(In->getType(), 1);
1236 Value *Sh = ConstantInt::get(Op0->getType(),
1274 ConstantInt::get(In->getType(), ShiftAmt));
1288 ConstantInt::get(In->getType(), ShiftAmt));
1291 In = Builder.CreateAShr(In, ConstantInt::get(In->getType(),
1397 Value *ShAmt = ConstantInt::get(DestTy, DestBitSize-SrcBitSize);
1409 Constant *ShAmt = ConstantInt::get(DestTy, DestBitSize - SrcBitSize);
1438 Constant *ShAmtV = ConstantInt::get(CI.getType(), ShAmt);
1947 Constant *Piece = ConstantExpr::getLShr(C, ConstantInt::get(C->getType(),
lib/Transforms/InstCombine/InstCombineCompares.cpp 327 Value *FirstTrueIdx = ConstantInt::get(Idx->getType(), FirstTrueElement);
335 Value *SecondTrueIdx = ConstantInt::get(Idx->getType(), SecondTrueElement);
347 Value *FirstFalseIdx = ConstantInt::get(Idx->getType(), FirstFalseElement);
355 Value *SecondFalseIdx = ConstantInt::get(Idx->getType(),SecondFalseElement);
367 Value *Offs = ConstantInt::get(Idx->getType(), -FirstTrueElement);
371 Value *End = ConstantInt::get(Idx->getType(),
381 Value *Offs = ConstantInt::get(Idx->getType(), -FirstFalseElement);
385 Value *End = ConstantInt::get(Idx->getType(),
406 V = Builder.CreateLShr(ConstantInt::get(Ty, MagicBitvector), V);
407 V = Builder.CreateAnd(ConstantInt::get(Ty, 1), V);
408 return new ICmpInst(ICmpInst::ICMP_NE, V, ConstantInt::get(Ty, 0));
512 Constant *OffsetVal = ConstantInt::get(IntPtrTy, NewOffs);
998 ConstantInt::get(I.getType(), ICmpInst::isTrueWhenEqual(Cond)));
1098 ConstantInt::get(CmpTy, !CmpInst::isTrueWhenEqual(ICI.getPredicate())));
1180 ConstantInt::get(A->getType(), AP2.logBase2()));
1196 return getICmp(I.ICMP_UGE, A, ConstantInt::get(A->getType(), Shift));
1197 return getICmp(I.ICMP_EQ, A, ConstantInt::get(A->getType(), Shift));
1199 return getICmp(I.ICMP_EQ, A, ConstantInt::get(A->getType(), Shift));
1205 auto *TorF = ConstantInt::get(I.getType(), I.getPredicate() == I.ICMP_NE);
1231 ConstantInt::get(A->getType(), AP2.getBitWidth() - AP2TrailingZeros));
1240 return getICmp(I.ICMP_EQ, A, ConstantInt::get(A->getType(), Shift));
1244 auto *TorF = ConstantInt::get(I.getType(), I.getPredicate() == I.ICMP_NE);
1481 return replaceInstUsesWith(Cmp, ConstantInt::get(Cmp.getType(), *Imp));
1538 ConstantInt::get(V->getType(), 1));
1887 ConstantInt::get(V->getType(), 1));
1993 return new ICmpInst(Pred, Y, ConstantInt::get(ShiftType, CLog2));
1995 Constant *BitWidthMinusOne = ConstantInt::get(ShiftType, TypeBits - 1);
2016 return new ICmpInst(Pred, Y, ConstantInt::get(ShiftType, C.logBase2()));
2505 ConstantInt::get(Y->getType(), 0));
2752 return new ICmpInst(Pred, X, ConstantInt::get(X->getType(), 1));
4291 ? new ICmpInst(ICmpInst::ICMP_ULT, CtPop, ConstantInt::get(Ty, 2))
4292 : new ICmpInst(ICmpInst::ICMP_UGT, CtPop, ConstantInt::get(Ty, 1));
5003 auto *CmpC = ConstantInt::get(XTy, ValToCheck.countTrailingZeros());
5009 auto *CmpC = ConstantInt::get(XTy, ValToCheck.countTrailingZeros());
5024 return new ICmpInst(NewPred, X, ConstantInt::get(X->getType(), CmpVal));
5198 Constant *OneOrNegOne = ConstantInt::get(Type, WillIncrement ? 1 : -1, true);
lib/Transforms/InstCombine/InstCombineInternal.h 172 return ConstantExpr::getAdd(C, ConstantInt::get(C->getType(), 1));
177 return ConstantExpr::getSub(C, ConstantInt::get(C->getType(), 1));
258 SafeC = ConstantInt::get(EltTy, 1);
lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp 359 AI.setOperand(0, ConstantInt::get(AI.getArraySize()->getType(), 1));
914 ConstantInt::get(GEPI->getOperand(Idx)->getType(), 0));
lib/Transforms/InstCombine/InstCombineMulDivRem.cpp 105 return ConstantInt::get(Ty, IVal->logBase2());
121 Elts.push_back(ConstantInt::get(Ty->getScalarType(), IVal->logBase2()));
360 return SelectInst::Create(X, Op1, ConstantInt::get(I.getType(), 0));
362 return SelectInst::Create(X, Op0, ConstantInt::get(I.getType(), 0));
771 Value *Cmp = Builder.CreateICmpULT(Inc, ConstantInt::get(Ty, 3));
772 return SelectInst::Create(Cmp, Op1, ConstantInt::get(Ty, 0));
794 return BinaryOperator::CreateNSWShl(ConstantInt::get(Ty, 1), Y);
796 return BinaryOperator::CreateNUWShl(ConstantInt::get(Ty, 1), Y);
803 I.setOperand(0, ConstantInt::get(Ty, 1));
1076 Value *ShAmt = ConstantInt::get(Op1->getType(), Op1C->exactLogBase2());
lib/Transforms/InstCombine/InstCombinePHI.cpp 1087 Res = Builder.CreateLShr(Res, ConstantInt::get(InVal->getType(),
lib/Transforms/InstCombine/InstCombineSelect.cpp 526 Constant *One = ConstantInt::get(SelType, 1);
1815 Mask.push_back(ConstantInt::get(Int32Ty, i));
1818 Mask.push_back(ConstantInt::get(Int32Ty, i + NumElts));
lib/Transforms/InstCombine/InstCombineShifts.cpp 220 SumOfShAmts, ConstantInt::get(SumOfShAmts->getType()->getScalarType(),
245 ShAmtsDiff, ConstantInt::get(ShAmtsDiff->getType()->getScalarType(),
248 ConstantExpr::getSub(ConstantInt::get(ShAmtsDiff->getType(),
482 InnerShift->setOperand(1, ConstantInt::get(ShType, ShAmt));
892 Constant *ShiftDiff = ConstantInt::get(Ty, ShAmt - ShrAmt);
900 Constant *ShiftDiff = ConstantInt::get(Ty, ShrAmt - ShAmt);
913 return BinaryOperator::CreateShl(X, ConstantInt::get(Ty, AmtSum));
953 auto *NewC = ConstantExpr::getShl(ConstantInt::get(Ty, 1), C1);
1003 Constant *ShiftDiff = ConstantInt::get(Ty, ShAmt - ShlAmt);
1017 Constant *ShiftDiff = ConstantInt::get(Ty, ShlAmt - ShAmt);
1074 return BinaryOperator::CreateLShr(X, ConstantInt::get(Ty, AmtSum));
1199 Constant *ShiftDiff = ConstantInt::get(Ty, ShAmt - ShlAmt);
1206 Constant *ShiftDiff = ConstantInt::get(Ty, ShlAmt - ShAmt);
1219 return BinaryOperator::CreateAShr(X, ConstantInt::get(Ty, AmtSum));
1227 Value *NewSh = Builder.CreateAShr(X, ConstantInt::get(SrcTy, ShAmt));
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp 680 ConstantInt::get(I->getType(), InputBit-ResultBit));
683 ConstantInt::get(I->getType(), ResultBit-InputBit));
948 Constant *Amt = ConstantInt::get(VarX->getType(), ShlAmt - ShrAmt);
954 Constant *Amt = ConstantInt::get(VarX->getType(), ShrAmt - ShlAmt);
lib/Transforms/InstCombine/InstCombineVectorOps.cpp 426 ConstantInt::get(Int32Ty,
801 Constant *Zero = ConstantInt::get(Int32Ty, 0);
876 Constant *NewMaskEltC = ConstantInt::get(I32Ty, IdxC);
969 NewMaskElts[I] = ConstantInt::get(Int32Ty, InsEltIndex + NumElts);
1307 MaskValues.push_back(ConstantInt::get(I32Ty, Mask[i]));
1387 ConstantInt::get(I32Ty, Index), "", I);
1451 Constant *ShlOne = ConstantExpr::getShl(ConstantInt::get(Ty, 1), C);
1878 NewMask[i] = ConstantInt::get(I32Ty, Mask[i]);
1881 NewMask[i] = ConstantInt::get(I32Ty, Mask[i] - (WideElts - NarrowElts));
1915 Elts.push_back(ConstantInt::get(Int32Ty, Mask[i]));
2031 ShuffleMask[I] = ConstantInt::get(Int32Ty, Idx);
2048 NewBC, ConstantInt::get(Int32Ty, BegIdx), SVI.getName() + ".extract");
2230 Elts.push_back(ConstantInt::get(Int32Ty, newMask[i]));
lib/Transforms/InstCombine/InstructionCombining.cpp 531 RHS = ConstantExpr::getShl(ConstantInt::get(Op->getType(), 1), C);
1116 NewIndices.push_back(ConstantInt::get(IndexTy, FirstIdx));
1138 NewIndices.push_back(ConstantInt::get(IndexTy,Offset/EltSize));
1287 Op = ConstantInt::get(BO->getType(), Amt - logScale);
lib/Transforms/Instrumentation/AddressSanitizer.cpp 1293 ShadowBase = ConstantInt::get(IntptrTy, Mapping.Offset);
1518 auto Zero = ConstantInt::get(IntptrTy, 0);
1540 IRB.CreateGEP(VTy, Addr, {Zero, ConstantInt::get(IntptrTy, Idx)});
1644 IRB.CreateAnd(AddrLong, ConstantInt::get(IntptrTy, Granularity - 1));
1648 LastAccessedByte, ConstantInt::get(IntptrTy, TypeSize / 8 - 1));
1685 IRB.CreateICmpEQ(Tag, ConstantInt::get(IntptrTy, kMyriadDDRTag));
1742 Value *Size = ConstantInt::get(IntptrTy, TypeSize / 8);
1753 IRB.CreateAdd(AddrLong, ConstantInt::get(IntptrTy, TypeSize / 8 - 1)),
2094 ConstantInt::get(IntptrTy, 0), kAsanGlobalsRegisteredFlagName);
2166 ConstantInt::get(IntptrTy, 0), kAsanGlobalsRegisteredFlagName);
2198 ConstantInt::get(IntptrTy, N)});
2205 ConstantInt::get(IntptrTy, N)});
2330 SourceLoc = ConstantInt::get(IntptrTy, 0);
2348 ODRIndicator = ConstantExpr::getIntToPtr(ConstantInt::get(IntptrTy, -1),
2369 ConstantInt::get(IntptrTy, SizeInBytes),
2370 ConstantInt::get(IntptrTy, SizeInBytes + RightRedzoneSize),
2373 ConstantInt::get(IntptrTy, MD.IsDynInit), SourceLoc,
2833 Value *Ptr = IRB.CreateAdd(ShadowBase, ConstantInt::get(IntptrTy, i));
2870 {IRB.CreateAdd(ShadowBase, ConstantInt::get(IntptrTy, i)),
2871 ConstantInt::get(IntptrTy, j - i)});
3096 ConstantInt::get(IntptrTy, LocalStackSize));
3100 ConstantInt::get(IntptrTy, 0));
3119 FakeStack = ConstantInt::get(IntptrTy, 0);
3131 IRB.CreateAdd(LocalStackBase, ConstantInt::get(IntptrTy, Desc.Offset)),
3139 IRB.CreateStore(ConstantInt::get(IntptrTy, kCurrentStackFrameMagic),
3144 ConstantInt::get(IntptrTy, ASan.LongSize / 8)),
3154 ConstantInt::get(IntptrTy, 2 * ASan.LongSize / 8)),
3190 IRBRet.CreateStore(ConstantInt::get(IntptrTy, kRetiredStackFrameMagic),
3218 ConstantInt::get(IntptrTy, ClassSize - ASan.LongSize / 8));
3228 {FakeStack, ConstantInt::get(IntptrTy, LocalStackSize)});
3246 Value *SizeArg = ConstantInt::get(IntptrTy, Size);
3267 Value *AllocaRzSize = ConstantInt::get(IntptrTy, kAllocaRzSize);
3268 Value *AllocaRzMask = ConstantInt::get(IntptrTy, AllocaRedzoneMask);
3278 ConstantInt::get(IntptrTy, ElementSize));
3294 ConstantInt::get(IntptrTy, Align + kAllocaRzSize), PartialPadding);
3304 ConstantInt::get(IntptrTy, Align));
lib/Transforms/Instrumentation/BoundsChecking.cpp 76 Value *NeededSizeVal = ConstantInt::get(IntTy, NeededSize);
101 Value *Cmp1 = IRB.CreateICmpSLT(Offset, ConstantInt::get(IntTy, 0));
lib/Transforms/Instrumentation/DataFlowSanitizer.cpp 1496 ConstantInt::get(I.getLength()->getType(), DFSF.DFS.ShadowWidth / 8));
lib/Transforms/Instrumentation/GCOVProfiling.cpp 1224 Builder.CreateRet(ConstantInt::get(RetTy, 0));
lib/Transforms/Instrumentation/HWAddressSanitizer.cpp 597 return ConstantExpr::getIntToPtr(ConstantInt::get(IntptrTy, Mapping.Offset),
624 {shadowBase(), Ptr, ConstantInt::get(Int32Ty, AccessInfo)});
640 ConstantInt::get(PtrTag->getType(), matchAllTag));
650 IRB.CreateICmpUGT(MemTag, ConstantInt::get(Int8Ty, 15));
658 PtrLowBits, ConstantInt::get(Int8Ty, (1 << AccessSizeIndex) - 1));
755 ConstantInt::get(IntptrTy, TypeSize / 8)});
784 ConstantInt::get(IntptrTy, AlignedSize)});
798 ConstantInt::get(Int8Ty, Size % Mapping.getObjectAlignment()),
859 ConstantInt::get(IntptrTy, RetagMask(AllocaNo)));
864 return ConstantInt::get(IntptrTy, 0);
867 return IRB.CreateXor(StackTag, ConstantInt::get(IntptrTy, 0xFFU));
878 ConstantInt::get(IntptrTy, (1ULL << kPointerTagShift) - 1));
894 ConstantInt::get(PtrLong->getType(), 0xFFULL << kPointerTagShift));
898 ConstantInt::get(PtrLong->getType(), ~(0xFFULL << kPointerTagShift)));
942 IRB.CreateICmpEQ(ThreadLong, ConstantInt::get(IntptrTy, 0));
1003 ConstantInt::get(IntptrTy, (uint64_t)-1));
1005 IRB.CreateAdd(ThreadLong, ConstantInt::get(IntptrTy, 8)), WrapMask);
1015 ConstantInt::get(IntptrTy, (1ULL << kShadowBaseAlignment) - 1)),
1016 ConstantInt::get(IntptrTy, 1), "hwasan.shadow");
1298 ConstantInt::get(Int64Ty, DescriptorPos)),
1301 auto *SizeAndTag = ConstantInt::get(Int32Ty, Size | (uint32_t(Tag) << 24));
1313 ConstantInt::get(Int64Ty, uint64_t(Tag) << kPointerTagShift)),
1385 {ConstantInt::get(Int32Ty, 8), // n_namesz
1386 ConstantInt::get(Int32Ty, 8), // n_descsz
1387 ConstantInt::get(Int32Ty, ELF::NT_LLVM_HWASAN_GLOBALS), // n_type
lib/Transforms/Instrumentation/InstrProfiling.cpp 269 Value *InitVal = ConstantInt::get(Cand.first->getType(), 0);
lib/Transforms/Instrumentation/MemorySanitizer.cpp 1392 IRB.CreateAnd(OffsetLong, ConstantInt::get(MS.IntptrTy, ~AndMask));
1397 IRB.CreateXor(OffsetLong, ConstantInt::get(MS.IntptrTy, XorMask));
1416 ConstantInt::get(MS.IntptrTy, ShadowBase));
1426 ConstantInt::get(MS.IntptrTy, OriginBase));
1430 IRB.CreateAnd(OriginLong, ConstantInt::get(MS.IntptrTy, ~Mask));
1451 Value *SizeVal = ConstantInt::get(MS.IntptrTy, Size);
1482 Base = IRB.CreateAdd(Base, ConstantInt::get(MS.IntptrTy, ArgOffset));
1494 Base = IRB.CreateAdd(Base, ConstantInt::get(MS.IntptrTy, ArgOffset));
2150 Elements.push_back(ConstantInt::get(EltTy, 1));
2160 ShadowMul = ConstantInt::get(Ty, 1);
3487 Value *Len = ConstantInt::get(MS.IntptrTy, TypeSize);
3645 Value *SizeVal = ConstantInt::get(MS.IntptrTy, Size);
3890 Base = IRB.CreateAdd(Base, ConstantInt::get(MS.IntptrTy, ArgOffset));
3901 Base = IRB.CreateAdd(Base, ConstantInt::get(MS.IntptrTy, ArgOffset));
3945 IRB.CreateAdd(ConstantInt::get(MS.IntptrTy, AMD64FpEndOffset),
3965 ConstantInt::get(MS.IntptrTy, 16)),
3982 ConstantInt::get(MS.IntptrTy, 8)),
4054 Base = IRB.CreateAdd(Base, ConstantInt::get(MS.IntptrTy, ArgOffset));
4088 Value *CopySize = IRB.CreateAdd(ConstantInt::get(MS.IntptrTy, 0),
4223 Base = IRB.CreateAdd(Base, ConstantInt::get(MS.IntptrTy, ArgOffset));
4257 ConstantInt::get(MS.IntptrTy, offset)),
4267 ConstantInt::get(MS.IntptrTy, offset)),
4283 IRB.CreateAdd(ConstantInt::get(MS.IntptrTy, AArch64VAEndOffset),
4289 Value *GrArgSize = ConstantInt::get(MS.IntptrTy, kAArch64GrArgSize);
4290 Value *VrArgSize = ConstantInt::get(MS.IntptrTy, kAArch64VrArgSize);
4490 Base = IRB.CreateAdd(Base, ConstantInt::get(MS.IntptrTy, ArgOffset));
4525 Value *CopySize = IRB.CreateAdd(ConstantInt::get(MS.IntptrTy, 0),
lib/Transforms/Instrumentation/PoisonChecking.cpp 158 ConstantInt::get(LHS->getType(), 0));
167 ConstantInt::get(LHS->getType(), 0));
177 ConstantInt::get(RHS->getType(),
203 ConstantInt::get(Idx->getType(), NumElts));
215 ConstantInt::get(Idx->getType(), NumElts));
lib/Transforms/Instrumentation/SanitizerCoverage.cpp 322 ConstantInt::get(IntptrTy, sizeof(uint64_t)));
677 ConstantInt::get(IntptrTy, 1), IntptrPtrTy));
682 ConstantInt::get(IntptrTy, 0), IntptrPtrTy));
754 Initializers.push_back(ConstantInt::get(Int64Ty, SI->getNumCases()));
756 ConstantInt::get(Int64Ty, Cond->getType()->getScalarSizeInBits()));
873 ConstantInt::get(IntptrTy, Idx * 4)),
881 {ConstantInt::get(IntptrTy, 0), ConstantInt::get(IntptrTy, Idx)});
881 {ConstantInt::get(IntptrTy, 0), ConstantInt::get(IntptrTy, Idx)});
883 auto Inc = IRB.CreateAdd(Load, ConstantInt::get(Int8Ty, 1));
lib/Transforms/Scalar/BDCE.cpp 129 U.set(ConstantInt::get(U->getType(), 0));
lib/Transforms/Scalar/CorrelatedValuePropagation.cpp 608 Constant *Zero = ConstantInt::get(SDI->getType(), 0);
703 Constant *Zero = ConstantInt::get(SDI->getType(), 0);
725 Constant *Zero = ConstantInt::get(Base->getType(), 0);
lib/Transforms/Scalar/DeadStoreElimination.cpp 941 ConstantInt::get(EarlierWriteLength->getType(), NewLength);
948 ConstantInt::get(EarlierWriteLength->getType(), OffsetMoved)};
lib/Transforms/Scalar/GVN.cpp 1901 Constant *NotVal = ConstantInt::get(Cmp->getType(), isKnownFalse);
lib/Transforms/Scalar/IndVarSimplify.cpp 2741 auto *NewCond = ConstantInt::get(OldCond->getType(),
lib/Transforms/Scalar/JumpThreading.cpp 842 Constant *ResC = ConstantInt::get(CmpType, Res);
lib/Transforms/Scalar/LoopDataPrefetch.cpp 320 ConstantInt::get(I32, MemI->mayReadFromMemory() ? 0 : 1),
321 ConstantInt::get(I32, 3), ConstantInt::get(I32, 1)});
321 ConstantInt::get(I32, 3), ConstantInt::get(I32, 1)});
lib/Transforms/Scalar/LoopIdiomRecognize.cpp 1709 Builder.CreateAShr(InitX, ConstantInt::get(InitX->getType(), 1));
1712 Builder.CreateLShr(InitX, ConstantInt::get(InitX->getType(), 1));
1715 Builder.CreateShl(InitX, ConstantInt::get(InitX->getType(), 1));
1722 ConstantInt::get(FFS->getType(),
1729 ConstantInt::get(CountPrev->getType(), 1));
1759 Builder.CreateSub(TcPhi, ConstantInt::get(Ty, 1),
1769 LbCond->setOperand(1, ConstantInt::get(Ty, 0));
1825 Value *Opnd1 = ConstantInt::get(PopCntZext->getType(), 0);
1866 Builder.CreateSub(TcPhi, ConstantInt::get(Ty, 1),
1876 LbCond->setOperand(1, ConstantInt::get(Ty, 0));
2657 CmpCall, ConstantInt::get(CmpCall->getType(), 0),
lib/Transforms/Scalar/LoopStrengthReduce.cpp 4191 const SCEV *NegImmS = SE.getSCEV(ConstantInt::get(IntTy, -(uint64_t)Imm));
4207 ConstantInt::get(IntTy, -(uint64_t)Offset))))
5236 ICmpScaledV = ConstantInt::get(IntTy, -(uint64_t)Offset);
5239 ICmpScaledV = ConstantInt::get(IntTy, Offset);
lib/Transforms/Scalar/NaryReassociate.cpp 427 RHS, ConstantInt::get(IntPtrTy, IndexedSize / ElementSize));
lib/Transforms/Scalar/Reassociate.cpp 976 Constant *MulCst = ConstantInt::get(Shl->getType(), 1);
1461 ConstantInt::get(Ty, NumFound) : ConstantFP::get(Ty, NumFound);
lib/Transforms/Scalar/SROA.cpp 2800 Constant *Size = ConstantInt::get(SizeTy, NewEndOffset - NewBeginOffset);
2936 II.setLength(ConstantInt::get(II.getLength()->getType(),
2972 Constant *Size = ConstantInt::get(SizeTy, NewEndOffset - NewBeginOffset);
lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp 848 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2()));
863 Value *Offset = ConstantInt::get(IntPtrTy, AccumulativeByteOffset);
909 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2()));
922 ResultPtr, ConstantInt::get(IntPtrTy, AccumulativeByteOffset));
1074 ConstantInt::get(IntPtrTy, Index, true),
1099 ConstantInt::get(IntPtrTy, AccumulativeByteOffset, true), "uglygep",
lib/Transforms/Utils/BuildLibCalls.cpp 865 {castToCStr(Ptr, B), ConstantInt::get(I32Ty, C)}, B, TLI);
lib/Transforms/Utils/BypassSlowDivision.cpp 417 Long.Quotient = ConstantInt::get(getSlowType(), 0);
lib/Transforms/Utils/LoopSimplify.cpp 528 BI->setCondition(ConstantInt::get(Cond->getType(),
lib/Transforms/Utils/LoopUnrollRuntime.cpp 158 B.CreateICmpULT(BECount, ConstantInt::get(BECount->getType(), Count - 1));
361 Builder.CreateSub(NewIdx, ConstantInt::get(NewIdx->getType(), 1),
737 ConstantInt::get(BECount->getType(),
740 ConstantInt::get(ModValTmp->getType(), 1));
744 ConstantInt::get(BECount->getType(), Count),
749 ConstantInt::get(BECount->getType(),
901 B2.CreateSub(NewIdx, ConstantInt::get(NewIdx->getType(), 1),
lib/Transforms/Utils/LowerMemIntrinsics.cpp 71 LoopIndex->addIncoming(ConstantInt::get(TypeOfCopyLen, 0U), PreLoopBB);
81 LoopBuilder.CreateAdd(LoopIndex, ConstantInt::get(TypeOfCopyLen, 1U));
85 Constant *LoopEndCI = ConstantInt::get(TypeOfCopyLen, LoopEndCount);
116 OpTy, CastedSrc, ConstantInt::get(TypeOfCopyLen, GepIndex));
125 OpTy, CastedDst, ConstantInt::get(TypeOfCopyLen, GepIndex));
181 LoopIndex->addIncoming(ConstantInt::get(CopyLenType, 0U), PreLoopBB);
189 LoopBuilder.CreateAdd(LoopIndex, ConstantInt::get(CopyLenType, 1U));
243 ResBuilder.CreateAdd(ResidualIndex, ConstantInt::get(CopyLenType, 1U));
325 ConstantInt::get(TypeOfCopyLen, 0), "compare_n_to_0");
333 LoopPhi, ConstantInt::get(TypeOfCopyLen, 1), "index_ptr");
340 LoopBuilder.CreateICmpEQ(IndexPtr, ConstantInt::get(TypeOfCopyLen, 0)),
358 FwdCopyPhi, ConstantInt::get(TypeOfCopyLen, 1), "index_increment");
362 FwdCopyPhi->addIncoming(ConstantInt::get(TypeOfCopyLen, 0), CopyForwardBB);
387 Builder.CreateICmpEQ(ConstantInt::get(TypeOfCopyLen, 0), CopyLen), NewBB,
393 LoopIndex->addIncoming(ConstantInt::get(TypeOfCopyLen, 0), OrigBB);
401 LoopBuilder.CreateAdd(LoopIndex, ConstantInt::get(TypeOfCopyLen, 1));
lib/Transforms/Utils/SimplifyCFG.cpp 4392 ConstantInt::get(Offset->getType(), ContiguousCases->size());
5281 RangeCmp, ConstantInt::get(RangeCmp->getType(), 1), "inverted.cmp",
lib/Transforms/Utils/SimplifyIndVar.cpp 346 SelectInst::Create(ICmp, ConstantInt::get(T, 0), N, "iv.rem", Rem);
lib/Transforms/Utils/SimplifyLibCalls.cpp 138 return ConstantInt::get(CI->getType(), Result);
415 return ConstantInt::get(CI->getType(), 0);
423 return ConstantInt::get(CI->getType(), Str1.compare(Str2));
472 return ConstantInt::get(CI->getType(), 0);
484 return ConstantInt::get(CI->getType(), 0);
497 return ConstantInt::get(CI->getType(), SubStr1.compare(SubStr2));
586 Value *LenV = ConstantInt::get(DL.getIntPtrType(PT), Len);
588 ConstantInt::get(DL.getIntPtrType(PT), Len - 1));
640 CallInst *NewCI = B.CreateMemCpy(Dst, 1, Src, 1, ConstantInt::get(DL.getIntPtrType(PT), Len));
651 return ConstantInt::get(CI->getType(), Len - 1);
704 return B.CreateSub(ConstantInt::get(CI->getType(), NullTermIdx),
722 ConstantInt::get(CI->getType(), LenTrue - 1),
723 ConstantInt::get(CI->getType(), LenFalse - 1));
806 return ConstantInt::get(CI->getType(), Pos);
826 return ConstantInt::get(CI->getType(), Pos);
1057 return ConstantInt::get(CI->getType(), Ret);
2207 V = B.CreateAdd(V, ConstantInt::get(V->getType(), 1));
2221 V = B.CreateSub(ConstantInt::get(V->getType(), ArgType->getIntegerBitWidth()),
2253 ConstantInt::get(CI->getType(), 0x7F));
2333 return CI->use_empty() ? (Value *)CI : ConstantInt::get(CI->getType(), 0);
2432 return ConstantInt::get(CI->getType(), FormatStr.size());
2452 return ConstantInt::get(CI->getType(), 1);
2465 B.CreateAdd(Len, ConstantInt::get(Len->getType(), 1), "leninc");
2530 return ConstantInt::get(CI->getType(), FormatStr.size());
2540 return ConstantInt::get(CI->getType(), FormatStr.size());
2551 return ConstantInt::get(CI->getType(), 1);
2564 return ConstantInt::get(CI->getType(), 1);
2574 return ConstantInt::get(CI->getType(), Str.size());
2579 ConstantInt::get(CI->getType(), Str.size() + 1));
2582 return ConstantInt::get(CI->getType(), Str.size());
2693 return ConstantInt::get(CI->getType(), 0);
2701 return NewCI ? ConstantInt::get(CI->getType(), 1) : nullptr;
3295 Value *LenV = ConstantInt::get(SizeTTy, Len);
3300 return B.CreateGEP(B.getInt8Ty(), Dst, ConstantInt::get(SizeTTy, Len - 1));
lib/Transforms/Utils/VNCoercion.cpp 121 StoredVal, ConstantInt::get(StoredVal->getType(), ShiftAmt));
375 ConstantInt::get(SrcVal->getType(), ShiftAmt));
485 Val, ConstantInt::get(Val->getType(), NumBytesSet * 8));
492 T *ShVal = Helper.CreateShl(Val, ConstantInt::get(Val->getType(), 1 * 8));
lib/Transforms/Vectorize/LoopVectorize.cpp 1907 Indices.push_back(ConstantInt::get(STy, StartIdx + i));
1996 V = ConstantInt::get(V->getType(), 1);
2609 Constant *Step = ConstantInt::get(Ty, VF * UF);
2620 TC = Builder.CreateAdd(TC, ConstantInt::get(Ty, VF * UF - 1), "n.rnd.up");
2638 auto *IsZero = Builder.CreateICmpEQ(R, ConstantInt::get(R->getType(), 0));
2695 P, Count, ConstantInt::get(Count->getType(), VF * UF),
2963 Value *StartIdx = ConstantInt::get(IdxTy, 0);
2985 Constant *Step = ConstantInt::get(IdxTy, VF * UF);
3141 CountRoundDown, ConstantInt::get(CountRoundDown->getType(), 1));
4031 Constant *Idx = ConstantInt::get(PtrInd->getType(), Lane + Part * VF);
6576 Constant *C = ConstantInt::get(Ty, StartIdx);
lib/Transforms/Vectorize/VPlan.cpp 378 auto *TCMO = Builder.CreateSub(TC, ConstantInt::get(TC->getType(), 1),
tools/bugpoint/ExtractFunction.cpp 235 Constant *Elts[] = {ConstantInt::get(Int32Ty, TorList[i].second),
tools/clang/lib/CodeGen/CGBuiltin.cpp 303 ConstantInt::get(IntTy, 1),
305 return CGF.Builder.CreateAdd(Result, ConstantInt::get(IntTy, 1));
316 ConstantInt::get(IntTy, 1),
318 return CGF.Builder.CreateSub(Result, ConstantInt::get(IntTy, 1));
433 Value *ShiftCst = llvm::ConstantInt::get(IntTy, Width);
761 BitPos, llvm::ConstantInt::get(BitPos->getType(), 3), "bittest.byteidx");
925 Value *ResOne = llvm::ConstantInt::get(ResultType, 1);
948 Value *ArgTypeLastIndex = llvm::ConstantInt::get(IndexType, ArgWidth - 1);
1910 Value *Result = Builder.CreateSub(Ctlz, llvm::ConstantInt::get(ArgType, 1));
1961 llvm::ConstantInt::get(ArgType, 1));
1981 Value *Result = Builder.CreateAnd(Tmp, llvm::ConstantInt::get(ArgType, 1));
2112 return RValue::get(ConstantInt::get(ResultType, 0));
2117 return RValue::get(ConstantInt::get(ResultType, 0));
2261 Value *One = ConstantInt::get(IntTy, 1);
2262 Value *NegativeOne = ConstantInt::get(IntTy, -1);
4358 return ConstantInt::get(Ty, neg ? -SV : SV);
4382 Shift = ConstantInt::get(VTy->getElementType(), ShiftAmt);
5290 ConstantInt::get(SrcTy, SrcTy->getScalarSizeInBits() / 2);
5692 ConstantInt::get(SrcTy, SrcTy->getScalarSizeInBits() / 2);
6972 llvm::Constant *EightV = ConstantInt::get(Ty, 8);
6990 llvm::Constant *TwentyFourV = ConstantInt::get(Ty, 24);
7169 Value *ShiftCst = llvm::ConstantInt::get(Int128Ty, 64);
9940 Constant *ShiftAmt = ConstantInt::get(Ty, 32);
9947 Constant *Mask = ConstantInt::get(Ty, 0xffffffff);
10057 llvm::Value *Idxs[] = {ConstantInt::get(Int32Ty, 0),
10058 ConstantInt::get(Int32Ty, Index)};
10064 llvm::ConstantInt::get(Int32Ty, Value));
12225 llvm::ConstantInt::get(Int128Ty, 0x3f));
tools/clang/lib/CodeGen/CGClass.cpp 190 return llvm::ConstantInt::get(PtrDiffTy, Offset.getQuantity());
tools/clang/lib/CodeGen/CGDecl.cpp 1712 SizeVal, llvm::ConstantInt::get(SizeVal->getType(), 0),
tools/clang/lib/CodeGen/CGDeclCXX.cpp 694 Builder.CreateStore(llvm::ConstantInt::get(GuardVal->getType(),1), Guard);
tools/clang/lib/CodeGen/CGException.cpp 1638 llvm::ConstantInt::get(CGF.ConvertType(ArgTys[0]), F.isForEHCleanup());
tools/clang/lib/CodeGen/CGExpr.cpp 921 llvm::ConstantInt::get(SizeInBytes->getType(), EltSize);
995 NextVal = llvm::ConstantInt::get(InVal.first->getType(), AmountVal, true);
3542 llvm::ConstantInt::get(Idx->getType(), InterfaceSize.getQuantity());
tools/clang/lib/CodeGen/CGExprCXX.cpp 1000 auto *InitializedSize = llvm::ConstantInt::get(
1155 llvm::ConstantInt::get(NumElements->getType(), InitListElements));
1783 llvm::Value *Size = llvm::ConstantInt::get(ConvertType(SizeType),
1803 llvm::Value *Align = llvm::ConstantInt::get(ConvertType(AlignValType),
tools/clang/lib/CodeGen/CGExprScalar.cpp 465 return llvm::ConstantInt::get(ConvertType(E->getType()), E->getValue());
468 return llvm::ConstantInt::get(ConvertType(E->getType()), E->getValue());
471 return llvm::ConstantInt::get(ConvertType(E->getType()), E->getValue());
487 return llvm::ConstantInt::get(ConvertType(E->getType()),E->getPackLength());
673 return llvm::ConstantInt::get(ConvertType(E->getType()), E->getValue());
1063 llvm::Constant *Zero = llvm::ConstantInt::get(VTy, 0);
1606 llvm::ConstantInt::get(MTy, llvm::NextPowerOf2(LHSElts - 1) - 1);
1762 return llvm::ConstantInt::get(I32Ty, Off+MV);
1770 return llvm::ConstantInt::get(I32Ty, C->getZExtValue());
2321 BinOp.RHS = llvm::ConstantInt::get(InVal->getType(), 1, false);
2332 llvm::ConstantInt::get(InVal->getType(), IsInc ? 1 : -1, true);
2389 llvm::ConstantInt::get(ConvertType(type), 1, true), type);
2431 llvm::Value *amt = llvm::ConstantInt::get(value->getType(), amount, true);
2478 llvm::Value *amt = llvm::ConstantInt::get(value->getType(), amount);
2664 llvm::Value* ElemSize = llvm::ConstantInt::get(ResultType,
2691 Offset = llvm::ConstantInt::get(ResultType, OffsetInt);
2717 Offset = llvm::ConstantInt::get(ResultType, OffsetInt.getQuantity());
3587 return llvm::ConstantInt::get(RHS->getType(), Ty->getBitWidth() - 1);
3639 llvm::Value *One = llvm::ConstantInt::get(BitsShiftedOff->getType(), 1);
3642 llvm::Value *Zero = llvm::ConstantInt::get(BitsShiftedOff->getType(), 0);
4081 return llvm::ConstantInt::get(ResTy, 1);
4629 LocalOffset = llvm::ConstantInt::get(
4634 auto *ElementSize = llvm::ConstantInt::get(
tools/clang/lib/CodeGen/CGNonTrivialStruct.cpp 352 llvm::ConstantInt::get(NumElts->getType(), BaseEltSize);
tools/clang/lib/CodeGen/CGObjC.cpp 210 llvm::ConstantInt::get(CGM.getTypes().ConvertType(ArgQT), NumElements);
1700 llvm::Constant *Count = llvm::ConstantInt::get(NSUIntegerTy, NumItems);
1862 Builder.CreateAdd(index, llvm::ConstantInt::get(NSUIntegerTy, 1));
tools/clang/lib/CodeGen/CGObjCGNU.cpp 3541 llvm::ConstantInt::get(IndexTy, ClassABIVersion > 1 ? 2 : 1), nullptr,
3542 llvm::ConstantInt::get(IndexTy, ClassABIVersion > 1 ? 3 : 2) };
3548 offsetPointerIndexes[2] = llvm::ConstantInt::get(IndexTy, ivarIndex);
tools/clang/lib/CodeGen/CGObjCMac.cpp 4912 return llvm::ConstantInt::get(
6760 llvm::ConstantInt::get(ObjCTypes.IvarOffsetVarTy, Offset));
7067 IvarOffsetValue = llvm::ConstantInt::get(
tools/clang/lib/CodeGen/CGOpenCLRuntime.cpp 105 return llvm::ConstantInt::get(Int32Ty, TypeSize, false);
115 return llvm::ConstantInt::get(Int32Ty, TypeSize, false);
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp 1017 Size, llvm::ConstantInt::get(Size->getType(), /*V=*/1));
5279 CGF.EmitStoreOfScalar(llvm::ConstantInt::get(LLVMFlagsTy, DepKind),
tools/clang/lib/CodeGen/CGVTT.cpp 77 llvm::ConstantInt::get(Int32Ty, 0),
78 llvm::ConstantInt::get(Int32Ty, AddressPoint.VTableIndex),
79 llvm::ConstantInt::get(Int32Ty, AddressPoint.AddressPointIndex),
tools/clang/lib/CodeGen/CodeGenModule.cpp 5557 return llvm::ConstantInt::get(i64, PtrInt);
tools/clang/lib/CodeGen/ItaniumCXXABI.cpp 873 adj = llvm::ConstantInt::get(adj->getType(), offset);
921 adj = llvm::ConstantInt::get(adj->getType(), offset);
1096 llvm::Value *One = llvm::ConstantInt::get(LPtr->getType(), 1);
1130 llvm::Constant *Zero = llvm::ConstantInt::get(Ptr->getType(), 0);
1136 llvm::Constant *One = llvm::ConstantInt::get(Ptr->getType(), 1);
1253 AllocExceptionFn, llvm::ConstantInt::get(SizeTy, TypeSize), "exception");
1413 llvm::Value *OffsetHint = llvm::ConstantInt::get(
3266 llvm::Constant *Two = llvm::ConstantInt::get(PtrDiffTy, 2);
3657 Fields.push_back(llvm::ConstantInt::get(UnsignedIntLTy, Flags));
3662 Fields.push_back(llvm::ConstantInt::get(UnsignedIntLTy, RD->getNumBases()));
3728 Fields.push_back(llvm::ConstantInt::get(OffsetFlagsLTy, OffsetFlags));
3771 Fields.push_back(llvm::ConstantInt::get(UnsignedIntLTy, Flags));
3798 Fields.push_back(llvm::ConstantInt::get(UnsignedIntLTy, Flags));
tools/clang/lib/CodeGen/MicrosoftCXXABI.cpp 2965 VBTableOffset, llvm::ConstantInt::get(VBTableOffset->getType(), 2),
tools/clang/lib/CodeGen/PatternInit.cpp 40 return llvm::ConstantInt::get(Ty, IntValue);
52 auto *Int = llvm::ConstantInt::get(IntTy, IntValue);
tools/clang/lib/CodeGen/TargetInfo.cpp 6717 llvm::ConstantInt::get(IndexTy, PaddedSize.getQuantity());
6759 llvm::Value *MaxRegsV = llvm::ConstantInt::get(IndexTy, MaxRegs);
6775 llvm::ConstantInt::get(IndexTy, RegSaveIndex * PaddedSize.getQuantity()
6790 llvm::Value *One = llvm::ConstantInt::get(IndexTy, 1);
tools/lldb/source/Expression/IRInterpreter.cpp 1057 constant_index = cast<ConstantInt>(ConstantInt::get(
tools/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp 514 Constant *encoding_arg = ConstantInt::get(i32_ty, encoding_flags, false);
516 ConstantInt::get(i8_ty, 0x0, false); /* 0x0 is false */
tools/lli/lli.cpp 326 Value *ReturnVal = ConstantInt::get(ReturnTy, 0);
tools/llvm-stress/llvm-stress.cpp 460 PT->push_back(ConstantInt::get(Ty, getRandom()));
505 Constant *CI = ConstantInt::get(I32, getRandom() % (Width*2));
tools/polly/lib/CodeGen/BlockGenerators.cpp 601 IsInSetExpr, ConstantInt::get(IsInSetExpr->getType(), 0));
tools/polly/lib/CodeGen/IslExprBuilder.cpp 428 Value *One = ConstantInt::get(MaxType, 1);
429 Value *Zero = ConstantInt::get(MaxType, 0);
tools/polly/lib/CodeGen/IslNodeBuilder.cpp 1156 ConstantInt::get(endType, 1, /* signed = */ true),
tools/polly/lib/CodeGen/LoopGenerators.cpp 193 UB = Builder.CreateAdd(UB, ConstantInt::get(LongType, 1));
tools/polly/lib/CodeGen/LoopGeneratorsGOMP.cpp 150 UB = Builder.CreateSub(UB, ConstantInt::get(LongType, 1),
tools/polly/lib/CodeGen/LoopGeneratorsKMP.cpp 190 Value *AdjustedUB = Builder.CreateAdd(UB, ConstantInt::get(LongType, -1),
194 ConstantInt::get(LongType, std::max<int>(PollyChunkSize, 1));
350 ConstantInt::get(LongType, 1),
unittests/Analysis/MemorySSATest.cpp 601 Value *Alloca = B.CreateAlloca(Int8, ConstantInt::get(Int8, 1), "A");
602 StoreInst *S1 = B.CreateStore(ConstantInt::get(Int8, 0), Alloca);
603 StoreInst *S2 = B.CreateStore(ConstantInt::get(Int8, 1), Alloca);
604 StoreInst *S3 = B.CreateStore(ConstantInt::get(Int8, 2), Alloca);
632 Value *Alloca = B.CreateAlloca(Int8, ConstantInt::get(Int8, 1), "A");
633 Instruction *SI = B.CreateStore(ConstantInt::get(Int8, 0), Alloca);
662 Value *Alloca = B.CreateAlloca(Int8, ConstantInt::get(Int8, 1), "A");
663 StoreInst *SI = B.CreateStore(ConstantInt::get(Int8, 0), Alloca);
706 Constant *One = ConstantInt::get(Int8, 1);
707 Constant *Zero = ConstantInt::get(Int8, 0);
770 Constant *One = ConstantInt::get(Int8, 1);
799 Value *AllocaA = B.CreateAlloca(Int8, ConstantInt::get(Int8, 1), "A");
800 Instruction *SIA = B.CreateStore(ConstantInt::get(Int8, 0), AllocaA);
801 Value *AllocaB = B.CreateAlloca(Int8, ConstantInt::get(Int8, 1), "B");
802 Instruction *SIB = B.CreateStore(ConstantInt::get(Int8, 0), AllocaB);
831 Value *A = B.CreateAlloca(Int8, ConstantInt::get(Int8, 1), "A");
832 Value *B_ = B.CreateAlloca(Int8, ConstantInt::get(Int8, 1), "B");
833 Value *C = B.CreateAlloca(Int8, ConstantInt::get(Int8, 1), "C");
835 StoreInst *StoreA0 = B.CreateStore(ConstantInt::get(Int8, 0), A);
836 StoreInst *StoreB = B.CreateStore(ConstantInt::get(Int8, 0), B_);
838 StoreInst *StoreA1 = B.CreateStore(ConstantInt::get(Int8, 4), A);
839 StoreInst *StoreC = B.CreateStore(ConstantInt::get(Int8, 4), C);
840 StoreInst *StoreA2 = B.CreateStore(ConstantInt::get(Int8, 4), A);
1008 Value *AllocaA = B.CreateAlloca(Int8, ConstantInt::get(Int8, 1), "A");
1009 Value *AllocaB = B.CreateAlloca(Int8, ConstantInt::get(Int8, 1), "B");
1011 B.CreateStore(ConstantInt::get(Int8, 1), AllocaB);
1017 B.CreateStore(ConstantInt::get(Int8, 1), AllocaA);
1051 Value *AllocaA = B.CreateAlloca(Int8, ConstantInt::get(Int8, 1), "A");
1052 Value *AllocaB = B.CreateAlloca(Int8, ConstantInt::get(Int8, 1), "B");
1053 StoreInst *SA1 = B.CreateStore(ConstantInt::get(Int8, 1), AllocaA);
1054 StoreInst *SB1 = B.CreateStore(ConstantInt::get(Int8, 1), AllocaB);
1055 StoreInst *SA2 = B.CreateStore(ConstantInt::get(Int8, 2), AllocaA);
1056 StoreInst *SB2 = B.CreateStore(ConstantInt::get(Int8, 2), AllocaB);
1057 StoreInst *SA3 = B.CreateStore(ConstantInt::get(Int8, 3), AllocaA);
1058 StoreInst *SB3 = B.CreateStore(ConstantInt::get(Int8, 3), AllocaB);
1105 B.CreateStore(ConstantInt::get(Int8, 1), PointerB);
1107 B.CreateStore(ConstantInt::get(Int8, 0), PointerA);
1109 B.CreateStore(ConstantInt::get(Int8, 0), PointerA);
1111 B.CreateStore(ConstantInt::get(Int8, 0), PointerB);
1147 Value *AllocaC = B.CreateAlloca(Int8, ConstantInt::get(Int8, 1), "C");
1149 StoreInst *SA1 = B.CreateStore(ConstantInt::get(Int8, 0), PointerA);
1151 StoreInst *SB1 = B.CreateStore(ConstantInt::get(Int8, 1), PointerB);
1153 StoreInst *SC1 = B.CreateStore(ConstantInt::get(Int8, 2), AllocaC);
1155 StoreInst *SA2 = B.CreateStore(ConstantInt::get(Int8, 3), PointerA);
1157 StoreInst *SB2 = B.CreateStore(ConstantInt::get(Int8, 4), PointerB);
1159 StoreInst *SC2 = B.CreateStore(ConstantInt::get(Int8, 5), AllocaC);
1161 StoreInst *SB3 = B.CreateStore(ConstantInt::get(Int8, 6), PointerB);
1289 Value *Alloca = B.CreateAlloca(Int8, ConstantInt::get(Int8, 1), "alloc");
1339 Value *AllocA = B.CreateAlloca(Int8, ConstantInt::get(Int8, 1), "A");
1340 Value *AllocB = B.CreateAlloca(Int8, ConstantInt::get(Int8, 1), "B");
1342 StoreInst *StoreA = B.CreateStore(ConstantInt::get(Int8, 0), AllocA);
1343 StoreInst *StoreB = B.CreateStore(ConstantInt::get(Int8, 1), AllocB);
1344 StoreInst *StoreA2 = B.CreateStore(ConstantInt::get(Int8, 2), AllocA);
1478 Value *Alloca = B.CreateAlloca(Int8, ConstantInt::get(Int8, 1), "A");
1486 B.CreateStore(ConstantInt::get(Int8, 0), Alloca);
unittests/Analysis/ScalarEvolutionTest.cpp 775 Value *Add = Builder.CreateAdd(Phi, ConstantInt::get(T_int64, 1), "add");
777 Phi->addIncoming(ConstantInt::get(T_int64, 0), LPh);
782 Builder.CreateGEP(T_int64, Arg, ConstantInt::get(T_int64, 1));
848 Builder.CreateAdd(Phi, ConstantInt::get(T_int64, 1), "add"));
849 auto *Limit = ConstantInt::get(T_int64, 1000);
853 Phi->addIncoming(ConstantInt::get(T_int64, 0), LPh);
883 ICmpInst::ICMP_SLT, Add, ConstantInt::get(T_int64, 2000), "new.cond");
949 Builder.CreateAdd(Phi, ConstantInt::get(T_int64, 1), "add"));
953 Phi->addIncoming(ConstantInt::get(T_int64, 0), LPh);
972 ICmpInst::ICMP_SLT, Add, ConstantInt::get(T_int64, 2000), "new.cond");
1174 Builder.CreateAdd(Phi, ConstantInt::get(T_int64, 1), "add"));
1175 auto *Limit = ConstantInt::get(T_int64, 1000);
1179 Phi->addIncoming(ConstantInt::get(T_int64, 0), LPh);
unittests/ExecutionEngine/Orc/LegacyRTDyldObjectLinkingLayerTest.cpp 83 ConstantInt::get(Int32Ty, 42), "foo");
unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayerTest.cpp 79 ConstantInt::get(Int32Ty, 42), "foo");
unittests/FuzzMutate/OperationsTest.cpp 262 PHI1->addIncoming(ConstantInt::get(Int8Ty, 0), BB1);
263 PHI1->addIncoming(ConstantInt::get(Int8Ty, 1), BB2);
265 PHI2->addIncoming(ConstantInt::get(Int8Ty, 1), BB1);
266 PHI2->addIncoming(ConstantInt::get(Int8Ty, 0), BB2);
295 ConstantInt::get(Int32Ty, 0)));
297 GEPOp.BuilderFunc({UndefValue::get(Int8PtrTy), ConstantInt::get(Int32Ty, 0)},
367 EVOp.SourcePreds[1].matches({SVal}, ConstantInt::get(Int32Ty, 0)));
369 EVOp.SourcePreds[1].matches({SVal}, ConstantInt::get(Int32Ty, 1)));
371 EVOp.SourcePreds[1].matches({SVal}, ConstantInt::get(Int32Ty, 2)));
373 EVOp.SourcePreds[1].matches({OVal}, ConstantInt::get(Int32Ty, 0)));
375 EVOp.SourcePreds[1].matches({OVal}, ConstantInt::get(Int32Ty, 65536)));
377 EVOp.SourcePreds[1].matches({AVal}, ConstantInt::get(Int32Ty, 0)));
379 EVOp.SourcePreds[1].matches({AVal}, ConstantInt::get(Int32Ty, 3)));
381 EVOp.SourcePreds[1].matches({AVal}, ConstantInt::get(Int32Ty, 4)));
385 ElementsAre(ConstantInt::get(Int32Ty, 0), ConstantInt::get(Int32Ty, 1)));
385 ElementsAre(ConstantInt::get(Int32Ty, 0), ConstantInt::get(Int32Ty, 1)));
393 ConstantInt::get(Int32Ty, 0)));
395 ConstantInt::get(Int32Ty, 1)));
400 IVOp.SourcePreds[2].generate({SVal, ConstantInt::get(Int32Ty, 0)}, {}),
401 ElementsAre(ConstantInt::get(Int32Ty, 1)));
unittests/FuzzMutate/RandomIRBuilderTest.cpp 122 Srcs[1] = ConstantInt::get(T, 5);
unittests/IR/ConstantsTest.cpp 215 Constant *One = ConstantInt::get(Int32Ty, 1);
216 Constant *Two = ConstantInt::get(Int64Ty, 2);
218 Constant *Elt = ConstantInt::get(Int16Ty, 2015);
309 Constant *One = ConstantInt::get(Int32Ty, 1);
330 Constant *A01Vals[2] = {ConstantInt::get(IntTy, 0),
331 ConstantInt::get(IntTy, 1)};
337 Constant *A0GVals[2] = {ConstantInt::get(IntTy, 0), GlobalInt};
345 GlobalInt->replaceAllUsesWith(ConstantInt::get(IntTy, 1));
378 auto *C1 = ConstantInt::get(IntTy, 1);
425 Constant *Vals[] = {ConstantInt::get(T, 0), ConstantInt::get(T, 1)};
425 Constant *Vals[] = {ConstantInt::get(T, 0), ConstantInt::get(T, 1)};
447 Constant *Vals[] = {ConstantInt::get(T, 0), ConstantInt::get(T, 1)};
447 Constant *Vals[] = {ConstantInt::get(T, 0), ConstantInt::get(T, 1)};
unittests/IR/InstructionsTest.cpp 510 ConstantInt::get(Int32Ty, 1),
511 ConstantInt::get(Int32Ty, 2),
512 ConstantInt::get(Int32Ty, 3)
543 Value *Args[] = {ConstantInt::get(Int32Ty, 42)};
553 OperandBundleDef NewBundle("after", ConstantInt::get(Int32Ty, 7));
570 Value *Args[] = {ConstantInt::get(Int32Ty, 42)};
583 OperandBundleDef NewBundle("after", ConstantInt::get(Int32Ty, 7));
808 Constant *C0 = ConstantInt::get(Int32Ty, 0);
809 Constant *C1 = ConstantInt::get(Int32Ty, 1);
810 Constant *C2 = ConstantInt::get(Int32Ty, 2);
811 Constant *C3 = ConstantInt::get(Int32Ty, 3);
812 Constant *C4 = ConstantInt::get(Int32Ty, 4);
813 Constant *C5 = ConstantInt::get(Int32Ty, 5);
814 Constant *C6 = ConstantInt::get(Int32Ty, 6);
815 Constant *C7 = ConstantInt::get(Int32Ty, 7);
unittests/IR/PatternMatch.cpp 72 Value *Zero = ConstantInt::get(IntTy, 0);
73 Value *One = ConstantInt::get(IntTy, 1);
74 Value *NegOne = ConstantInt::get(IntTy, -1);
111 Value *Zero = ConstantInt::get(IntTy, 0);
112 Value *One = ConstantInt::get(IntTy, 1);
113 Value *NegOne = ConstantInt::get(IntTy, -1);
150 Value *Zero = ConstantInt::get(IntTy, 0);
151 Value *One = ConstantInt::get(IntTy, 1);
152 Value *NegOne = ConstantInt::get(IntTy, -1);
189 Value *Zero = ConstantInt::get(IntTy, 0);
190 Value *One = ConstantInt::get(IntTy, 1);
191 Value *NegOne = ConstantInt::get(IntTy, -1);
228 Value *Zero = ConstantInt::get(IntTy, 0);
229 Value *One = ConstantInt::get(IntTy, 1);
230 Value *NegOne = ConstantInt::get(IntTy, -1);
267 Value *Zero = ConstantInt::get(IntTy, 0);
268 Value *One = ConstantInt::get(IntTy, 1);
269 Value *NegOne = ConstantInt::get(IntTy, -1);
306 Value *Zero = ConstantInt::get(IntTy, 0);
307 Value *One = ConstantInt::get(IntTy, 1);
308 Value *NegOne = ConstantInt::get(IntTy, -1);
345 Value *Zero = ConstantInt::get(IntTy, 0);
346 Value *One = ConstantInt::get(IntTy, 1);
347 Value *NegOne = ConstantInt::get(IntTy, -1);
384 Value *Zero = ConstantInt::get(IntTy, 0);
385 Value *One = ConstantInt::get(IntTy, 1);
386 Value *NegOne = ConstantInt::get(IntTy, -1);
423 Value *Zero = ConstantInt::get(IntTy, 0);
424 Value *One = ConstantInt::get(IntTy, 1);
425 Value *NegOne = ConstantInt::get(IntTy, -1);
916 VecElemIdxs.push_back(ConstantInt::get(i32, 0));
917 VecElemIdxs.push_back(ConstantInt::get(i32, 2));
unittests/Transforms/Utils/LocalTest.cpp 760 EXPECT_EQ(ConstantInt::get(A.getType(), 0), ADbgVal->getVariableLocation());
unittests/Transforms/Utils/SSAUpdaterBulkTest.cpp 56 Value *AddOp1 = B.CreateAdd(FirstArg, ConstantInt::get(I32Ty, 1));
57 Value *SubOp1 = B.CreateSub(FirstArg, ConstantInt::get(I32Ty, 2));
61 Value *AddOp2 = B.CreateAdd(FirstArg, ConstantInt::get(I32Ty, 3));
62 Value *SubOp2 = B.CreateSub(FirstArg, ConstantInt::get(I32Ty, 4));
66 auto *I1 = cast<Instruction>(B.CreateAdd(AddOp1, ConstantInt::get(I32Ty, 5)));
67 auto *I2 = cast<Instruction>(B.CreateAdd(AddOp2, ConstantInt::get(I32Ty, 6)));
140 Value *AddOp1 = B.CreateAdd(FirstArg, ConstantInt::get(I32Ty, 1));
144 Value *AddOp2 = B.CreateAdd(FirstArg, ConstantInt::get(I32Ty, 2));
148 auto *I1 = cast<Instruction>(B.CreateAdd(AddOp1, ConstantInt::get(I32Ty, 3)));
152 auto *I2 = cast<Instruction>(B.CreateAdd(AddOp2, ConstantInt::get(I32Ty, 4)));