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

Declarations

include/llvm/IR/Value.h
  249   LLVMContext &getContext() const;

References

include/llvm/IR/GlobalVariable.h
  189     Attrs = Attrs.addAttribute(getContext(), Kind);
  194     Attrs = Attrs.addAttribute(getContext(), Kind, Val);
  234     return AttributeList::get(getContext(), AS);
include/llvm/IR/IRBuilder.h
  822       : IRBuilderBase(IP->getContext(), FPMathTag, OpBundles) {
include/llvm/IR/InstrTypes.h
 1390     PAL = PAL.addAttribute(getContext(), i, Kind);
 1397     PAL = PAL.addAttribute(getContext(), i, Attr);
 1405     PAL = PAL.addParamAttribute(getContext(), ArgNo, Kind);
 1413     PAL = PAL.addParamAttribute(getContext(), ArgNo, Attr);
 1420     PAL = PAL.removeAttribute(getContext(), i, Kind);
 1427     PAL = PAL.removeAttribute(getContext(), i, Kind);
 1435     PAL = PAL.removeParamAttribute(getContext(), ArgNo, Kind);
 1443     PAL = PAL.removeParamAttribute(getContext(), ArgNo, Kind);
 1450     PAL = PAL.addDereferenceableAttr(getContext(), i, Bytes);
 1458     PAL = PAL.addDereferenceableOrNullAttr(getContext(), i, Bytes);
include/llvm/IR/IntrinsicInst.h
  417         addParamAttr(ARG_DEST, Attribute::getWithAlignment(getContext(),
  467                              Attribute::getWithAlignment(BaseCL::getContext(),
  514       assert(V->getType() == Type::getInt8Ty(getContext()) &&
include/llvm/IR/Metadata.h
  351       : Metadata(ID, Uniqued), ReplaceableMetadataImpl(V->getContext()), V(V) {
  380   LLVMContext &getContext() const { return V->getContext(); }
include/llvm/Transforms/IPO/Attributor.h
  463     LLVMContext &Ctx = getAnchorValue().getContext();
 1370     getDeducedAttributes(getAnchorValue().getContext(), DeducedAttrs);
lib/Analysis/ConstantFolding.cpp
  117           VectorType::get(IntegerType::get(C->getContext(), FPWidth), NumSrcElts);
  174       VectorType::get(IntegerType::get(C->getContext(), FPWidth), NumDstElt);
  187       VectorType::get(IntegerType::get(C->getContext(), FPWidth), NumSrcElt);
  270         IntegerType *DstIntTy = Type::getIntNTy(C->getContext(), DstBitSize);
  408       C = FoldBitCast(C, Type::getInt64Ty(C->getContext()), DL);
  412       C = FoldBitCast(C, Type::getInt32Ty(C->getContext()), DL);
  416       C = FoldBitCast(C, Type::getInt16Ty(C->getContext()), DL);
  515       MapTy = Type::getInt16Ty(C->getContext());
  517       MapTy = Type::getInt32Ty(C->getContext());
  519       MapTy = Type::getInt64Ty(C->getContext());
  521       MapTy = PointerType::getIntNTy(C->getContext(),
  678       Constant *Res = ConstantInt::get(CE->getContext(), StrVal);
  910     Constant *C = ConstantInt::get(Ptr->getContext(), Offset + BasePtr);
 1323             ConstantInt::get(CE->getContext(),
lib/Analysis/IVDescriptors.cpp
  101       RT = IntegerType::get(Phi->getContext(), Bits);
  154   return std::make_pair(Type::getIntNTy(Exit->getContext(), MaxBitWidth),
lib/Analysis/InlineCost.cpp
 1003       Constant *CLHS = ConstantInt::get(LHS->getContext(), LHSOffset);
 1004       Constant *CRHS = ConstantInt::get(RHS->getContext(), RHSOffset);
 1049       Constant *CLHS = ConstantInt::get(LHS->getContext(), LHSOffset);
 1050       Constant *CRHS = ConstantInt::get(RHS->getContext(), RHSOffset);
 1679   Type *IntPtrTy = DL.getIntPtrType(V->getContext(), AS);
lib/Analysis/InstructionSimplify.cpp
 2795           return ConstantInt::getTrue(RHSC->getContext());
 2797           return ConstantInt::getFalse(RHSC->getContext());
 2799           return ConstantInt::getFalse(RHSC->getContext());
 2801           return ConstantInt::getTrue(RHSC->getContext());
 2805           return ConstantInt::getTrue(RHSC->getContext());
 2807           return ConstantInt::getFalse(RHSC->getContext());
 2916             return ConstantInt::getFalse(RHS->getContext());
 2918             return ConstantInt::getTrue(RHS->getContext());
 2923           return ConstantInt::getFalse(RHS->getContext());
 2925           return ConstantInt::getTrue(RHS->getContext());
 3234         return ConstantInt::getTrue(RHS->getContext());
 3239         return ConstantInt::getFalse(RHS->getContext());
 3304             return ConstantInt::getFalse(CI->getContext());
 3309             return ConstantInt::getTrue(CI->getContext());
 3316               ConstantInt::getTrue(CI->getContext()) :
 3317               ConstantInt::getFalse(CI->getContext());
 3322               ConstantInt::getFalse(CI->getContext()) :
 3323               ConstantInt::getTrue(CI->getContext());
 3359             return ConstantInt::getFalse(CI->getContext());
 3361             return ConstantInt::getTrue(CI->getContext());
 3368               ConstantInt::getTrue(CI->getContext()) :
 3369               ConstantInt::getFalse(CI->getContext());
 3373               ConstantInt::getFalse(CI->getContext()) :
 3374               ConstantInt::getTrue(CI->getContext());
 4880   Type *Int8PtrTy = Type::getInt8PtrTy(Ptr->getContext());
 4881   Type *Int32Ty = Type::getInt32Ty(Ptr->getContext());
 4883   Type *Int64Ty = Type::getInt64Ty(Ptr->getContext());
lib/Analysis/LazyValueInfo.cpp
 1397                               Type::getInt1Ty(Val->getContext()), isTrueDest));
 1709       return ConstantInt::get(V->getContext(), *SingleVal);
 1746       return ConstantInt::get(V->getContext(), *SingleVal);
lib/Analysis/LoopAccessAnalysis.cpp
 2152   LLVMContext &Ctx = Loc->getContext();
 2213   LLVMContext &Ctx = Loc->getContext();
lib/Analysis/MemoryBuiltins.cpp
  493   ObjectSizeOffsetVisitor Visitor(DL, TLI, Ptr->getContext(), Opts);
lib/Analysis/MemorySSA.cpp
 1782     MUD = new MemoryDef(I->getContext(), nullptr, I, I->getParent(), NextID++);
 1784     MUD = new MemoryUse(I->getContext(), nullptr, I, I->getParent());
lib/Analysis/ScalarEvolution.cpp
 4538             ConstantInt::get(SA->getContext(),
 8080           Type *DestPtrTy = Type::getInt8PtrTy(C->getContext(), AS);
 8091             Type *DestPtrTy = Type::getInt8PtrTy(C->getContext(), AS);
 8105                   C2, Type::getInt32Ty(C->getContext()), true);
lib/Analysis/ScalarEvolutionExpander.cpp
 2261   IntegerType *CountTy = IntegerType::get(Loc->getContext(), SrcBits);
 2266       IntegerType::get(Loc->getContext(), SE.getTypeSizeInBits(ARTy));
 2274       ConstantInt::get(Loc->getContext(), APInt::getNullValue(DstBits));
 2324                            ConstantInt::get(Loc->getContext(), MaxVal));
 2357   return ConstantInt::getFalse(IP->getContext());
 2362   auto *BoolType = IntegerType::get(IP->getContext(), 1);
lib/Analysis/ValueTracking.cpp
 1488         if (II->getArgOperand(1) == ConstantInt::getTrue(II->getContext()))
 1499         if (II->getArgOperand(1) == ConstantInt::getTrue(II->getContext()))
 2725       Op1 = ConstantInt::get(V->getContext(), API);
 3192   LLVMContext &Ctx = V->getContext();
lib/Analysis/VectorUtils.cpp
  589   LLVMContext &Ctx = Inst1->getContext();
lib/AsmParser/LLParser.cpp
 2470         ArgLoc, V, AttributeSet::get(V->getContext(), ArgAttrs)));
lib/Bitcode/Writer/BitcodeWriter.cpp
 2570   LLVMContext &C = CS.getInstruction()->getContext();
lib/CodeGen/AtomicExpandPass.cpp
 1615   LLVMContext &Ctx = I->getContext();
lib/CodeGen/CodeGenPrepare.cpp
 1165   if (TLI.getTypeAction(CI->getContext(), SrcVT) ==
 1167     SrcVT = TLI.getTypeToTransformTo(CI->getContext(), SrcVT);
 1168   if (TLI.getTypeAction(CI->getContext(), DstVT) ==
 1170     DstVT = TLI.getTypeToTransformTo(CI->getContext(), DstVT);
 1746   IRBuilder<> Builder(CountZeros->getContext());
 1865       Constant *RetVal = ConstantInt::getTrue(II->getContext());
 5330       LLVMContext &Ctx = GEP->getContext();
 6023         TrueBlock = BasicBlock::Create(SI->getContext(), "select.true.sink",
 6033         FalseBlock = BasicBlock::Create(SI->getContext(), "select.false.sink",
 6049     FalseBlock = BasicBlock::Create(SI->getContext(), "select.false",
 6230   LLVMContext &Context = Cond->getContext();
 6683   Type *SplitStoreType = Type::getIntNTy(SI.getContext(), HalfValBitSize);
 6725   IRBuilder<> Builder(SI.getContext());
 6744           ConstantInt::get(Type::getInt32Ty(SI.getContext()), 1));
 6959           TLI->getTypeAction(CI->getContext(),
 7293         Br1->setMetadata(LLVMContext::MD_prof, MDBuilder(Br1->getContext())
 7299         Br2->setMetadata(LLVMContext::MD_prof, MDBuilder(Br2->getContext())
 7326         Br1->setMetadata(LLVMContext::MD_prof, MDBuilder(Br1->getContext())
 7332         Br2->setMetadata(LLVMContext::MD_prof, MDBuilder(Br2->getContext())
lib/CodeGen/ExpandMemCmp.cpp
  249     BasicBlock *BB = BasicBlock::Create(CI->getContext(), "loadbb",
  256   ResBlock.BB = BasicBlock::Create(CI->getContext(), "res_block",
  266     auto *ByteType = Type::getInt8Ty(CI->getContext());
  281   Type *LoadSizeType = Type::getInt8Ty(CI->getContext());
  290   LoadSrc1 = Builder.CreateZExt(LoadSrc1, Type::getInt32Ty(CI->getContext()));
  291   LoadSrc2 = Builder.CreateZExt(LoadSrc2, Type::getInt32Ty(CI->getContext()));
  336                     : IntegerType::get(CI->getContext(), MaxLoadSize * 8);
  341         IntegerType::get(CI->getContext(), CurLoadEntry.LoadSize * 8);
  420     Value *Zero = ConstantInt::get(Type::getInt32Ty(CI->getContext()), 0);
  444       IntegerType::get(CI->getContext(), CurLoadEntry.LoadSize * 8);
  445   Type *MaxLoadType = IntegerType::get(CI->getContext(), MaxLoadSize * 8);
  491     Value *Zero = ConstantInt::get(Type::getInt32Ty(CI->getContext()), 0);
  505     Value *Res = ConstantInt::get(Type::getInt32Ty(CI->getContext()), 1);
  527   Type *MaxLoadType = IntegerType::get(CI->getContext(), MaxLoadSize * 8);
  538   PhiRes = Builder.CreatePHI(Type::getInt32Ty(CI->getContext()), 2, "phi.res");
  560   return Builder.CreateZExt(Cmp, Type::getInt32Ty(CI->getContext()));
  566   Type *LoadSizeType = IntegerType::get(CI->getContext(), Size * 8);
lib/CodeGen/GlobalISel/IRTranslator.cpp
  944   Type *Int32Ty = Type::getInt32Ty(U.getContext());
 1903       auto *NewIdxCI = ConstantInt::get(CI->getContext(), NewIdx);
 2120     auto *ZeroTy = Type::getIntNTy(C.getContext(), NullSize);
lib/CodeGen/InterleavedAccessPass.cpp
  404   IRBuilder<> Builder(Extracts[0]->getContext());
lib/CodeGen/InterleavedLoadCombinePass.cpp
  888           ConstantInt::get(Type::getInt32Ty(LI->getContext()), 0),
  889           ConstantInt::get(Type::getInt32Ty(LI->getContext()), i),
lib/CodeGen/IntrinsicLowering.cpp
  219                   Type::getFloatTy(CI->getContext()));
  223                   Type::getDoubleTy(CI->getContext()));
  236   LLVMContext &Context = CI->getContext();
lib/CodeGen/MachineFunction.cpp
 1036   Type *IntTy = IntegerType::get(A->getContext(), StoreSize*8);
lib/CodeGen/ScalarizeMaskedMemIntrin.cpp
  137   IRBuilder<> Builder(CI->getContext());
  275   IRBuilder<> Builder(CI->getContext());
  398   IRBuilder<> Builder(CI->getContext());
  525   IRBuilder<> Builder(CI->getContext());
  607   IRBuilder<> Builder(CI->getContext());
  718   IRBuilder<> Builder(CI->getContext());
lib/CodeGen/SelectionDAG/FastISel.cpp
  375       VT = TLI.getTypeToTransformTo(V->getContext(), VT).getSimpleVT();
  414         Constant::getNullValue(DL.getIntPtrType(V->getContext())));
  432             getRegForValue(ConstantInt::get(V->getContext(), SIntVal));
  599       VT = TLI.getTypeToTransformTo(I->getContext(), VT);
 1727   EVT IntVT = EVT::getIntegerVT(I->getContext(), VT.getSizeInBits());
lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
  422   if (TLI->getNumRegisters(PN->getContext(), IntVT) != 1)
  424   IntVT = TLI->getTypeToTransformTo(PN->getContext(), IntVT);
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
 1323       RegsForValue RFV(V->getContext(), TLI, DAG.getDataLayout(), Reg,
 5554       RegsForValue RFV(V->getContext(), TLI, DAG.getDataLayout(), VMI->second,
 7205         Type::getIntNTy(PtrVal->getContext(), LoadVT.getScalarSizeInBits());
 7337     EVT CmpVT = EVT::getIntegerVT(LHS->getContext(), LoadVT.getSizeInBits());
 9380   RegsForValue RFV(V->getContext(), TLI, DAG.getDataLayout(), Reg, V->getType(),
lib/CodeGen/SjLjEHPrepare.cpp
  106   Type *Int32Ty = Type::getInt32Ty(I->getContext());
  115       ConstantInt::get(Type::getInt32Ty(I->getContext()), Number);
lib/CodeGen/StackProtector.cpp
  386   PointerType *PtrTy = Type::getInt8PtrTy(RI->getContext());
lib/ExecutionEngine/Interpreter/Execution.cpp
  918   Type *RetTy = Type::getVoidTy(I.getContext());
lib/FuzzMutate/Operations.cpp
  198     auto *Int32Ty = Type::getInt32Ty(Cur[0]->getContext());
  256     auto *Int32Ty = Type::getInt32Ty(Cur[0]->getContext());
  302     auto *Int32Ty = Type::getInt32Ty(Cur[0]->getContext());
lib/IR/AsmWriter.cpp
 4059       writeAtomic(LI->getContext(), LI->getOrdering(), LI->getSyncScopeID());
 4064       writeAtomic(SI->getContext(), SI->getOrdering(), SI->getSyncScopeID());
 4068     writeAtomicCmpXchg(CXI->getContext(), CXI->getSuccessOrdering(),
 4071     writeAtomic(RMWI->getContext(), RMWI->getOrdering(),
 4074     writeAtomic(FI->getContext(), FI->getOrdering(), FI->getSyncScopeID());
lib/IR/AutoUpgrade.cpp
  849   LLVMContext &C = GV->getContext();
 1648   LLVMContext &C = CI->getContext();
 3774     LLVMContext &Context = V->getContext();
 3794     LLVMContext &Context = C->getContext();
lib/IR/ConstantFold.cpp
   60   Type *Ty = IntegerType::get(CV->getContext(), 32);
  196     return ConstantInt::get(FP->getContext(),
  228     return ConstantInt::get(CI->getContext(), V);
  280           IntegerType::get(CE->getContext(), ByteSize * 8));
  303           IntegerType::get(CE->getContext(), ByteSize * 8));
  319       return Constant::getNullValue(IntegerType::get(CE->getContext(),
  339       return ConstantExpr::getTrunc(Res, IntegerType::get(C->getContext(),
  578     Type *Ty = IntegerType::get(V->getContext(), 32);
  605       return ConstantFP::get(V->getContext(), Val);
  621       return ConstantInt::get(FPC->getContext(), IntVal);
  689       return ConstantFP::get(V->getContext(), apf);
  695       return ConstantInt::get(V->getContext(),
  702       return ConstantInt::get(V->getContext(),
  712       return ConstantInt::get(V->getContext(),
  742     Type *Ty = IntegerType::get(CondV->getContext(), 32);
  842   auto *Ty = Type::getInt32Ty(Val->getContext());
  884       Type *Ty = IntegerType::get(V2->getContext(), 32);
  889       Type *Ty = IntegerType::get(V1->getContext(), 32);
  967       return ConstantFP::get(C->getContext(), neg(CV));
 1227         return ConstantInt::get(CI1->getContext(), C1V + C2V);
 1229         return ConstantInt::get(CI1->getContext(), C1V - C2V);
 1231         return ConstantInt::get(CI1->getContext(), C1V * C2V);
 1234         return ConstantInt::get(CI1->getContext(), C1V.udiv(C2V));
 1239         return ConstantInt::get(CI1->getContext(), C1V.sdiv(C2V));
 1242         return ConstantInt::get(CI1->getContext(), C1V.urem(C2V));
 1247         return ConstantInt::get(CI1->getContext(), C1V.srem(C2V));
 1249         return ConstantInt::get(CI1->getContext(), C1V & C2V);
 1251         return ConstantInt::get(CI1->getContext(), C1V | C2V);
 1253         return ConstantInt::get(CI1->getContext(), C1V ^ C2V);
 1256           return ConstantInt::get(CI1->getContext(), C1V.shl(C2V));
 1260           return ConstantInt::get(CI1->getContext(), C1V.lshr(C2V));
 1264           return ConstantInt::get(CI1->getContext(), C1V.ashr(C2V));
 1292         return ConstantFP::get(C1->getContext(), C3V);
 1295         return ConstantFP::get(C1->getContext(), C3V);
 1298         return ConstantFP::get(C1->getContext(), C3V);
 1301         return ConstantFP::get(C1->getContext(), C3V);
 1304         return ConstantFP::get(C1->getContext(), C3V);
 1368       return ConstantInt::getFalse(C1->getContext());
 1789     ResultTy = VectorType::get(Type::getInt1Ty(C1->getContext()),
 1792     ResultTy = Type::getInt1Ty(C1->getContext());
 1829           return ConstantInt::getFalse(C1->getContext());
 1831           return ConstantInt::getTrue(C1->getContext());
 1841           return ConstantInt::getFalse(C1->getContext());
 1843           return ConstantInt::getTrue(C1->getContext());
 1924     Type *Ty = IntegerType::get(C1->getContext(), 32);
 2436     Type *ExtendedTy = Type::getIntNTy(Div->getContext(), CommonExtendedWidth);
lib/IR/Constants.cpp
  950   return SequentialTy::get(V[0]->getContext(), Elts);
  963   return SequentialTy::getFP(V[0]->getContext(), Elts);
 1065   return getTypeForElements(V[0]->getContext(), V, Packed);
 1377   getContext().pImpl->CAZConstants.erase(getType());
 1443   getContext().pImpl->CPNConstants.erase(getType());
 1457   getContext().pImpl->UVConstants.erase(getType());
 1518     getContext().pImpl->BlockAddresses[std::make_pair(NewF, NewBB)];
 1526   getContext().pImpl->BlockAddresses.erase(std::make_pair(getFunction(),
 1864   LLVMContextImpl *pImpl = C->getContext().pImpl;
 1923   LLVMContextImpl *pImpl = C1->getContext().pImpl;
 2003   LLVMContextImpl *pImpl = C->getContext().pImpl;
 2061   LLVMContextImpl *pImpl = C->getContext().pImpl;
 2082   Type *ResultTy = Type::getInt1Ty(LHS->getContext());
 2107   Type *ResultTy = Type::getInt1Ty(LHS->getContext());
 2133   LLVMContextImpl *pImpl = Val->getContext().pImpl;
 2156   LLVMContextImpl *pImpl = Val->getContext().pImpl;
 2203   LLVMContextImpl *pImpl = Agg->getContext().pImpl;
 2227   LLVMContextImpl *pImpl = Agg->getContext().pImpl;
 2535     getContext().pImpl->CDSConstants.erase(Slot);
 2656       return get(V->getContext(), Elts);
 2660       return get(V->getContext(), Elts);
 2664       return get(V->getContext(), Elts);
 2668     return get(V->getContext(), Elts);
 2675       return getFP(V->getContext(), Elts);
 2680       return getFP(V->getContext(), Elts);
 2685       return getFP(V->getContext(), Elts);
 2776     return ConstantFP::get(getContext(), getElementAsAPFloat(Elt));
 2893   return getContext().pImpl->ArrayConstants.replaceOperandsInPlace(
 2929   return getContext().pImpl->StructConstants.replaceOperandsInPlace(
 2955   return getContext().pImpl->VectorConstants.replaceOperandsInPlace(
 2981   return getContext().pImpl->ExprConstants.replaceOperandsInPlace(
lib/IR/Core.cpp
  867     return wrap(MetadataAsValue::get(I->getContext(), MD));
  882   return MDNode::get(MAV->getContext(), MD);
  990     return getMDNodeOperandImpl(V->getContext(),
 1186   LLVMContext &Context = unwrap(V)->getContext();
 2492   A->addAttr(Attribute::getWithAlignment(A->getContext(), Align(align)));
 2792       Attribute::getWithAlignment(Call->getContext(), Align(align));
lib/IR/Globals.cpp
  191   return getContext().pImpl->GlobalValuePartitions[this];
  202     S = getContext().pImpl->Saver.save(S);
  203   getContext().pImpl->GlobalValuePartitions[this] = S;
  212   return getContext().pImpl->GlobalObjectSections[this];
  223     S = getContext().pImpl->Saver.save(S);
  224   getContext().pImpl->GlobalObjectSections[this] = S;
lib/IR/IRBuilder.cpp
  293       0, Attribute::getWithAlignment(CI->getContext(), Align(DstAlign)));
  295       1, Attribute::getWithAlignment(CI->getContext(), Align(SrcAlign)));
lib/IR/Instruction.cpp
  752   MDBuilder MDB(getContext());
lib/IR/Instructions.cpp
   88     if (VT->getElementType() != Type::getInt1Ty(Op0->getContext()))
   96   } else if (Op0->getType() != Type::getInt1Ty(Op0->getContext())) {
  362   auto *ContextImpl = getContext().pImpl;
  485   MDBuilder MDB(getContext());
  497         Type::getInt64Ty(getContext()), Val.udiv(APT).getLimitedValue())));
  509           ConstantInt::get(Type::getInt64Ty(getContext()),
  512   setMetadata(LLVMContext::MD_prof, MDNode::get(getContext(), Vals));
  865     : Instruction(Type::getVoidTy(RI.getContext()), Instruction::Ret,
  898     : Instruction(Type::getVoidTy(RI.getContext()), Instruction::Resume,
  904     : Instruction(Type::getVoidTy(Exn->getContext()), Instruction::Resume,
  910     : Instruction(Type::getVoidTy(Exn->getContext()), Instruction::Resume,
  941     : Instruction(Type::getVoidTy(CleanupPad->getContext()),
  950     : Instruction(Type::getVoidTy(CleanupPad->getContext()),
  966     : Instruction(Type::getVoidTy(CRI.getContext()), Instruction::CatchRet,
 1172     : Instruction(Type::getVoidTy(BI.getContext()), Instruction::Br,
 1394     : Instruction(Type::getVoidTy(val->getContext()), Store,
 1408     : Instruction(Type::getVoidTy(val->getContext()), Store,
 1474           StructType::get(Cmp->getType(), Type::getInt1Ty(Cmp->getContext())),
 1486           StructType::get(Cmp->getType(), Type::getInt1Ty(Cmp->getContext())),
 1828   Type *Int32Ty = Type::getInt32Ty(getContext());
 3812     : Instruction(Type::getVoidTy(Value->getContext()), Instruction::Switch,
 3823     : Instruction(Type::getVoidTy(Value->getContext()), Instruction::Switch,
 4043     : Instruction(Type::getVoidTy(Address->getContext()),
 4050     : Instruction(Type::getVoidTy(Address->getContext()),
 4056     : Instruction(Type::getVoidTy(IBI.getContext()), Instruction::IndirectBr,
 4169   return new FenceInst(getContext(), getOrdering(), getSyncScopeID());
 4307   LLVMContext &Context = getContext();
lib/IR/Metadata.cpp
  121   LLVMContext &Context = getContext();
  351   auto &Context = V->getContext();
  369   return V->getContext().pImpl->ValuesAsMetadata.lookup(V);
 1188   setMetadata(getContext().getMDKindID(Kind), Node);
 1192   return getMetadataImpl(getContext().getMDKindID(Kind));
 1199   auto &InstructionMetadata = getContext().pImpl->InstructionMetadata;
 1234     auto &Info = getContext().pImpl->InstructionMetadata[this];
 1245           (getContext().pImpl->InstructionMetadata.count(this) > 0)) &&
 1249   auto &Info = getContext().pImpl->InstructionMetadata[this];
 1257   getContext().pImpl->InstructionMetadata.erase(this);
 1274   auto &Info = getContext().pImpl->InstructionMetadata[this];
 1293          getContext().pImpl->InstructionMetadata.count(this) &&
 1295   const auto &Info = getContext().pImpl->InstructionMetadata.find(this)->second;
 1304          getContext().pImpl->InstructionMetadata.count(this) &&
 1306   const auto &Info = getContext().pImpl->InstructionMetadata.find(this)->second;
 1374   getContext().pImpl->InstructionMetadata.erase(this);
 1381     getContext().pImpl->GlobalObjectMetadata[this].get(KindID, MDs);
 1387     getMetadata(getContext().getMDKindID(Kind), MDs);
 1394   getContext().pImpl->GlobalObjectMetadata[this].insert(KindID, MD);
 1398   addMetadata(getContext().getMDKindID(Kind), MD);
 1406   auto &Store = getContext().pImpl->GlobalObjectMetadata[this];
 1420   getContext().pImpl->GlobalObjectMetadata[this].getAll(MDs);
 1426   getContext().pImpl->GlobalObjectMetadata.erase(this);
 1437   setMetadata(getContext().getMDKindID(Kind), N);
 1442     return getContext().pImpl->GlobalObjectMetadata[this].lookup(KindID);
 1447   return getMetadata(getContext().getMDKindID(Kind));
 1462                   *MDNode::get(getContext(), {NewOffsetMD, TypeId}));
 1484       E = DIExpression::get(getContext(), Elements);
 1485       Attachment = DIGlobalVariableExpression::get(getContext(), GV, E);
 1494       *MDTuple::get(getContext(),
 1496                          Type::getInt64Ty(getContext()), Offset)),
 1502               *MDNode::get(getContext(),
 1504                                Type::getInt64Ty(getContext()), Visibility))}));
lib/IR/Value.cpp
  189   LLVMContext &Ctx = getContext();
  198   LLVMContext &Ctx = getContext();
  225   if (getContext().shouldDiscardValueNames() && !isa<GlobalValue>(this))
  804   LLVMContextImpl *pImpl = getValPtr()->getContext().pImpl;
  862   LLVMContextImpl *pImpl = getValPtr()->getContext().pImpl;
  875   LLVMContextImpl *pImpl = V->getContext().pImpl;
  931   LLVMContextImpl *pImpl = Old->getContext().pImpl;
lib/IR/Verifier.cpp
 3632         FromPad = ConstantTokenNone::get(II->getContext());
 3842         UnwindPad = ConstantTokenNone::get(FPI.getContext());
 3912         SwitchUnwindPad = ConstantTokenNone::get(FPI.getContext());
lib/Linker/IRMover.cpp
  859   PointerType *VoidPtrTy = Type::getInt8Ty(SrcGV->getContext())->getPointerTo();
  863     EltTy = StructType::get(SrcGV->getContext(), Tys, false);
lib/Target/AArch64/AArch64FalkorHWPFFix.cpp
  169                          MDNode::get(LoadI->getContext(), {}));
lib/Target/AArch64/AArch64FastISel.cpp
 3866     CCState CCInfo(CC, F.isVarArg(), *FuncInfo.MF, ValLocs, I->getContext());
lib/Target/AMDGPU/AMDGPUAnnotateUniformValues.cpp
   73   I->setMetadata("amdgpu.uniform", MDNode::get(I->getContext(), {}));
   76   I->setMetadata("amdgpu.noclobber", MDNode::get(I->getContext(), {}));
  144           Type::getInt32Ty(Ptr->getContext()), APInt(64, 0));
lib/Target/AMDGPU/AMDGPUSubtarget.cpp
  487   MDBuilder MDB(I->getContext());
lib/Target/AMDGPU/SIISelLowering.cpp
  910     AttributeList Attr = Intrinsic::getAttributes(CI.getContext(),
lib/Target/ARM/ARMConstantPoolValue.cpp
  162   return new ARMConstantPoolConstant((Type*)Type::getInt32Ty(GV->getContext()),
lib/Target/ARM/ARMFastISel.cpp
 2114     CCState CCInfo(CC, F.isVarArg(), *FuncInfo.MF, ValLocs, I->getContext());
lib/Target/Hexagon/HexagonISelLowering.cpp
  898   LLVMContext &Ctx = ConstVal->getContext();
lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp
 2143   LLVMContext &Ctx = SI->getContext();
lib/Target/Mips/MipsFastISel.cpp
 1706                        I->getContext());
lib/Target/NVPTX/NVPTXAsmPrinter.cpp
 1803     if (ETy == Type::getInt8Ty(CPV->getContext())) {
 1807     } else if (ETy == Type::getInt16Ty(CPV->getContext())) {
 1811     } else if (ETy == Type::getInt32Ty(CPV->getContext())) {
 1833     } else if (ETy == Type::getInt64Ty(CPV->getContext())) {
 1864     if (Ty == Type::getHalfTy(CPV->getContext())) {
 1869     } else if (Ty == Type::getFloatTy(CPV->getContext())) {
 1873     } else if (Ty == Type::getDoubleTy(CPV->getContext())) {
lib/Target/NVPTX/NVPTXImageOptimizer.cpp
   96     replaceWith(&I, ConstantInt::getTrue(I.getContext()));
  100     replaceWith(&I, ConstantInt::getFalse(I.getContext()));
  113     replaceWith(&I, ConstantInt::getTrue(I.getContext()));
  119     replaceWith(&I, ConstantInt::getFalse(I.getContext()));
  131     replaceWith(&I, ConstantInt::getTrue(I.getContext()));
  138     replaceWith(&I, ConstantInt::getFalse(I.getContext()));
lib/Target/PowerPC/PPCBoolRetToInt.cpp
   93     Type *IntTy = ST->isPPC64() ? Type::getInt64Ty(V->getContext())
   94                                 : Type::getInt32Ty(V->getContext());
  263     Type *Int1Ty = Type::getInt1Ty(U->getContext());
lib/Target/X86/X86FastISel.cpp
  661     Val = Constant::getNullValue(DL.getIntPtrType(Val->getContext()));
 1194     CCState CCInfo(CC, F.isVarArg(), *FuncInfo.MF, ValLocs, I->getContext());
 1399     Op1 = Constant::getNullValue(DL.getIntPtrType(Op0->getContext()));
 3260           Val = ConstantExpr::getSExt(CI, Type::getInt32Ty(CI->getContext()));
 3262           Val = ConstantExpr::getZExt(CI, Type::getInt32Ty(CI->getContext()));
lib/Target/X86/X86InterleavedAccess.cpp
  204     VecBaseTy = VectorType::get(Type::getInt8Ty(LI->getContext()), 16);
lib/Transforms/AggressiveInstCombine/TruncInstCombine.cpp
  271   return IntegerType::get(CurrentTruncInst->getContext(), MinBitWidth);
lib/Transforms/Coroutines/CoroCleanup.cpp
   46       SubFn->getContext(), {Builder.getInt8PtrTy(), Builder.getInt8PtrTy()});
lib/Transforms/Coroutines/CoroFrame.cpp
  588   LLVMContext &C = CB->getContext();
lib/Transforms/Coroutines/CoroInstr.h
  127                   ConstantPointerNull::get(Type::getInt8PtrTy(getContext())));
  188     auto *const Int8PtrTy = Type::getInt8PtrTy(getContext());
lib/Transforms/Coroutines/CoroSplit.cpp
  255   auto &Context = End->getContext();
lib/Transforms/Coroutines/Coroutines.cpp
  176       Elide ? ConstantPointerNull::get(Type::getInt8PtrTy(CoroId->getContext()))
lib/Transforms/IPO/Attributor.cpp
  358   LLVMContext &Ctx = IRP.getAnchorValue().getContext();
 3823     getDeducedAttributes(IRP.getAnchorValue().getContext(), DeducedAttrs);
lib/Transforms/IPO/GlobalOpt.cpp
  548   Constant *NullInt =Constant::getNullValue(Type::getInt32Ty(GV->getContext()));
  884     new GlobalVariable(Type::getInt1Ty(GV->getContext()), false,
  886                        ConstantInt::getFalse(GV->getContext()),
  894       new StoreInst(ConstantInt::getTrue(GV->getContext()), InitBool, false,
  920         LV = ConstantInt::getFalse(GV->getContext());
 1369     BasicBlock *FreeBlock = BasicBlock::Create(Cmp->getContext(), "free_it",
 1371     BasicBlock *NextBlock = BasicBlock::Create(Cmp->getContext(), "next",
 1614   if (GVElType == Type::getInt1Ty(GV->getContext()) ||
 1628   GlobalVariable *NewGV = new GlobalVariable(Type::getInt1Ty(GV->getContext()),
 1631                                         ConstantInt::getFalse(GV->getContext()),
 1639   assert(InitVal->getType() != Type::getInt1Ty(GV->getContext()) &&
 1682           DIGlobalVariableExpression::get(NewGV->getContext(), DGV, E);
 1704         StoreVal = ConstantInt::get(Type::getInt1Ty(GV->getContext()),
 2607   PointerType *Int8PtrTy = Type::getInt8PtrTy(V.getContext(), 0);
lib/Transforms/IPO/GlobalSplit.cpp
   73   IntegerType *Int32Ty = Type::getInt32Ty(GV.getContext());
  108           *MDNode::get(GV.getContext(),
lib/Transforms/IPO/Inliner.cpp
  225         if (auto *MDV = MetadataAsValue::getIfExists(AI->getContext(), L))
  523   Attribute attr = Attribute::get(CS->getContext(), "inline-remark", message);
lib/Transforms/IPO/SampleProfile.cpp
 1493     misexpect::verifyMisExpect(TI, Weights, TI->getContext());
lib/Transforms/InstCombine/InstCombineCalls.cpp
   97   IntegerType *BoolTy = Type::getInt1Ty(V->getContext());
  163   IntegerType* IntType = IntegerType::get(MI->getContext(), Size<<3);
  263     Type *ITy = IntegerType::get(MI->getContext(), Len*8);  // n=1 -> i8.
  730     Type *IntTy64 = Type::getInt64Ty(II.getContext());
  773       Type *IntTy8 = Type::getInt8Ty(II.getContext());
  774       Type *IntTy32 = Type::getInt32Ty(II.getContext());
  853     Type *IntTy8 = Type::getInt8Ty(II.getContext());
  854     Type *IntTy32 = Type::getInt32Ty(II.getContext());
  892     Type *IntTy64 = Type::getInt64Ty(II.getContext());
  901     Type *IntTy8 = Type::getInt8Ty(II.getContext());
  922   auto *MaskEltTy = Type::getInt32Ty(II.getContext());
  969   auto *MaskEltTy = Type::getInt32Ty(II.getContext());
 1019   auto *MaskEltTy = Type::getInt32Ty(II.getContext());
 1251                    MDNode::get(II.getContext(), LowAndHigh));
 1288                    MDNode::get(II.getContext(), LowAndHigh));
 1429   auto *ShuffleMask = ConstantDataVector::get(II.getContext(),
 2485           VectorType::get(Type::getHalfTy(II->getContext()), RetWidth);
 3243                         ConstantInt::get(Type::getInt32Ty(II->getContext()),
 3339         return replaceInstUsesWith(CI, ConstantFP::get(II->getContext(), Val));
 3361         return replaceInstUsesWith(CI, ConstantFP::get(II->getContext(),
 3486             ConstantFP::get(II->getContext(), Val0),
 3487             ConstantFP::get(II->getContext(), Val1) });
 3691         Metadata *MDArgs[] = {MDString::get(II->getContext(), "exec")};
 3692         MDNode *MD = MDNode::get(II->getContext(), MDArgs);
 3693         Value *Args[] = {MetadataAsValue::get(II->getContext(), MD)};
 3958       MDNode *MD = MDNode::get(II->getContext(), None);
 4230                             Call.getContext(), Op0C->getZExtValue()));
 4234                             Call.getContext(), Op0C->getZExtValue()));
 4238                           Call.getContext(), Op1C->getZExtValue()));
 4246                             Call.getContext(), Size.getZExtValue()));
 4254                               Call.getContext(), Len));
 4260                 Call.getContext(), std::min(Len, Op1C->getZExtValue() + 1)));
 4290     LLVMContext &Ctx = Call.getContext();
 4376                       Call.getContext(),
 4566   LLVMContext &Ctx = Call.getContext();
lib/Transforms/InstCombine/InstCombineCasts.cpp
 1457   if (CFP->getType() == Type::getPPC_FP128Ty(CFP->getContext()))
 1461     return Type::getHalfTy(CFP->getContext());
 1464     return Type::getFloatTy(CFP->getContext());
 1468     return Type::getDoubleTy(CFP->getContext());
 1764     Type *Ty = DL.getIntPtrType(CI.getContext(), AS);
 1814   Type *PtrTy = DL.getIntPtrType(CI.getContext(), AS);
 1875                                ConstantDataVector::get(V2->getContext(),
 1940       C = ConstantExpr::getBitCast(C, IntegerType::get(V->getContext(),
 1943     Type *ElementIntTy = IntegerType::get(C->getContext(), ElementSize);
 2365                      Constant::getNullValue(Type::getInt32Ty(CI.getContext())));
 2397                      Constant::getNullValue(Type::getInt32Ty(CI.getContext())));
lib/Transforms/InstCombine/InstCombineCompares.cpp
  402       Ty = DL.getSmallestLegalIntType(Init->getContext(), ArrayElementCount);
  654       Base->getContext(), DL.getIndexTypeSizeInBits(Start->getType()));
  669   IRBuilder<> Builder(Base->getContext());
  764   Type *IndexType = IntegerType::get(V->getContext(),
 1314   Type *NewType = IntegerType::get(OrigAdd->getContext(), NewWidth);
 1865       Type *NTy = IntegerType::get(Cmp.getContext(), ExactLogBase2 + 1);
 2151     Type *TruncTy = IntegerType::get(Cmp.getContext(), TypeBits - Amt);
lib/Transforms/InstCombine/InstCombineInternal.h
  693     auto &Ctx = InsertAt->getContext();
lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
  601           Type::getIntNTy(LI.getContext(), DL.getTypeStoreSizeInBits(Ty)));
lib/Transforms/InstCombine/InstCombineSelect.cpp
  877     NewI->setArgOperand(1, ConstantInt::getFalse(NewI->getContext()));
  886     II->setArgOperand(1, ConstantInt::getTrue(II->getContext()));
 1807   Type *Int32Ty = Type::getInt32Ty(CondVal->getContext());
lib/Transforms/InstCombine/InstCombineShifts.cpp
  670                                      ConstantInt::get(I.getContext(), MaskV),
  702           Constant *Mask = ConstantInt::get(I.getContext(), Bits);
  737           Constant *Mask = ConstantInt::get(I.getContext(), Bits);
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
 1334             Op, Value, ConstantInt::get(Type::getInt32Ty(I->getContext()), Idx),
 1345           Elts.push_back(UndefValue::get(Type::getInt32Ty(I->getContext())));
 1347           Elts.push_back(ConstantInt::get(Type::getInt32Ty(I->getContext()),
lib/Transforms/InstCombine/InstCombineVectorOps.cpp
  235       Type *SrcIntTy = IntegerType::getIntNTy(Scalar->getContext(), SrcWidth);
  247       Type *DestIntTy = IntegerType::getIntNTy(Scalar->getContext(), DestWidth);
  424         Type *Int32Ty = Type::getInt32Ty(EI.getContext());
  452     Mask.assign(NumElts, UndefValue::get(Type::getInt32Ty(V->getContext())));
  458       Mask.push_back(ConstantInt::get(Type::getInt32Ty(V->getContext()), i));
  464       Mask.push_back(ConstantInt::get(Type::getInt32Ty(V->getContext()),
  484         Mask[InsertedIdx] = UndefValue::get(Type::getInt32Ty(V->getContext()));
  501               ConstantInt::get(Type::getInt32Ty(V->getContext()),
  506               ConstantInt::get(Type::getInt32Ty(V->getContext()),
  540   IntegerType *IntType = Type::getInt32Ty(InsElt->getContext());
  614     Mask.assign(NumElts, UndefValue::get(Type::getInt32Ty(V->getContext())));
  620     Mask.assign(NumElts, ConstantInt::get(Type::getInt32Ty(V->getContext()),0));
  651               Mask[i] = ConstantInt::get(Type::getInt32Ty(V->getContext()), i);
  657             ConstantInt::get(Type::getInt32Ty(V->getContext()),
  669                 Type::getInt32Ty(V->getContext()),
  686     Mask.push_back(ConstantInt::get(Type::getInt32Ty(V->getContext()), i));
  799   Type *Int32Ty = Type::getInt32Ty(InsElt.getContext());
  839   Type *I32Ty = IntegerType::getInt32Ty(Shuf->getContext());
  875   Type *I32Ty = IntegerType::getInt32Ty(Shuf->getContext());
  968         Type *Int32Ty = Type::getInt32Ty(Shuf->getContext());
 1004         Mask[I] = ConstantInt::get(Type::getInt32Ty(InsElt.getContext()),
 1014         Mask[I] = ConstantInt::get(Type::getInt32Ty(InsElt.getContext()), I);
 1294   Type *I32Ty = IntegerType::getInt32Ty(V->getContext());
 1856   Type *I32Ty = IntegerType::getInt32Ty(Shuf.getContext());
 1899   Type *Int32Ty = Type::getInt32Ty(SVI.getContext());
lib/Transforms/InstCombine/InstructionCombining.cpp
 2402                             ConstantInt::get(Type::getInt1Ty(C->getContext()),
 2629     IntegerType *Ty = IntegerType::get(SI.getContext(), NewWidth);
 2636       Case.setValue(ConstantInt::get(SI.getContext(), TruncatedCase));
 3175             0, MetadataAsValue::get(I->getContext(),
 3192         DII->setOperand(0, MetadataAsValue::get(DII->getContext(),
lib/Transforms/Instrumentation/BoundsChecking.cpp
   91                     ? ConstantInt::getFalse(Ptr->getContext())
   96                     ? ConstantInt::getFalse(Ptr->getContext())
lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
 1647             CI->getContext(), CI->getAttributes()));
lib/Transforms/Instrumentation/IndirectCallPromotion.cpp
  305   MDBuilder MDB(Inst->getContext());
  313     MDBuilder MDB(NewInst->getContext());
lib/Transforms/Instrumentation/PGOInstrumentation.cpp
 1711   misexpect::verifyMisExpect(TI, Weights, TI->getContext());
lib/Transforms/Instrumentation/PoisonChecking.cpp
  228     return ConstantInt::getFalse(V->getContext());
  234   return ConstantInt::getFalse(V->getContext());
lib/Transforms/ObjCARC/ObjCARCContract.cpp
  414   LLVMContext &C = Release->getContext();
  495           InlineAsm::get(FunctionType::get(Type::getVoidTy(Inst->getContext()),
lib/Transforms/ObjCARC/ObjCARCOpts.cpp
  860         LLVMContext &C = Inst->getContext();
lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
  323   Constant *TorF = ConstantInt::get(Type::getInt1Ty(Cmp->getContext()), Result);
  599   LLVMContext &Ctx = CS.getInstruction()->getContext();
  643   auto *TruncTy = Type::getIntNTy(Instr->getContext(), NewWidth);
  825     ConstantInt::getTrue(C->getContext()) :
  826     ConstantInt::getFalse(C->getContext());
lib/Transforms/Scalar/GVN.cpp
 1405       Type *Int8Ty = Type::getInt8Ty(V->getContext());
 1422   Constant *True = ConstantInt::getTrue(V->getContext());
lib/Transforms/Scalar/GuardWidening.cpp
  430                                ? ConstantInt::getFalse(Instr->getContext())
  431                                : ConstantInt::getTrue(Instr->getContext());
  570           ConstantInt *NewRHS = ConstantInt::get(Cond0->getContext(), NewRHSAP);
  653   auto &Ctx = CheckCond->getContext();
lib/Transforms/Scalar/IndVarSimplify.cpp
  455   IntegerType *Int32Ty = Type::getInt32Ty(PN->getContext());
 2361     assert(SE->getSizeOfExpr(IntegerType::getInt64Ty(IndVar->getContext()),
lib/Transforms/Scalar/JumpThreading.cpp
  705         InterestingVal = ConstantInt::getTrue(I->getContext());
  707         InterestingVal = ConstantInt::getFalse(I->getContext());
  812           Res = ConstantInt::get(Type::getInt1Ty(LHS->getContext()), ResT);
lib/Transforms/Scalar/LICM.cpp
  989   auto *PtrInt8Ty = PointerType::get(Type::getInt8Ty(LI->getContext()),
lib/Transforms/Scalar/LoopIdiomRecognize.cpp
 1565       {InitX, ZeroCheck ? ConstantInt::getTrue(InitX->getContext())
 1566                         : ConstantInt::getFalse(InitX->getContext())};
lib/Transforms/Scalar/LoopUnswitch.cpp
  576         Cond == ConstantInt::getTrue(Cond->getContext())
  944       Val->getType() != Type::getInt1Ty(LIC->getContext()))
  946   else if (Val != ConstantInt::getTrue(Val->getContext())) {
 1457   LLVMContext &Context = Val->getContext();
 1467       Replacement = ConstantInt::get(Type::getInt1Ty(Val->getContext()),
 1663       LLVMContext &Ctx = Inst->getContext();
lib/Transforms/Scalar/LoopVersioningLICM.cpp
  539   MDBuilder MDB(I->getContext());
  557                               MDNode::get(Inst.getContext(), NoAliases)));
  562                               MDNode::get(Inst.getContext(), Scopes)));
lib/Transforms/Scalar/LowerExpectIntrinsic.cpp
   80       MDBuilder(CI->getContext())
   87                  MDBuilder(CI->getContext()).createBranchWeights(Weights));
  202     MDBuilder MDB(PhiDef->getContext());
  287   MDBuilder MDB(CI->getContext());
lib/Transforms/Scalar/LowerWidenableCondition.cpp
   60     CI->replaceAllUsesWith(ConstantInt::getTrue(CI->getContext()));
lib/Transforms/Scalar/Reassociate.cpp
 1560           Factor = ConstantInt::get(CI->getContext(), -CI->getValue());
 1573           Factor = ConstantFP::get(CF->getContext(), F);
lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
  948       BaseInst->setMetadata("is_base_value", MDNode::get(I->getContext(), {}));
  995     BaseInst->setMetadata("is_base_value", MDNode::get(I->getContext(), {}));
 1387       new UnreachableInst(RI->getContext(), RI);
 1572           AttributeList::get(GCResult->getContext(), AttributeList::ReturnIndex,
lib/Transforms/Scalar/SCCP.cpp
 1680         BI->setCondition(ConstantInt::getFalse(BI->getContext()));
 1984       C = ConstantInt::getFalse(BI->getContext());
lib/Transforms/Scalar/SROA.cpp
 2333                         NewAI.getContext(),
 2340         IRB(NewAI.getContext(), ConstantFolder()) {
 2478       IntegerType *ExtractTy = Type::getIntNTy(LI.getContext(), SliceSize * 8);
 2503     Type *TargetTy = IsSplit ? Type::getIntNTy(LI.getContext(), SliceSize * 8)
 2670       IntegerType *NarrowTy = Type::getIntNTy(SI.getContext(), SliceSize * 8);
 2790       auto *Int8Ty = IntegerType::getInt8Ty(NewAI.getContext());
lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp
 1094     Type *I8PtrTy = Type::getInt8PtrTy(GEP->getContext(),
 1098         Type::getInt8Ty(GEP->getContext()), NewGEP,
lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
  524                                  ? ConstantInt::getFalse(BI.getContext())
  525                                  : ConstantInt::getTrue(BI.getContext());
 2215         Direction ? ConstantInt::getTrue(BI->getContext())
 2216                   : ConstantInt::getFalse(BI->getContext());
 2218         Direction ? ConstantInt::getFalse(BI->getContext())
 2219                   : ConstantInt::getTrue(BI->getContext());
 2411   GI->setArgOperand(0, ConstantInt::getFalse(GI->getContext()));
lib/Transforms/Scalar/StraightLineStrengthReduce.cpp
  409     Idx = ConstantInt::get(Idx->getContext(), One << Idx->getValue());
  512         ConstantInt::get(RHS->getContext(), One << RHS->getValue());
  604       IntegerType::get(Basis.Ins->getContext(), IndexOffset.getBitWidth());
  672         Type *CharTy = Type::getInt8PtrTy(Basis.Ins->getContext(), AS);
lib/Transforms/Utils/BreakCriticalEdges.cpp
  161   BasicBlock *NewBB = BasicBlock::Create(TI->getContext(),
lib/Transforms/Utils/BypassSlowDivision.cpp
  137   IntegerType *BT = IntegerType::get(I->getContext(), BI->second);
lib/Transforms/Utils/CodeExtractor.cpp
 1382       MDBuilder(TI->getContext()).createBranchWeights(BranchWeights));
lib/Transforms/Utils/GuardUtils.cpp
   47   MDBuilder MDB(Guard->getContext());
lib/Transforms/Utils/InlineFunction.cpp
  294             UnwindDestToken = ConstantTokenNone::get(CleanupPad->getContext());
 1415             inlineLoopID(LoopID, InlinedAtNode, BI->getContext(), IANodes);
 1421             inlineDebugLoc(DL, InlinedAtNode, BI->getContext(), IANodes);
 1906           Attrs = AttributeList::get(CI->getContext(), Attrs.getFnAttributes(),
 1987           AllocaSize = ConstantInt::get(Type::getInt64Ty(AI->getContext()),
lib/Transforms/Utils/LCSSA.cpp
  221     auto &Ctx = I->getContext();
lib/Transforms/Utils/LibCallsShrinkWrap.cpp
  440     Constant *V = ConstantFP::get(CI->getContext(), APFloat(127.0f));
  468     Constant *V = ConstantFP::get(CI->getContext(), APFloat(UpperV));
  469     Constant *V0 = ConstantFP::get(CI->getContext(), APFloat(0.0f));
  487       MDBuilder(CI->getContext()).createBranchWeights(1, 2000);
lib/Transforms/Utils/Local.cpp
  494     DII->setOperand(0, MetadataAsValue::get(DII->getContext(),
  708       ConstantInt::get(Type::getInt32Ty(BA->getContext()), 1);
 1500   auto *MDV = MetadataAsValue::getIfExists(V->getContext(), L);
 1520     if (auto *MDV = MetadataAsValue::getIfExists(V->getContext(), L))
 1533     if (auto *MDV = MetadataAsValue::getIfExists(V->getContext(), L))
 1592     if (auto *MDV = MetadataAsValue::getIfExists(AI->getContext(), L))
 1616   auto &Ctx = I.getContext();
 1768     LLVMContext &Ctx = DII->getContext();
 1924   auto *UI = new UnreachableInst(I->getContext(), I);
 2379   MDBuilder MDB(Dest.getContext());
 2556   MDBuilder MDB(NewLI.getContext());
 2579     MDNode *NN = MDNode::get(OldLI.getContext(), None);
lib/Transforms/Utils/LoopRotationUtils.cpp
  167                            MetadataAsValue::get(OrigHeaderVal->getContext(),
lib/Transforms/Utils/LoopUnroll.cpp
   80       auto &C = I->getContext();
  815         new UnreachableInst(Term->getContext(), Term);
lib/Transforms/Utils/LoopUnrollPeel.cpp
  409   MDBuilder MDB(LatchBR->getContext());
  450   MDBuilder MDB(LatchBR->getContext());
lib/Transforms/Utils/LowerSwitch.cpp
  289   ConstantInt *NewUpperBound = ConstantInt::get(NewLowerBound->getContext(),
  309   BasicBlock* NewNode = BasicBlock::Create(Val->getContext(), "NodeBlock");
  338   BasicBlock* NewLeaf = BasicBlock::Create(Val->getContext(), "LeafBlock");
  509     LowerBound = ConstantInt::get(SI->getContext(), Min);
  510     UpperBound = ConstantInt::get(SI->getContext(), Max);
  596   BasicBlock *NewDefault = BasicBlock::Create(SI->getContext(), "NewDefault");
lib/Transforms/Utils/MisExpect.cpp
  169         verifyMisExpect(&I, RealWeights, I.getContext());
lib/Transforms/Utils/PromoteMemoryToRegister.cpp
   87       if (BCI->getType() != Type::getInt8PtrTy(U->getContext(), AS))
   92       if (GEPI->getType() != Type::getInt8PtrTy(U->getContext(), AS))
lib/Transforms/Utils/SimplifyCFG.cpp
  556               ConstantInt::get(C->getContext(),
  578           Vals.push_back(ConstantInt::get(C->getContext(),
  623       Vals.push_back(ConstantInt::get(I->getContext(), Tmp));
 3500     new UnreachableInst(OldTerm->getContext(), OldTerm);
 3887     new UnreachableInst(RI->getContext(), TrivialBB);
 4228         new UnreachableInst(TI->getContext(), TI);
 4290         new UnreachableInst(CSI->getContext(), CSI);
 4295       new UnreachableInst(TI->getContext(), TI);
 4331   new UnreachableInst(Switch->getContext(), NewTerminator);
 4401     Cmp = ConstantInt::getTrue(SI->getContext());
 5703     new UnreachableInst(IBI->getContext(), IBI);
lib/Transforms/Utils/SimplifyIndVar.cpp
  141       D = ConstantInt::get(UseInst->getContext(),
  265     ICmp->replaceAllUsesWith(ConstantInt::getTrue(ICmp->getContext()));
  269     ICmp->replaceAllUsesWith(ConstantInt::getFalse(ICmp->getContext()));
  463         EVI->replaceAllUsesWith(ConstantInt::getFalse(WO->getContext()));
lib/Transforms/Utils/SimplifyLibCalls.cpp
  212                                   CI->getContext(), DerefBytes));
  292                  ConstantInt::get(DL.getIntPtrType(Src->getContext()), Len + 1));
  358                       ConstantInt::get(DL.getIntPtrType(CI->getContext()), Len),
  443                       ConstantInt::get(DL.getIntPtrType(CI->getContext()),
  453           ConstantInt::get(DL.getIntPtrType(CI->getContext()), Len2), B, DL,
  459           ConstantInt::get(DL.getIntPtrType(CI->getContext()), Len1), B, DL,
  521           ConstantInt::get(DL.getIntPtrType(CI->getContext()), Len2), B, DL,
  528           ConstantInt::get(DL.getIntPtrType(CI->getContext()), Len1), B, DL,
  565                      ConstantInt::get(DL.getIntPtrType(CI->getContext()), Len));
  630         CI->getContext(), 0, ArgAttrs));
 1008     IntegerType *IntType = IntegerType::get(CI->getContext(), Len * 8);
 1246       return ConstantFP::get(Const->getContext(), F);
 2430                    ConstantInt::get(DL.getIntPtrType(CI->getContext()),
 2538         ConstantInt::get(DL.getIntPtrType(CI->getContext()),
 2620         ConstantInt::get(DL.getIntPtrType(CI->getContext()), FormatStr.size()),
 2741       ConstantInt::get(DL.getIntPtrType(CI->getContext()), Len - 1),
 3294   Type *SizeTTy = DL.getIntPtrType(CI->getContext());
lib/Transforms/Utils/VNCoercion.cpp
  332       ConstantExpr::getBitCast(Src, Type::getInt8PtrTy(Src->getContext(), AS));
  334       ConstantInt::get(Type::getInt64Ty(Src->getContext()), (unsigned)Offset);
  335   Src = ConstantExpr::getGetElementPtr(Type::getInt8Ty(Src->getContext()), Src,
  508       ConstantExpr::getBitCast(Src, Type::getInt8PtrTy(Src->getContext(), AS));
  510       ConstantInt::get(Type::getInt64Ty(Src->getContext()), (unsigned)Offset);
  511   Src = ConstantExpr::getGetElementPtr(Type::getInt8Ty(Src->getContext()), Src,
lib/Transforms/Utils/ValueMapper.cpp
   62         TempBB(BasicBlock::Create(Old.getContext())) {}
  386         return MetadataAsValue::get(V->getContext(), ValueAsMetadata::get(LV));
  393                  : MetadataAsValue::get(V->getContext(),
  394                                         MDTuple::get(V->getContext(), None));
  406     return getVM()[V] = MetadataAsValue::get(V->getContext(), MappedMD);
  900     LLVMContext &C = CS->getContext();
  971     VoidPtrTy = Type::getInt8Ty(GV.getContext())->getPointerTo();
  974     EltTy = StructType::get(GV.getContext(), Tys, false);
lib/Transforms/Vectorize/LoopVectorize.cpp
 2671       IntegerType::getIntNTy(V->getContext(), DL.getTypeSizeInBits(SrcElemTy));
 6152                  ToVectorTy(Type::getInt1Ty(Phi->getContext()), VF));
lib/Transforms/Vectorize/SLPVectorizer.cpp
 3321   LLVMContext &Context = FirstReduced->getContext();
tools/bugpoint/CrashDebugger.cpp
  523       if (V && V->getType() == Type::getLabelTy(V->getContext()))
  590           BR->setCondition(ConstantInt::getTrue(BR->getContext()));
  592           BR->setCondition(ConstantInt::getFalse(BR->getContext()));
  630       if (V && V->getType() == Type::getLabelTy(V->getContext()))
  722       if (V && V->getType() == Type::getLabelTy(V->getContext()))
tools/clang/lib/CodeGen/CGBuiltin.cpp
 2279       Builder.CreateFCmpUGE(Abs, ConstantFP::get(V->getContext(), Smallest),
 2342       Builder.CreateFCmpUGE(VAbs, ConstantFP::get(V->getContext(), Smallest),
tools/clang/lib/CodeGen/CGExpr.cpp
 1675         Load->getContext(), llvm::ConstantAsMetadata::get(Builder.getInt32(1)));
 1756         llvm::MDNode::get(Store->getContext(),
tools/clang/lib/CodeGen/CGLoopInfo.cpp
  776       UnionMD = MDNode::get(I->getContext(), AccessGroups);
tools/llvm-reduce/deltas/ReduceBasicBlocks.cpp
   68     ReturnInst::Create(SwInst.getContext(), nullptr, SwInst.getParent());
tools/polly/lib/Analysis/ScopBuilder.cpp
 1350   if (ArrMemberTys[0] != Type::getInt8PtrTy(V->getContext()))
 1666         ConstantInt::get(IntegerType::getInt64Ty(BasePtr->getContext()), V)));
 1764                  IntegerType::getInt8Ty(DestPtrVal->getContext()),
 1786                  IntegerType::getInt8Ty(SrcPtrVal->getContext()),
 1803   auto *AF = SE.getConstant(IntegerType::getInt64Ty(CI->getContext()), 0);
tools/polly/lib/Support/ScopHelper.cpp
  453       return ConstantInt::getTrue(Type::getInt1Ty(TI->getContext()));