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

References

examples/HowToUseJIT/HowToUseJIT.cpp
   85   Value *One = builder.getInt32(1);
  113   Value *Ten = builder.getInt32(10);
examples/HowToUseLLJIT/HowToUseLLJIT.cpp
   42   Value *One = builder.getInt32(1);
include/llvm/IR/IRBuilder.h
 2530     Value *LastIndexV = getInt32(LastIndex);
 2544     Value *DimV = getInt32(Dimension);
 2563     Value *DIIndex = getInt32(FieldIndex);
 2578     Value *GEPIndex = getInt32(Index);
 2587     Value *DIIndex = getInt32(FieldIndex);
lib/Analysis/VectorUtils.cpp
  662       MaskVec.push_back(Builder.getInt32(i));
  672       Mask.push_back(Builder.getInt32(j * VF + i));
  681     Mask.push_back(Builder.getInt32(Start + i * Stride));
  690     Mask.push_back(Builder.getInt32(Start + i));
lib/CodeGen/SjLjEHPrepare.cpp
  396   Value *Val = Builder.CreateCall(FrameAddrFn, Builder.getInt32(0), "fp");
lib/CodeGen/WasmEHPrepare.cpp
  318   IRB.CreateCall(LPadIndexF, {FPI, IRB.getInt32(Index)});
  321   IRB.CreateStore(IRB.getInt32(Index), LPadIndexField);
lib/IR/IRBuilder.cpp
  134   Value *Ops[] = {Ptr, Val, Size, getInt32(ElementSize)};
  207   Value *Ops[] = {Dst, Src, Size, getInt32(ElementSize)};
  283   Value *Ops[] = {Dst, Src, Size, getInt32(ElementSize)};
  480   Value *Ops[] = { Ptr, getInt32(Align), Mask,  PassThru};
  498   Value *Ops[] = { Val, Ptr, getInt32(Align), Mask };
  538   Value * Ops[] = {Ptrs, getInt32(Align), Mask, PassThru};
  571   Value * Ops[] = {Data, Ptrs, getInt32(Align), Mask};
  586   Args.push_back(B.getInt32(NumPatchBytes));
  588   Args.push_back(B.getInt32(CallArgs.size()));
  589   Args.push_back(B.getInt32(Flags));
  591   Args.push_back(B.getInt32(TransitionArgs.size()));
  593   Args.push_back(B.getInt32(DeoptArgs.size()));
  728                   getInt32(BaseOffset),
  729                   getInt32(DerivedOffset)};
lib/Target/AMDGPU/AMDGPUAtomicOptimizer.cpp
  297                      {Identity, V, B.getInt32(DPP::ROW_SHR0 | 1 << Idx),
  298                       B.getInt32(0xf), B.getInt32(0xf), B.getFalse()}));
  298                       B.getInt32(0xf), B.getInt32(0xf), B.getFalse()}));
  305                      {Identity, V, B.getInt32(DPP::BCAST15), B.getInt32(0xa),
  305                      {Identity, V, B.getInt32(DPP::BCAST15), B.getInt32(0xa),
  306                       B.getInt32(0xf), B.getFalse()}));
  310                      {Identity, V, B.getInt32(DPP::BCAST31), B.getInt32(0xc),
  310                      {Identity, V, B.getInt32(DPP::BCAST31), B.getInt32(0xc),
  311                       B.getInt32(0xf), B.getFalse()}));
  319         B.CreateCall(PermLaneX16, {V, V, B.getInt32(-1), B.getInt32(-1),
  319         B.CreateCall(PermLaneX16, {V, V, B.getInt32(-1), B.getInt32(-1),
  324                      {Identity, PermX, B.getInt32(DPP::QUAD_PERM_ID),
  325                       B.getInt32(0xa), B.getInt32(0xf), B.getFalse()}));
  325                       B.getInt32(0xa), B.getInt32(0xf), B.getFalse()}));
  328       Value *const Lane31 = B.CreateCall(ReadLane, {V, B.getInt32(31)});
  332                        {Identity, Lane31, B.getInt32(DPP::QUAD_PERM_ID),
  333                         B.getInt32(0xc), B.getInt32(0xf), B.getFalse()}));
  333                         B.getInt32(0xc), B.getInt32(0xf), B.getFalse()}));
  355                      {Identity, V, B.getInt32(DPP::WAVE_SHR1), B.getInt32(0xf),
  355                      {Identity, V, B.getInt32(DPP::WAVE_SHR1), B.getInt32(0xf),
  356                       B.getInt32(0xf), B.getFalse()});
  362                      {Identity, V, B.getInt32(DPP::ROW_SHR0 + 1),
  363                       B.getInt32(0xf), B.getInt32(0xf), B.getFalse()});
  363                       B.getInt32(0xf), B.getInt32(0xf), B.getFalse()});
  366     V = B.CreateCall(WriteLane, {B.CreateCall(ReadLane, {Old, B.getInt32(15)}),
  367                                  B.getInt32(16), V});
  373           {B.CreateCall(ReadLane, {Old, B.getInt32(31)}), B.getInt32(32), V});
  373           {B.CreateCall(ReadLane, {Old, B.getInt32(31)}), B.getInt32(32), V});
  378           {B.CreateCall(ReadLane, {Old, B.getInt32(47)}), B.getInt32(48), V});
  378           {B.CreateCall(ReadLane, {Old, B.getInt32(47)}), B.getInt32(48), V});
  451       {B.getInt32(1), B.getInt32(0), B.getInt32(CmpInst::ICMP_NE)});
  451       {B.getInt32(1), B.getInt32(0), B.getInt32(CmpInst::ICMP_NE)});
  451       {B.getInt32(1), B.getInt32(0), B.getInt32(CmpInst::ICMP_NE)});
  460                               {Ballot, B.getInt32(0)});
  463     Value *const ExtractLo = B.CreateExtractElement(BitCast, B.getInt32(0));
  464     Value *const ExtractHi = B.CreateExtractElement(BitCast, B.getInt32(1));
  466                               {ExtractLo, B.getInt32(0)});
  492     Value *const LastLaneIdx = B.getInt32(ST->getWavefrontSize() - 1);
  502           UndefValue::get(VecTy), ReadLaneLo, B.getInt32(0));
  504           B.CreateInsertElement(PartialInsert, ReadLaneHi, B.getInt32(1));
  601           UndefValue::get(VecTy), ReadFirstLaneLo, B.getInt32(0));
  603           B.CreateInsertElement(PartialInsert, ReadFirstLaneHi, B.getInt32(1));
lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
  659   ConstantInt *One = Builder.getInt32(1);
  667     JQ = Builder.CreateAShr(JQ, Builder.getInt32(30));
  715   JQ = Builder.CreateSelect(CV, JQ, Builder.getInt32(0));
  732     ConstantInt *TruncMask = Builder.getInt32((UINT64_C(1) << DivBits) - 1);
  775   ConstantInt *Zero = Builder.getInt32(0);
  776   ConstantInt *One = Builder.getInt32(1);
  777   ConstantInt *MinusOne = Builder.getInt32(~0);
  781     ConstantInt *K31 = Builder.getInt32(31);
lib/Target/ARM/ARMISelLowering.cpp
16412       Value* args[6] = {Builder.getInt32(15), Builder.getInt32(0),
16412       Value* args[6] = {Builder.getInt32(15), Builder.getInt32(0),
16413                         Builder.getInt32(0), Builder.getInt32(7),
16413                         Builder.getInt32(0), Builder.getInt32(7),
16414                         Builder.getInt32(10), Builder.getInt32(5)};
16414                         Builder.getInt32(10), Builder.getInt32(5)};
16425     Constant *CDomain = Builder.getInt32(Domain);
16810     Ops.push_back(Builder.getInt32(LI->getAlignment()));
16980     Ops.push_back(Builder.getInt32(SI->getAlignment()));
lib/Target/Hexagon/HexagonGenExtract.cpp
  214   Value *NewIn = IRB.CreateCall(ExtF, {BF, IRB.getInt32(W), IRB.getInt32(SR)});
  214   Value *NewIn = IRB.CreateCall(ExtF, {BF, IRB.getInt32(W), IRB.getInt32(SR)});
lib/Target/Hexagon/HexagonISelLowering.cpp
 3280   Value *Cmp = Builder.CreateICmpEQ(Call, Builder.getInt32(0), "");
lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp
  391   IRB.CreateStore(IRB.getInt32(0), ThrewGV);
  440   IRB.CreateStore(IRB.getInt32(0), ThrewGV);
  553   Value *ThrewCmp = IRB.CreateICmpNE(Threw, IRB.getInt32(0));
  556   Value *ThrewValueCmp = IRB.CreateICmpNE(ThrewValue, IRB.getInt32(0));
  571   Value *Cmp2 = IRB.CreateICmpEQ(ThenLabel, IRB.getInt32(0));
  592   LabelPHI->addIncoming(IRB.getInt32(-1), ElseBB1);
  764       Value *Cmp = IRB.CreateICmpEQ(Threw, IRB.getInt32(1), "cmp");
  891       Instruction::Add, IRB.getInt32(4), IRB.getInt32(0), "setjmpTableSize",
  891       Instruction::Add, IRB.getInt32(4), IRB.getInt32(0), "setjmpTableSize",
  895       SetjmpTableSize, IRB.getInt32Ty(), IRB.getInt32Ty(), IRB.getInt32(40),
  899   IRB.CreateStore(IRB.getInt32(0), SetjmpTable);
  925     SetjmpRet->addIncoming(IRB.getInt32(0), BB);
  935     Value *Args[] = {CI->getArgOperand(0), IRB.getInt32(SetjmpRetPHIs.size()),
  999               if (GV == ThrewGV && SI->getValueOperand() == IRB.getInt32(0)) {
 1038         SI->addCase(IRB.getInt32(I + 1), SetjmpRetPHIs[I]->getParent());
lib/Target/X86/X86InterleavedAccess.cpp
  217         Builder.CreateGEP(VecBaseTy, VecBasePtr, Builder.getInt32(i));
lib/Target/X86/X86WinEHState.cpp
  346           Builder.getInt32(0), "frameaddr");
  490   Args.push_back(Builder.getInt32(OptionalArgs.size()));
  789       State = Builder.getInt32(getStateForCallSite(BlockColors, FuncInfo, CS));
  799   Builder.CreateStore(Builder.getInt32(State), StateField);
lib/Transforms/InstCombine/InstCombineCalls.cpp
 3204                                            Builder.getInt32(Idx&15));
 3209                                                Builder.getInt32(i));
lib/Transforms/InstCombine/InstCombineCasts.cpp
  490   return ExtractElementInst::Create(VecInput, IC.Builder.getInt32(Elt));
 2025                                             IC.Builder.getInt32(i));
 2340       SmallVector<Value *, 8> Idxs(NumZeros + 1, Builder.getInt32(0));
lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
  190     Value *V = IC.Builder.getInt32(1);
lib/Transforms/InstCombine/InstCombineVectorOps.cpp
 1540   Constant *Zero = Builder.getInt32(0);
lib/Transforms/InstCombine/InstructionCombining.cpp
 2739       Indices.push_back(Builder.getInt32(0));
 2742         Indices.push_back(Builder.getInt32(*I));
lib/Transforms/Instrumentation/AddressSanitizer.cpp
 2316     Indices2[0] = IRB.getInt32(0);
 2317     Indices2[1] = IRB.getInt32(0);
lib/Transforms/Instrumentation/GCOVProfiling.cpp
  983   Constant *Zero32 = Builder.getInt32(0);
 1000                               Builder.getInt32(CfgChecksum)});
 1009           {Builder.getInt32(j),
 1013            Builder.getInt32(FuncChecksum),
 1015            Builder.getInt32(CfgChecksum)}));
 1021           {Builder.getInt32(Arcs), ConstantExpr::getInBoundsGetElementPtr(
 1051         {StartFileCallArgs, Builder.getInt32(CountersSize),
 1097   IV->addIncoming(Builder.getInt32(0), BB);
 1099       FileInfoArrayTy, FileInfoArrayGV, {Builder.getInt32(0), IV});
 1125       Builder.CreateICmpSLT(Builder.getInt32(0), NumCounters);
 1130   JV->addIncoming(Builder.getInt32(0), FileLoopHeader);
 1169   auto *NextJV = Builder.CreateAdd(JV, Builder.getInt32(1));
 1177   auto *NextIV = Builder.CreateAdd(IV, Builder.getInt32(1));
 1179       Builder.CreateICmpSLT(NextIV, Builder.getInt32(FileInfos.size()));
lib/Transforms/Instrumentation/InstrProfiling.cpp
  616                       Builder.getInt32(Index)};
  622         Builder.getInt32(Index),
lib/Transforms/Instrumentation/MemorySanitizer.cpp
  951             IRB.getInt32(TrackOrigins), "__msan_track_origins");
  958                                   IRB.getInt32(Recover), "__msan_keep_going");
 1188       Origin = (Value *)IRB.getInt32(0);
 1228                                                 : (Value *)IRB.getInt32(0)});
 1257     Constant *Zero = IRB.getInt32(0);
 1259                                 {Zero, IRB.getInt32(0)}, "param_shadow");
 1261                                  {Zero, IRB.getInt32(1)}, "retval_shadow");
 1263                                 {Zero, IRB.getInt32(2)}, "va_arg_shadow");
 1265                                       {Zero, IRB.getInt32(3)}, "va_arg_origin");
 1268                       {Zero, IRB.getInt32(4)}, "va_arg_overflow_size");
 1270                                       {Zero, IRB.getInt32(5)}, "param_origin");
 1273                       {Zero, IRB.getInt32(6)}, "retval_origin");
 4358                               IRB.getInt32(AArch64VrBegOffset)),
 4372                               IRB.getInt32(AArch64VAEndOffset));
lib/Transforms/Instrumentation/PGOInstrumentation.cpp
  827          Builder.getInt64(FuncInfo.FunctionHash), Builder.getInt32(NumCounters),
  828          Builder.getInt32(I++)});
  866            Builder.getInt32(Kind), Builder.getInt32(SiteIndex++)});
  866            Builder.getInt32(Kind), Builder.getInt32(SiteIndex++)});
 1356        Builder.getInt64(FuncHash), Builder.getInt32(TotalNumCtrs),
 1357        Builder.getInt32(*CurCtrIdx), Step});
lib/Transforms/Instrumentation/ThreadSanitizer.cpp
  506         IRB.getInt32(0));
  589   return IRB->getInt32(v);
lib/Transforms/Scalar/LoopSimplifyCFG.cpp
  360         Builder.CreateSwitch(Builder.getInt32(0), NewPreheader);
  375       DummySwitch->addCase(Builder.getInt32(DummyIdx++), BB);
lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
 1310       Builder.getInt32(LiveStart + FindIndex(LiveVariables, BasePtrs[i]));
 1311     Value *LiveIdx = Builder.getInt32(LiveStart + i);
lib/Transforms/Scalar/SROA.cpp
 1443       Indices.push_back(IRB.getInt32(0));
 1448       Indices.push_back(IRB.getInt32(0));
 1523   Indices.push_back(IRB.getInt32(Index));
 2194     V = IRB.CreateExtractElement(V, IRB.getInt32(BeginIndex),
 2203     Mask.push_back(IRB.getInt32(i));
 2218     V = IRB.CreateInsertElement(Old, V, IRB.getInt32(BeginIndex),
 2240       Mask.push_back(IRB.getInt32(i - BeginIndex));
 3290         : IRB(InsertionPoint), GEPIndices(1, IRB.getInt32(0)), Ptr(Ptr),
 3321           GEPIndices.push_back(IRB.getInt32(Idx));
 3336           GEPIndices.push_back(IRB.getInt32(Idx));
lib/Transforms/Scalar/Scalarizer.cpp
  293     CV[I] = Builder.CreateExtractElement(V, Builder.getInt32(I),
  706         V = Builder.CreateInsertElement(V, Op0[Op0I++], Builder.getInt32(MidI),
  843         Res = Builder.CreateInsertElement(Res, CV[I], Builder.getInt32(I),
lib/Transforms/Utils/IntegerDivision.cpp
   42     Shift = Builder.getInt32(31);
  114     Shift = Builder.getInt32(31);
  172     Zero      = Builder.getInt32(0);
  173     One       = Builder.getInt32(1);
  175     MSB       = Builder.getInt32(31);
lib/Transforms/Utils/LoopUtils.cpp
  800         Builder.CreateExtractElement(Src, Builder.getInt32(ExtractIdx));
  834       ShuffleMask[j] = Builder.getInt32(i / 2 + j);
  857   return Builder.CreateExtractElement(TmpVec, Builder.getInt32(0));
lib/Transforms/Utils/ModuleUtils.cpp
   44   CSVals[0] = IRB.getInt32(Priority);
lib/Transforms/Utils/SimplifyCFG.cpp
 5136     Value *GEPIndices[] = {Builder.getInt32(0), Index};
lib/Transforms/Utils/SimplifyLibCalls.cpp
 2211   return B.CreateSelect(Cond, V, B.getInt32(0));
 2238   Op = B.CreateSub(Op, B.getInt32('0'), "isdigittmp");
 2239   Op = B.CreateICmpULT(Op, B.getInt32(10), "isdigit");
 2246   Op = B.CreateICmpULT(Op, B.getInt32(128), "isascii");
 2343     return emitPutChar(B.getInt32(FormatStr[0]), B, TLI);
 2352     return emitPutChar(B.getInt32(ChrStr[0]), B, TLI);
 2449     Ptr = B.CreateGEP(B.getInt8Ty(), Ptr, B.getInt32(1), "nul");
 2561       Ptr = B.CreateGEP(B.getInt8Ty(), Ptr, B.getInt32(1), "nul");
 2788     return emitPutChar(B.getInt32('\n'), B, TLI);
lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
 1054                                                       Builder.getInt32(J));
 1059             Builder.CreateInsertElement(Vec, Extract, Builder.getInt32(NewIdx));
 1072           Builder.CreateInsertElement(Vec, Extract, Builder.getInt32(I));
 1210         Value *V = Builder.CreateExtractElement(LI, Builder.getInt32(NewIdx),
 1232           Builder.CreateExtractElement(LI, Builder.getInt32(I), CV->getName());
lib/Transforms/Vectorize/LoopVectorize.cpp
 2092   return Builder.CreateExtractElement(U, Builder.getInt32(Instance.Lane));
 2104                                             Builder.getInt32(Instance.Lane));
 2112     ShuffleMask.push_back(Builder.getInt32(VF - i - 1));
 2218     NewPtr = Builder.CreateGEP(ScalarTy, NewPtr, Builder.getInt32(-Index));
 2405           Builder.CreateGEP(ScalarDataTy, Ptr, Builder.getInt32(-Part * VF)));
 2408           Builder.CreateGEP(ScalarDataTy, PartPtr, Builder.getInt32(1 - VF)));
 2414           Builder.CreateGEP(ScalarDataTy, Ptr, Builder.getInt32(Part * VF)));
 3537         Builder.getInt32(VF - 1), "vector.recur.init");
 3569   ShuffleMask[0] = Builder.getInt32(VF - 1);
 3571     ShuffleMask[I] = Builder.getInt32(I + VF - 1);
 3600         ExtractForScalar, Builder.getInt32(VF - 1), "vector.recur.extract");
 3610         Incoming, Builder.getInt32(VF - 2), "vector.recur.extract.for.phi");
 3642   Constant *Zero = Builder.getInt32(0);
 7385           ConditionBit, State.Builder.getInt32(Lane));
lib/Transforms/Vectorize/SLPVectorizer.cpp
 3620     Vec = Builder.CreateInsertElement(Vec, VL[i], Builder.getInt32(i));
 4204           Mask[i] = Builder.getInt32(e + i);
 4207           Mask[i] = Builder.getInt32(i);
 4292     Value *Lane = Builder.getInt32(ExternalUse.Lane);
 5699       ShuffleMask[i] = Builder.getInt32(2 * i + !IsLeft);
 5703       ShuffleMask[i] = Builder.getInt32(NumEltsToRdx + i);
 6611     return Builder.CreateExtractElement(TmpVec, Builder.getInt32(0));
lib/Transforms/Vectorize/VPlan.cpp
  214                                                   State->Builder.getInt32(0));
tools/clang/lib/CodeGen/CGAtomic.cpp
  474     SI->addCase(CGF.Builder.getInt32((int)llvm::AtomicOrderingCABI::consume),
  476     SI->addCase(CGF.Builder.getInt32((int)llvm::AtomicOrderingCABI::acquire),
  484     SI->addCase(CGF.Builder.getInt32((int)llvm::AtomicOrderingCABI::seq_cst),
  706       SI->addCase(Builder.getInt32(S), B);
 1290     SI->addCase(Builder.getInt32((int)llvm::AtomicOrderingCABI::consume),
 1292     SI->addCase(Builder.getInt32((int)llvm::AtomicOrderingCABI::acquire),
 1300     SI->addCase(Builder.getInt32((int)llvm::AtomicOrderingCABI::release),
 1308     SI->addCase(Builder.getInt32((int)llvm::AtomicOrderingCABI::acq_rel),
 1315   SI->addCase(Builder.getInt32((int)llvm::AtomicOrderingCABI::seq_cst),
tools/clang/lib/CodeGen/CGBlocks.cpp
 2854   V = Builder.CreateIntToPtr(Builder.getInt32(isa), Int8PtrTy, "isa");
tools/clang/lib/CodeGen/CGBuiltin.cpp
 1262       ArgVal = Builder.getInt32(Item.getConstValue().getQuantity());
 2573     return RValue::get(Builder.CreateCall(F, Builder.getInt32(0)));
 2966     SI->addCase(Builder.getInt32(0), BBs[0]);
 2967     SI->addCase(Builder.getInt32(1), BBs[1]);
 2968     SI->addCase(Builder.getInt32(2), BBs[1]);
 2969     SI->addCase(Builder.getInt32(3), BBs[2]);
 2970     SI->addCase(Builder.getInt32(4), BBs[3]);
 2971     SI->addCase(Builder.getInt32(5), BBs[4]);
 3026     SI->addCase(Builder.getInt32(0), BBs[0]);
 3027     SI->addCase(Builder.getInt32(3), BBs[1]);
 3028     SI->addCase(Builder.getInt32(5), BBs[2]);
 3081     SI->addCase(Builder.getInt32(1), AcquireBB);
 3082     SI->addCase(Builder.getInt32(2), AcquireBB);
 3087     SI->addCase(Builder.getInt32(3), ReleaseBB);
 3092     SI->addCase(Builder.getInt32(4), AcqRelBB);
 3097     SI->addCase(Builder.getInt32(5), SeqCstBB);
 5258     return Builder.getInt32(addr.getAlignment().getQuantity());
 6348     return Builder.getInt32(addr.getAlignment().getQuantity());
 9484     Result = Builder.CreateInsertElement(Result, Ops[i], Builder.getInt32(i));
10114     Value *Idxs[] = {Builder.getInt32(0), Builder.getInt32(3),
10114     Value *Idxs[] = {Builder.getInt32(0), Builder.getInt32(3),
10115                      Builder.getInt32(0)};
10121     Value *Mask = Builder.getInt32(Features1);
10136     Value *Mask = Builder.getInt32(Features2);
11339         getLLVMContext(), llvm::ConstantAsMetadata::get(Builder.getInt32(1)));
tools/clang/lib/CodeGen/CGCleanup.cpp
  339       createStoreInstBefore(CGF.Builder.getInt32(Fixup.DestinationIndex),
  349     Switch->addCase(CGF.Builder.getInt32(Fixup.DestinationIndex),
  409     Switch->addCase(Builder.getInt32(Fixup.DestinationIndex), Block);
  792           Builder.CreateStore(Builder.getInt32(0), getNormalCleanupDestSlot());
  875             Switch->addCase(Builder.getInt32(0), FallthroughDest);
  910           createStoreInstBefore(Builder.getInt32(Fixup.DestinationIndex),
 1083   llvm::ConstantInt *Index = Builder.getInt32(Dest.getDestIndex());
tools/clang/lib/CodeGen/CGCoroutine.cpp
  556       {Builder.getInt32(NewAlign), NullPtr, NullPtr, NullPtr});
tools/clang/lib/CodeGen/CGException.cpp
  502     llvm::Value *zero = CGF.Builder.getInt32(0);
  925           CatchSwitch, {TypeInfo.RTTI, CGF.Builder.getInt32(TypeInfo.Flags),
 1775         {Builder.getInt32(1)});
tools/clang/lib/CodeGen/CGExpr.cpp
  827       llvm::Value *Indices[] = { Builder.getInt32(0), Slot };
  932     return CGF.Builder.getInt32(VT->getNumElements());
 1675         Load->getContext(), llvm::ConstantAsMetadata::get(Builder.getInt32(1)));
 1729         llvm::Constant *Mask[] = {Builder.getInt32(0), Builder.getInt32(1),
 1729         llvm::Constant *Mask[] = {Builder.getInt32(0), Builder.getInt32(1),
 1730                                   Builder.getInt32(2),
 1757                           llvm::ConstantAsMetadata::get(Builder.getInt32(1)));
 1872     Mask.push_back(Builder.getInt32(getAccessedFieldNo(i, Elts)));
 2110         Mask[getAccessedFieldNo(i, Elts)] = Builder.getInt32(i);
 2123         ExtMask.push_back(Builder.getInt32(i));
 2133         Mask.push_back(Builder.getInt32(i));
 2143         Mask[getAccessedFieldNo(i, Elts)] = Builder.getInt32(i+NumDstElts);
 2915   llvm::Constant *Data[] = {Filename, Builder.getInt32(Line),
 2916                             Builder.getInt32(Column)};
tools/clang/lib/CodeGen/CGExprCXX.cpp
 2041     llvm::Value *Zero = Builder.getInt32(0);
tools/clang/lib/CodeGen/CGExprScalar.cpp
 1638       indices.push_back(Builder.getInt32(Idx.getZExtValue()));
 1837             Args.push_back(Builder.getInt32(ResElts + C->getZExtValue()));
 1852       V = Builder.CreateInsertElement(V, Init, Builder.getInt32(CurIdx),
 1878             Args.push_back(Builder.getInt32(j));
 1896         Args.push_back(Builder.getInt32(j));
 1904         Args.push_back(Builder.getInt32(j));
 1906         Args.push_back(Builder.getInt32(j+Offset));
 1926     Value *Idx = Builder.getInt32(CurIdx);
 2453       llvm::Value *amt = Builder.getInt32(amount);
 2466       llvm::Value *amt = Builder.getInt32(amount);
 3804       Value *CR6Param = Builder.getInt32(CR6);
 4332   Args.push_back(Builder.getInt32(0));
 4333   Args.push_back(Builder.getInt32(1));
 4334   Args.push_back(Builder.getInt32(2));
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
  156         UntiedSwitch->addCase(CGF.Builder.getInt32(0),
  166         CGF.EmitStoreOfScalar(CGF.Builder.getInt32(UntiedSwitch->getNumCases()),
  173         UntiedSwitch->addCase(CGF.Builder.getInt32(UntiedSwitch->getNumCases()),
 3063         CGF.Builder.getInt32(CapturedVars.size()), // Number of captured vars
 3088     CGF.InitTempAlloca(ZeroAddrBound, CGF.Builder.getInt32(/*C*/ 0));
 3369     CGF.Builder.CreateStore(CGF.Builder.getInt32(0), DidIt);
 3380     CGF.Builder.CreateStore(CGF.Builder.getInt32(1), DidIt);
 3648       CGF.Builder.getInt32(addMonoNonMonoModifier(
 3695       CGF.Builder.getInt32(addMonoNonMonoModifier(CGF.CGM, Schedule, M1,
 4592   CGF.EmitStoreThroughLValue(RValue::get(CGF.Builder.getInt32(/*C=*/0)),
 5083                                      CGF.Builder.getInt32(FinalFlag),
 5084                                      CGF.Builder.getInt32(/*C=*/0))
 5085           : CGF.Builder.getInt32(Data.Final.getInt() ? FinalFlag : 0);
 5086   TaskFlags = CGF.Builder.CreateOr(TaskFlags, CGF.Builder.getInt32(Flags));
 5300     DepTaskArgs[3] = CGF.Builder.getInt32(NumDependencies);
 5302     DepTaskArgs[5] = CGF.Builder.getInt32(0);
 5311       CGF.EmitStoreOfScalar(CGF.Builder.getInt32(0), PartIdLVal);
 5330     DepWaitTaskArgs[2] = CGF.Builder.getInt32(NumDependencies);
 5332     DepWaitTaskArgs[4] = CGF.Builder.getInt32(0);
 5789       CGF.Builder.getInt32(RHSExprs.size()), // i32 <n>
 5812   SwInst->addCase(CGF.Builder.getInt32(1), Case1BB);
 5852   SwInst->addCase(CGF.Builder.getInt32(2), Case2BB);
 6398           CGF.Builder.getInt32(getCancellationKind(CancelRegion))};
 6433           CGF.Builder.getInt32(getCancellationKind(CancelRegion))};
 6632         return Bld.getInt32(0);
 6636         return Bld.getInt32(1);
 6637       return Bld.getInt32(0);
 6656     return Bld.getInt32(0);
 6662     return Bld.getInt32(1);
 6744               return CGF.Builder.getInt32(1);
 6793                                            : CGF.Builder.getInt32(0);
 6798                                               CGF.Builder.getInt32(1));
 6803       return CGF.Builder.getInt32(1);
 6807                                : CGF.Builder.getInt32(0);
 6876         return Bld.getInt32(1);
 6878     return ThreadLimitVal ? ThreadLimitVal : Bld.getInt32(0);
 6901     return ThreadLimitVal ? ThreadLimitVal : Bld.getInt32(0);
 6935             return Bld.getInt32(1);
 6964       ThreadLimitVal = Bld.getInt32(0);
 6966       return Bld.CreateSelect(CondVal, ThreadLimitVal, Bld.getInt32(1));
 6971     return Bld.getInt32(1);
 9209         CGF.Builder.getInt32(InputInfo.NumberOfTargetItems);
 9909       CGF.Builder.getInt32(CapturedVars.size()), // Number of captured vars
 9932           : CGF.Builder.getInt32(0);
 9938           : CGF.Builder.getInt32(0);
 9992     llvm::Value *PointerNum = CGF.Builder.getInt32(Info.NumberOfPtrs);
10028     llvm::Value *PointerNum = CGF.Builder.getInt32(Info.NumberOfPtrs);
10101         CGF.Builder.getInt32(InputInfo.NumberOfTargetItems);
tools/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
  649   return Bld.CreateAnd(getNVPTXThreadID(CGF), Bld.getInt32(LaneIDMask),
  687   llvm::Value *Mask = Bld.CreateNUWSub(getNVPTXWarpSize(CGF), Bld.getInt32(1));
  689   return Bld.CreateAnd(Bld.CreateNUWSub(NumThreads, Bld.getInt32(1)),
 2318             {Bld.getInt32(0), getNVPTXLaneID(CGF)});
 2465   CGF.InitTempAlloca(ZeroAddr, CGF.Builder.getInt32(/*C*/ 0));
 2495   CGF.InitTempAlloca(ZeroAddr, CGF.Builder.getInt32(/*C*/ 0));
 2505     CGF.InitTempAlloca(ZeroAddr, CGF.Builder.getInt32(/*C*/ 0));
 2664   CGF.InitTempAlloca(ZeroAddr, CGF.Builder.getInt32(/*C*/ 0));
 2674     CGF.InitTempAlloca(ZeroAddr, CGF.Builder.getInt32(/*C*/ 0));
 2801       CGF.Builder.CreateNSWAdd(CounterVal, CGF.Builder.getInt32(1));
 4339                            CGF.Builder.getInt32(RHSExprs.size()),
 4386         CGF.Builder.getInt32(C.getLangOpts().OpenMPCUDAReductionBufNum),
 4577   CGF.InitTempAlloca(ZeroAddr, CGF.Builder.getInt32(/*C*/ 0));
tools/clang/lib/CodeGen/CGStmtOpenMP.cpp
 2618                                   CGF.Builder.getInt32(0));
 2620                                          ? CGF.Builder.getInt32(CS->size() - 1)
 2621                                          : CGF.Builder.getInt32(0);
 2625                                   CGF.Builder.getInt32(1));
 2627                                   CGF.Builder.getInt32(0));
 2661           SwitchStmt->addCase(CGF.Builder.getInt32(CaseNumber), CaseBB);
 2669         SwitchStmt->addCase(CGF.Builder.getInt32(0), CaseBB);
tools/clang/lib/CodeGen/CodeGenFunction.cpp
  563         llvm::ConstantAsMetadata::get(Builder.getInt32(A->getXDim())),
  564         llvm::ConstantAsMetadata::get(Builder.getInt32(A->getYDim())),
  565         llvm::ConstantAsMetadata::get(Builder.getInt32(A->getZDim()))};
  571         llvm::ConstantAsMetadata::get(Builder.getInt32(A->getXDim())),
  572         llvm::ConstantAsMetadata::get(Builder.getInt32(A->getYDim())),
  573         llvm::ConstantAsMetadata::get(Builder.getInt32(A->getZDim()))};
  580         llvm::ConstantAsMetadata::get(Builder.getInt32(A->getSubGroupSize()))};
 1754   llvm::ConstantInt *zero = Builder.getInt32(0);
tools/clang/lib/CodeGen/CodeGenModule.cpp
 1303             llvm::ConstantAsMetadata::get(CGF->Builder.getInt32(
 1345             llvm::ConstantAsMetadata::get(CGF->Builder.getInt32(AddrSpc)));
tools/clang/lib/CodeGen/CodeGenPGO.cpp
  904                          Builder.getInt32(NumRegionCounters),
  905                          Builder.getInt32(Counter), StepV};
  937         Builder.getInt32(ValueKind),
  938         Builder.getInt32(NumValueSites[ValueKind]++)
tools/clang/lib/CodeGen/TargetInfo.cpp
 9939   AddressQuals.push_back(llvm::ConstantAsMetadata::get(Builder.getInt32(0)));
 9947     AddressQuals.push_back(llvm::ConstantAsMetadata::get(Builder.getInt32(3)));
tools/polly/lib/CodeGen/BlockGenerators.cpp
 1032         Builder.getInt32(Lane));
 1118         Vector, ScalarLoad, Builder.getInt32(i), Load->getName() + "_p_vec_");
 1215       Value *Scalar = Builder.CreateExtractElement(Vector, Builder.getInt32(i));
 1256           Builder.CreateExtractElement(NewVector, Builder.getInt32(i));
 1284                                          Builder.getInt32(i));
 1586     Value *NullVal = Builder.getInt32(0);
 1590         LoopPHI, Builder.getInt32(1), "polly.subregion.iv.inc");
tools/polly/lib/CodeGen/IslNodeBuilder.cpp
 1138   Value *endIdx[4] = {Builder.getInt64(0), Builder.getInt32(3),
 1139                       Builder.getInt64(0), Builder.getInt32(2)};
 1144   Value *beginIdx[4] = {Builder.getInt64(0), Builder.getInt32(3),
 1145                         Builder.getInt64(0), Builder.getInt32(1)};
tools/polly/lib/CodeGen/LoopGeneratorsGOMP.cpp
   44   Value *Args[] = {SubFn, SubFnParam, Builder.getInt32(PollyNumThreads),
tools/polly/lib/CodeGen/LoopGeneratorsKMP.cpp
   52                    Builder.getInt32(4) /* Number of arguments (w/o Task) */,
   69     createCallPushNumThreads(GlobalThreadID, Builder.getInt32(PollyNumThreads));
  185   Builder.CreateAlignedStore(Builder.getInt32(0), IsLastPtr, Alignment);
  208                              Builder.getInt32(1), "polly.hasIteration");
  215                              Builder.getInt32(1), "polly.hasWork");
  345       Builder.getInt32(int(getSchedType(PollyChunkSize, PollyScheduling))),
  404       Builder.getInt32(int(getSchedType(PollyChunkSize, PollyScheduling))),
  482         ArrayType, StrVar, {Builder.getInt32(0), Builder.getInt32(0)}));
  482         ArrayType, StrVar, {Builder.getInt32(0), Builder.getInt32(0)}));
  485         IdentTy, {Builder.getInt32(0), Builder.getInt32(0), Builder.getInt32(0),
  485         IdentTy, {Builder.getInt32(0), Builder.getInt32(0), Builder.getInt32(0),
  485         IdentTy, {Builder.getInt32(0), Builder.getInt32(0), Builder.getInt32(0),
  486                   Builder.getInt32(0), StrPtr});
tools/polly/lib/CodeGen/PerfMonitor.cpp
   51       ConstantStruct::get(ST, Builder.getInt32(10), Fn,
unittests/Analysis/BasicAliasAnalysisTest.cpp
  113   AllocaInst *I8 = B.CreateAlloca(B.getInt8Ty(), B.getInt32(2));
unittests/IR/IRBuilderTest.cpp
  301                                           Builder.getInt32(123));
  612   Constant *C = Builder.getInt32(42);
  778   auto X2 = Builder.CreateExtractElement(Vec, Builder.getInt32(2));
unittests/IR/InstructionsTest.cpp
  664     Builder.getInt32(0),
  665     Builder.getInt32(13),
  666     Builder.getInt32(42) };
unittests/IR/PatternMatch.cpp
   54   Value *One = IRB.CreateAdd(IRB.CreateAdd(IRB.getInt32(1), IRB.getInt32(2)),
   54   Value *One = IRB.CreateAdd(IRB.CreateAdd(IRB.getInt32(1), IRB.getInt32(2)),
   55                              IRB.getInt32(42));
   56   Value *Two = IRB.CreateAdd(One, IRB.getInt32(42));
   57   Value *Leaf = IRB.CreateAdd(IRB.CreateAdd(Two, IRB.getInt32(8)),
   58                               IRB.CreateAdd(Two, IRB.getInt32(13)));
  459   Value *X = IRB.CreateAdd(IRB.getInt32(1), IRB.getInt32(0));
  459   Value *X = IRB.CreateAdd(IRB.getInt32(1), IRB.getInt32(0));
  477   Value *One32 = IRB.getInt32(1);
  511   Value *C128 = IRB.getInt32(128);
  531   Value *X = IRB.getInt32(1);
  532   Value *Y = IRB.getInt32(2);
  782   Value *L = IRB.getInt32(1);
  783   Value *R = IRB.getInt32(2);
  864   Value *FourtyTwo = IRB.getInt32(42);
 1125   Value *L = IRB.getInt32(1);
 1126   Value *R = IRB.getInt32(2);
unittests/Transforms/Utils/CloningTest.cpp
  492     Value* AllocaContent = IBuilder.getInt32(1);
  521     IBuilder.CreateStore(IBuilder.getInt32(2), Alloca);
unittests/Transforms/Utils/LocalTest.cpp
   82   P1->addIncoming(B.getInt32(42), Entry);
   85   P2->addIncoming(B.getInt32(42), Entry);
   88   P3->addIncoming(B.getInt32(42), Entry);
   89   P3->addIncoming(B.getInt32(23), BB);
   92   P4->addIncoming(B.getInt32(42), Entry);
   93   P4->addIncoming(B.getInt32(23), BB);