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

References

examples/BrainF/BrainF.cpp
  443       LoadInst *tape_0 = new LoadInst(head_0, tapereg, testbb);
include/llvm/IR/IRBuilder.h
 1580     return Insert(new AllocaInst(Ty, AddrSpace, ArraySize), Name);
 1586     return Insert(new AllocaInst(Ty, DL.getAllocaAddrSpace(), ArraySize), Name);
 1592     return Insert(new LoadInst(Ty, Ptr), Name);
 1596     return Insert(new LoadInst(Ty, Ptr), Name);
 1601     return Insert(new LoadInst(Ty, Ptr, Twine(), isVolatile), Name);
 2328     return Insert(new VAArgInst(List, Ty), Name);
include/llvm/IR/Instructions.h
 2322     return new
 2330     return new ExtractValueInst(Agg, Idxs, NameStr, InsertAtEnd);
lib/AsmParser/LLParser.cpp
 6596   Inst = new VAArgInst(Op, EltTy);
 6922   AllocaInst *AI = new AllocaInst(Ty, AddrSpace, Size, Alignment);
 6973   Inst = new LoadInst(Ty, Val, "", isVolatile, Alignment, Ordering, SSID);
lib/Bitcode/Reader/BitcodeReader.cpp
 4764       AllocaInst *AI = new AllocaInst(Ty, AS, Size, Align);
 4795       I = new LoadInst(Ty, Op, "", Record[OpNum + 1], Align);
 4832       I = new LoadInst(Ty, Op, "", Record[OpNum + 1], Align, Ordering, SSID);
 5095       I = new VAArgInst(Op, ResTy);
lib/CodeGen/CodeGenPrepare.cpp
 5637       InsertedTrunc = new TruncInst(I, Src->getType(), "", &*InsertPt);
 7028       Instruction *NC = new BitCastInst(GEPI->getOperand(0), GEPI->getType(),
lib/CodeGen/GCRootLowering.cpp
  216         Value *Ld = new LoadInst(CI->getType(), CI->getArgOperand(1), "", CI);
lib/CodeGen/SjLjEHPrepare.cpp
  179   FuncCtx = new AllocaInst(FunctionContextTy, DL.getAllocaAddrSpace(), nullptr,
lib/CodeGen/StackColoring.cpp
  923       BitCastInst *Cast = new BitCastInst(Inst, From->getType());
lib/CodeGen/WinEHPrepare.cpp
 1079     SpillSlot = new AllocaInst(PN->getType(), DL->getAllocaAddrSpace(), nullptr,
 1082     Value *V = new LoadInst(PN->getType(), SpillSlot,
 1166     SpillSlot = new AllocaInst(V->getType(), DL->getAllocaAddrSpace(), nullptr,
 1225       Load = new LoadInst(V->getType(), SpillSlot,
 1232     auto *Load = new LoadInst(V->getType(), SpillSlot,
lib/FuzzMutate/RandomIRBuilder.cpp
   56     auto *NewLoad = new LoadInst(
  125       Ptr = new AllocaInst(V->getType(), 0, "A", &*BB.getFirstInsertionPt());
lib/IR/IRBuilder.cpp
   68   BitCastInst *BCI = new BitCastInst(Ptr, PT, "");
lib/IR/Instructions.cpp
  583       Result = new BitCastInst(MCall, AllocPtrType, Name, InsertBefore);
  590       Result = new BitCastInst(MCall, AllocPtrType, Name);
  672       PtrCast = new BitCastInst(Source, IntPtrTy, "", InsertBefore);
  676       PtrCast = new BitCastInst(Source, IntPtrTy, "", InsertAtEnd);
 2212   return new UnaryOperator(Op, S, S->getType(), Name, InsertBefore);
 2752   case Trunc:         return new TruncInst         (S, Ty, Name, InsertBefore);
 2753   case ZExt:          return new ZExtInst          (S, Ty, Name, InsertBefore);
 2754   case SExt:          return new SExtInst          (S, Ty, Name, InsertBefore);
 2755   case FPTrunc:       return new FPTruncInst       (S, Ty, Name, InsertBefore);
 2756   case FPExt:         return new FPExtInst         (S, Ty, Name, InsertBefore);
 2757   case UIToFP:        return new UIToFPInst        (S, Ty, Name, InsertBefore);
 2758   case SIToFP:        return new SIToFPInst        (S, Ty, Name, InsertBefore);
 2759   case FPToUI:        return new FPToUIInst        (S, Ty, Name, InsertBefore);
 2760   case FPToSI:        return new FPToSIInst        (S, Ty, Name, InsertBefore);
 2761   case PtrToInt:      return new PtrToIntInst      (S, Ty, Name, InsertBefore);
 2762   case IntToPtr:      return new IntToPtrInst      (S, Ty, Name, InsertBefore);
 2763   case BitCast:       return new BitCastInst       (S, Ty, Name, InsertBefore);
 2764   case AddrSpaceCast: return new AddrSpaceCastInst (S, Ty, Name, InsertBefore);
 2774   case Trunc:         return new TruncInst         (S, Ty, Name, InsertAtEnd);
 2775   case ZExt:          return new ZExtInst          (S, Ty, Name, InsertAtEnd);
 2776   case SExt:          return new SExtInst          (S, Ty, Name, InsertAtEnd);
 2777   case FPTrunc:       return new FPTruncInst       (S, Ty, Name, InsertAtEnd);
 2778   case FPExt:         return new FPExtInst         (S, Ty, Name, InsertAtEnd);
 2779   case UIToFP:        return new UIToFPInst        (S, Ty, Name, InsertAtEnd);
 2780   case SIToFP:        return new SIToFPInst        (S, Ty, Name, InsertAtEnd);
 2781   case FPToUI:        return new FPToUIInst        (S, Ty, Name, InsertAtEnd);
 2782   case FPToSI:        return new FPToSIInst        (S, Ty, Name, InsertAtEnd);
 2783   case PtrToInt:      return new PtrToIntInst      (S, Ty, Name, InsertAtEnd);
 2784   case IntToPtr:      return new IntToPtrInst      (S, Ty, Name, InsertAtEnd);
 2785   case BitCast:       return new BitCastInst       (S, Ty, Name, InsertAtEnd);
 2786   case AddrSpaceCast: return new AddrSpaceCastInst (S, Ty, Name, InsertAtEnd);
 4122   return new ExtractValueInst(*this);
 4131       new AllocaInst(getAllocatedType(), getType()->getAddressSpace(),
 4139   return new LoadInst(getType(), getOperand(0), Twine(), isVolatile(),
 4173   return new TruncInst(getOperand(0), getType());
 4177   return new ZExtInst(getOperand(0), getType());
 4181   return new SExtInst(getOperand(0), getType());
 4185   return new FPTruncInst(getOperand(0), getType());
 4189   return new FPExtInst(getOperand(0), getType());
 4193   return new UIToFPInst(getOperand(0), getType());
 4197   return new SIToFPInst(getOperand(0), getType());
 4201   return new FPToUIInst(getOperand(0), getType());
 4205   return new FPToSIInst(getOperand(0), getType());
 4209   return new PtrToIntInst(getOperand(0), getType());
 4213   return new IntToPtrInst(getOperand(0), getType());
 4217   return new BitCastInst(getOperand(0), getType());
 4221   return new AddrSpaceCastInst(getOperand(0), getType());
 4237   return new VAArgInst(getOperand(0), getType());
lib/Target/AArch64/AArch64StackTagging.cpp
  481   auto *NewAI = new AllocaInst(
  489   auto *NewPtr = new BitCastInst(NewAI, Info.AI->getType(), "", Info.AI);
lib/Target/AMDGPU/AMDGPUPrintfRuntimeBinding.cpp
  387           new BitCastInst(BufferIdx, idPointer, "PrintBuffIdCast", Brnch);
  431           Arg = new BitCastInst(Arg, IType, "PrintArgFP", Brnch);
  477             Arg = new PtrToIntInst(Arg, DstType, "PrintArgPtr", Brnch);
  527           Arg = new BitCastInst(Arg, IType, "PrintArgVect", Brnch);
  541               new BitCastInst(BufferIdx, ArgPointer, "PrintBuffPtrCast", Brnch);
lib/Target/BPF/BPFAbstractMemberAccess.cpp
  870     auto *LDInst = new LoadInst(Type::getInt32Ty(BB->getContext()), GV);
  888   auto *LDInst = new LoadInst(Type::getInt64Ty(BB->getContext()), GV);
  892   auto *BCInst = new BitCastInst(Base, Type::getInt8PtrTy(BB->getContext()));
  901   auto *BCInst2 = new BitCastInst(GEP, Call->getType());
lib/Target/Hexagon/HexagonOptimizeSZextends.cpp
   79             SExtInst* SI = new SExtInst(&Arg, Use->getType());
lib/Target/NVPTX/NVPTXLowerAlloca.cpp
   76         auto NewASCToLocal = new AddrSpaceCastInst(allocaInst, LocalAddrTy, "");
   79             new AddrSpaceCastInst(NewASCToLocal, GenericAddrTy, "");
lib/Target/NVPTX/NVPTXLowerArgs.cpp
  163   AllocaInst *AllocA = new AllocaInst(StructType, AS, Arg->getName(), FirstInst);
  170   Value *ArgInParam = new AddrSpaceCastInst(
  174       new LoadInst(StructType, ArgInParam, Arg->getName(), FirstInst);
  194   Instruction *PtrInGlobal = new AddrSpaceCastInst(
  198   Value *PtrInGeneric = new AddrSpaceCastInst(PtrInGlobal, Ptr->getType(),
lib/Target/PowerPC/PPCBoolRetToInt.cpp
  115     return new ZExtInst(V, IntTy, "", InstPt);
  265     Value *BackToBool = new TruncInst(IntRetVal, Int1Ty, "backToBool", I);
lib/Target/PowerPC/PPCLoopPreIncPrep.cpp
  401     NewBasePtr = new BitCastInst(PtrInc, BasePtr->getType(),
  450       ReplNewPtr = new BitCastInst(RealNewPtr, Ptr->getType(),
lib/Transforms/Coroutines/CoroElide.cpp
  130   auto *Frame = new AllocaInst(FrameTy, DL.getAllocaAddrSpace(), "", InsertPt);
  132       new BitCastInst(Frame, Type::getInt8PtrTy(C), "vFrame", InsertPt);
lib/Transforms/Coroutines/Coroutines.cpp
  118       new BitCastInst(Call, ResumeFnType->getPointerTo(), "", InsertPt);
  414             auto BCI = new BitCastInst(*SI, *RI, "", Suspend);
lib/Transforms/IPO/ArgumentPromotion.cpp
  390           new AllocaInst(AgTy, DL.getAllocaAddrSpace(), nullptr,
lib/Transforms/IPO/Attributor.cpp
 3584       Instruction *AI = new AllocaInst(Type::getInt8Ty(F->getContext()), AS,
 3588         AI = new BitCastInst(AI, MallocCall->getType(), "malloc_bc",
 3602         auto *BI = new BitCastInst(AI, MallocCall->getType(), "calloc_bc",
lib/Transforms/IPO/GlobalOpt.cpp
  872         TheBC = new BitCastInst(NewGV, CI->getType(), "newgv", CI);
  911       Value *LV = new LoadInst(InitBool->getValueType(), InitBool,
 1048         new LoadInst(GV->getValueType(), GV, GV->getName() + ".val", InsertPt);
 1173     Result = new LoadInst(V->getType()->getPointerElementType(), V,
 1365         new LoadInst(cast<GlobalVariable>(FieldGlobals[i])->getValueType(),
 1548       Instruction *Cast = new BitCastInst(Malloc, CI->getType(), "tmp", CI);
 1718           StoreVal = new LoadInst(NewGV->getValueType(), NewGV,
 1735       LoadInst *NLI = new LoadInst(NewGV->getValueType(), NewGV,
 1740         NSI = new ZExtInst(NLI, LI->getType(), "", LI);
 1951     AllocaInst *Alloca = new AllocaInst(ElemTy, DL.getAllocaAddrSpace(), nullptr,
lib/Transforms/InstCombine/InstCombineAddSub.cpp
  843     return new ZExtInst(Builder.CreateNUWAdd(X, NewC), Ty);
  933       return new ZExtInst(Builder.CreateNot(X), Ty);
 1548           return new SIToFPInst(NewAdd, I.getType());
 1566           return new SIToFPInst(NewAdd, I.getType());
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
 1517       return new ZExtInst(NewOp, DestTy);
 1527       return new SExtInst(NewOp, DestTy);
 1717   return new ZExtInst(Builder.CreateAnd(NewBO, X), Ty);
 1759       return new ZExtInst(IsZero, I.getType());
 1840             return new ZExtInst(And, I.getType());
lib/Transforms/InstCombine/InstCombineAtomicRMW.cpp
  155   LoadInst *Load = new LoadInst(RMWI.getType(), RMWI.getPointerOperand());
lib/Transforms/InstCombine/InstCombineCalls.cpp
 1899       return new TruncInst(V, IIOperand->getType());
 2304       return new FPExtInst(NarrowII, II->getType());
 2338       return new LoadInst(II->getType(), Ptr);
 2346     return new LoadInst(II->getType(), Ptr, Twine(""), false, Align::None());
 2375       return new FPExtInst(Load, II->getType());
 2384       return new LoadInst(II->getType(), Ptr);
 3084         return new BitCastInst(Sel, II->getType());
lib/Transforms/InstCombine/InstCombineCasts.cpp
 1158       return new ZExtInst(And, CI.getType());
 1715         return new SExtInst(SrcI, FITy);
 1716       return new ZExtInst(SrcI, FITy);
 1719       return new TruncInst(SrcI, FITy);
 1722     return new BitCastInst(SrcI, FITy);
 1769     return new IntToPtrInst(P, CI.getType());
 2310       return new AddrSpaceCastInst(Src, DestTy);
 2405         return new BitCastInst(InsElt->getOperand(1), DestTy);
 2488     return new AddrSpaceCastInst(NewBitCast, CI.getType());
lib/Transforms/InstCombine/InstCombineCompares.cpp
 1726     return new TruncInst(And->getOperand(0), Cmp.getType());
lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
  301     auto *NewI = new LoadInst(I->getType(), V);
  321     auto *NewI = new BitCastInst(V, NewT);
  389           return new BitCastInst(EntryAI, AI.getType());
lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
  776       return new ZExtInst(Builder.CreateICmpEQ(Op1, Op0), Ty);
  931     return new ZExtInst(NarrowOp, Ty);
  948     return new ZExtInst(NarrowOp, Ty);
 1070     return new ZExtInst(Builder.CreateICmpEQ(Op0, Op1), I.getType());
 1094       return new SExtInst(NarrowOp, Op0->getType());
lib/Transforms/InstCombine/InstCombinePHI.cpp
  599       new LoadInst(FirstLI->getType(), NewPN, "", isVolatile, LoadAlignment);
lib/Transforms/InstCombine/InstCombineSelect.cpp
  531   return new ZExtInst(ICmpNeZero, SelType);
 2285       return new ZExtInst(CondVal, SelType);
 2289       return new SExtInst(CondVal, SelType);
 2294       return new ZExtInst(NotCond, SelType);
 2300       return new SExtInst(NotCond, SelType);
lib/Transforms/InstCombine/InstCombineShifts.cpp
  674       return new TruncInst(And, I.getType());
  876         return new ZExtInst(Builder.CreateShl(X, ShAmt), Ty);
  995       return new ZExtInst(Cmp, Ty);
 1041       return new ZExtInst(NewLShr, Ty);
 1051           return new ZExtInst(X, Ty);
 1056           return new ZExtInst(NewLShr, Ty);
 1065         return new ZExtInst(AShr, Ty);
 1189       return new SExtInst(X, Ty);
 1228       return new SExtInst(NewSh, Ty);
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
  415       CastInst *NewCast = new ZExtInst(I->getOperand(0), VTy, I->getName());
lib/Transforms/InstCombine/InstCombineVectorOps.cpp
  181       return new BitCastInst(Elt, DestTy);
  248       return new BitCastInst(Builder.CreateTrunc(Scalar, DestIntTy), DestTy);
  250     return new TruncInst(Scalar, DestTy);
 1046     return new BitCastInst(NewInsElt, IE.getType());
lib/Transforms/InstCombine/InstructionCombining.cpp
 1995           return new AddrSpaceCastInst(Builder.Insert(Res), GEPType);
 2027             return new AddrSpaceCastInst(NewGEP, GEPType);
 2179         return new AddrSpaceCastInst(NGEP, GEPType);
 2210           return new AddrSpaceCastInst(SrcOp, GEPType);
 2211         return new BitCastInst(SrcOp, GEPType);
 2229           return new AddrSpaceCastInst(NGEP, GEPType);
 2230         return new BitCastInst(NGEP, GEPType);
lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
 1214     LoadInst *LI = new LoadInst(DFS.ShadowTy, ShadowAddr, "", Pos);
 1619           auto *LabelVAAlloca = new AllocaInst(
 1634               new AllocaInst(DFSF.DFS.ShadowTy,
 1725         new AllocaInst(VarArgArrayTy, getDataLayout().getAllocaAddrSpace(),
lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
 1197       auto *NewAI = new AllocaInst(
 1204       auto *Bitcast = new BitCastInst(NewAI, AI->getType(), "", AI);
lib/Transforms/ObjCARC/ObjCARCContract.cpp
  420     Args[0] = new BitCastInst(Args[0], I8XX, "", Store);
  422     Args[1] = new BitCastInst(Args[1], I8X, "", Store);
  666                 new BitCastInst(Replacement, UseTy, "", &InsertBB->back());
  683             Replacement = new BitCastInst(Replacement, UseTy, "",
lib/Transforms/ObjCARC/ObjCARCOpts.cpp
 1016                 Op = new BitCastInst(Op, ParamTy, "", InsertPos);
 1579                    new BitCastInst(Arg, ParamTy, "", InsertPt);
 1592                    new BitCastInst(Arg, ParamTy, "", InsertPt);
lib/Transforms/Scalar/ConstantHoisting.cpp
  745       Base = new BitCastInst(Base, Int8PtrTy, "base_bitcast", InsertionPt);
  748       Mat = new BitCastInst(Mat, Ty, "mat_bitcast", InsertionPt);
  871         Base = new BitCastInst(ConstInfo.BaseExpr, Ty, "const", IP);
  874         Base = new BitCastInst(ConstInfo.BaseInt, Ty, "const", IP);
lib/Transforms/Scalar/GVN.cpp
 1244     auto *NewLoad = new LoadInst(
lib/Transforms/Scalar/IndVarSimplify.cpp
  493     Value *Conv = new SIToFPInst(NewPHI, PN->getType(), "indvar.conv",
lib/Transforms/Scalar/InferAddressSpaces.cpp
  455       return new BitCastInst(Src, NewPtrType);
  471     return new BitCastInst(NewPointerOperands[0], NewPtrType);
 1009           U.set(new AddrSpaceCastInst(NewV, V->getType(), "", &*InsertPos));
lib/Transforms/Scalar/JumpThreading.cpp
 1472     LoadInst *NewVal = new LoadInst(
lib/Transforms/Scalar/LICM.cpp
 2117   LoadInst *PreheaderLoad = new LoadInst(
lib/Transforms/Scalar/LoopLoadElimination.cpp
  436     Value *Initial = new LoadInst(
lib/Transforms/Scalar/MemCpyOptimizer.cpp
 1319     TmpCast = new BitCastInst(MDep->getSource(), ByValArg->getType(),
lib/Transforms/Scalar/Reg2Mem.cpp
   85   CastInst *AllocaInsertionPoint = new BitCastInst(
lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
 1020       Base = new BitCastInst(Base, Input->getType(), "cast", InsertPt);
 1709     AllocaInst *Alloca = new AllocaInst(LiveValue->getType(),
 1830                 new LoadInst(Alloca->getAllocatedType(), Alloca, "",
 1837             new LoadInst(Alloca->getAllocatedType(), Alloca, "", Use);
lib/Transforms/Scalar/SROA.cpp
 2581       Value *Placeholder = new LoadInst(
 4165     NewAI = new AllocaInst(
lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp
 1096     NewGEP = new BitCastInst(NewGEP, I8PtrTy, "", GEP);
 1105       NewGEP = new BitCastInst(NewGEP, GEP->getType(), GEP->getName(), GEP);
 1177         Instruction *NewSExt = new SExtInst(Dom, I->getType(), "", I);
lib/Transforms/Utils/CodeExtractor.cpp
  939       RewriteVal = new LoadInst(StructTy->getElementType(i), GEP,
 1093         new AllocaInst(output->getType(), DL.getAllocaAddrSpace(),
 1111     Struct = new AllocaInst(StructArgTy, DL.getAllocaAddrSpace(), nullptr,
 1166     LoadInst *load = new LoadInst(outputs[i]->getType(), Output,
lib/Transforms/Utils/DemoteRegToStack.cpp
   36     Slot = new AllocaInst(I.getType(), DL.getAllocaAddrSpace(), nullptr,
   39     Slot = new AllocaInst(I.getType(), DL.getAllocaAddrSpace(), nullptr,
   75             V = new LoadInst(I.getType(), Slot, I.getName() + ".reload",
   84       Value *V = new LoadInst(I.getType(), Slot, I.getName() + ".reload",
  121     Slot = new AllocaInst(P->getType(), DL.getAllocaAddrSpace(), nullptr,
  125     Slot = new AllocaInst(P->getType(), DL.getAllocaAddrSpace(), nullptr,
  147       new LoadInst(P->getType(), Slot, P->getName() + ".reload", &*InsertPt);
lib/Transforms/Utils/InlineFunction.cpp
 1304       new AllocaInst(AggTy, DL.getAllocaAddrSpace(), nullptr, Alignment,
lib/Transforms/Utils/SimplifyIndVar.cpp
  592       Ext = new ZExtInst(Op1, IVTy, "zext", ICI);
  596       Ext = new SExtInst(Op1, IVTy, "sext", ICI);
lib/Transforms/Utils/StripGCRelocates.cpp
   62       ReplaceGCRel = new BitCastInst(OrigPtr, GCRel->getType(), "cast", GCRel);
tools/bugpoint/Miscompilation.cpp
  883               new LoadInst(F->getType(), Cache, "fpcache", EntryBB);
  895           CastInst *CastedResolver = new BitCastInst(
tools/clang/lib/CodeGen/CGCall.cpp
 3838       AI = new llvm::AllocaInst(ArgStruct, DL.getAllocaAddrSpace(),
tools/clang/lib/CodeGen/CGCleanup.cpp
  312   auto load = new llvm::LoadInst(addr.getPointer(), name, beforeInst);
tools/clang/lib/CodeGen/CGCoroutine.cpp
  622         new llvm::BitCastInst(PromiseAddr.getPointer(), VoidPtrTy, "", CoroId);
tools/clang/lib/CodeGen/CGExpr.cpp
  111   return new llvm::AllocaInst(Ty, CGM.getDataLayout().getAllocaAddrSpace(),
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
 1607     Elem.second.ServiceInsertPt = new llvm::BitCastInst(
 1611         new llvm::BitCastInst(Undef, CGF.Int32Ty, "svcpt");
tools/clang/lib/CodeGen/CodeGenFunction.cpp
  836   AllocaInsertPt = new llvm::BitCastInst(Undef, Int32Ty, "allocapt", EntryBB);
 2030   llvm::Instruction *inst = new llvm::BitCastInst(value, value->getType(), "",
tools/lldb/source/Plugins/ExpressionParser/Clang/IRDynamicChecks.cpp
  342         new BitCastInst(dereferenced_ptr, GetI8PtrTy(), "", inst);
  433         new BitCastInst(target_object, GetI8PtrTy(), "", inst);
tools/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp
 1128   LoadInst *persistent_load = new LoadInst(persistent_global, "", alloc);
 1571                 return new BitCastInst(
 1798               BitCastInst *bit_cast = new BitCastInst(
 1802               LoadInst *load = new LoadInst(bit_cast, "", entry_instruction);
 1806               BitCastInst *bit_cast = new BitCastInst(
tools/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptx86ABIFixups.cpp
  172     llvm::AllocaInst *return_value_alloc = new llvm::AllocaInst(
  185         new llvm::AllocaInst(new_func_ptr_type, DL.getAllocaAddrSpace(),
  192         new llvm::LoadInst(new_func_ptr, "load_func_pointer", call_inst);
  200         new llvm::LoadInst(return_value_alloc, "save_return_val", call_inst);
tools/llvm-stress/llvm-stress.cpp
  346     Value *V = new LoadInst(Ptr, "L", BB->getTerminator());
  473     PT->push_back(new AllocaInst(Tp, DL.getAllocaAddrSpace(),
  559         new BitCastInst(V, DestTy, "PC", BB->getTerminator()));
  568         new BitCastInst(V, DestTy, "BC", BB->getTerminator()));
  575           new TruncInst(V, DestTy, "Tr", BB->getTerminator()));
  580             new ZExtInst(V, DestTy, "ZE", BB->getTerminator()));
  581         return PT->push_back(new SExtInst(V, DestTy, "Se", BB->getTerminator()));
  589           new FPToSIInst(V, DestTy, "FC", BB->getTerminator()));
  590       return PT->push_back(new FPToUIInst(V, DestTy, "FC", BB->getTerminator()));
  597           new SIToFPInst(V, DestTy, "FC", BB->getTerminator()));
  598       return PT->push_back(new UIToFPInst(V, DestTy, "FC", BB->getTerminator()));
  605           new FPTruncInst(V, DestTy, "Tr", BB->getTerminator()));
  608           new FPExtInst(V, DestTy, "ZE", BB->getTerminator()));
tools/polly/lib/CodeGen/BlockGenerators.cpp
  514   Addr = new AllocaInst(Ty, DL.getAllocaAddrSpace(),
tools/polly/lib/CodeGen/IslNodeBuilder.cpp
 1398   auto *Alloca = new AllocaInst(AccInstTy, DL.getAllocaAddrSpace(),
 1498       auto *CreatedArray = new AllocaInst(NewArrayType, DL.getAllocaAddrSpace(),
tools/polly/lib/CodeGen/LoopGenerators.cpp
  232   AllocaInst *Struct = new AllocaInst(Ty, DL.getAllocaAddrSpace(), nullptr,
tools/polly/lib/CodeGen/RuntimeDebugBuilder.cpp
  188   Value *Data = new AllocaInst(
tools/polly/lib/Transform/RewriteByReferenceParameters.cpp
   69         new AllocaInst(Alloca->getType()->getElementType(), 0,
   73         new LoadInst(Alloca, "polly_byref_load_" + InstName, &Inst);
   76     auto *NewBitCast = new BitCastInst(NewAlloca, BitCast->getType(),
unittests/Analysis/AliasAnalysisTest.cpp
  178   auto *Load1 = new LoadInst(IntType, Addr, "load", BB);
  180   auto *VAArg1 = new VAArgInst(Addr, PtrType, "vaarg", BB);
unittests/Analysis/PhiValuesTest.cpp
   40   Value *Val1 = new LoadInst(I32Ty, UndefValue::get(I32PtrTy), "val1", Entry);
   41   Value *Val2 = new LoadInst(I32Ty, UndefValue::get(I32PtrTy), "val2", Entry);
   42   Value *Val3 = new LoadInst(I32Ty, UndefValue::get(I32PtrTy), "val3", Entry);
   43   Value *Val4 = new LoadInst(I32Ty, UndefValue::get(I32PtrTy), "val4", Entry);
  113   Value *Val1 = new LoadInst(I32Ty, UndefValue::get(I32PtrTy), "val1", Entry);
  114   Value *Val2 = new LoadInst(I32Ty, UndefValue::get(I32PtrTy), "val2", Entry);
  115   Value *Val3 = new LoadInst(I32Ty, UndefValue::get(I32PtrTy), "val3", Entry);
  116   Value *Val4 = new LoadInst(I32Ty, UndefValue::get(I32PtrTy), "val4", Entry);
unittests/Analysis/ScalarEvolutionTest.cpp
  175   AllocaInst *Alloca = new AllocaInst(I32Ty, DL.getAllocaAddrSpace(),
  415     X = new LoadInst(IntPtrTy, new IntToPtrInst(X, IntPtrPtrTy, "", EntryBB),
  415     X = new LoadInst(IntPtrTy, new IntToPtrInst(X, IntPtrPtrTy, "", EntryBB),
  418     Y = new LoadInst(IntPtrTy, new IntToPtrInst(Y, IntPtrPtrTy, "", EntryBB),
  418     Y = new LoadInst(IntPtrTy, new IntToPtrInst(Y, IntPtrPtrTy, "", EntryBB),
unittests/FuzzMutate/OperationsTest.cpp
  196   auto *AI = new AllocaInst(Type::getInt8Ty(Ctx), 0, "a", RI);
unittests/IR/InstructionsTest.cpp
  326   CastInst *PtrVecA = new IntToPtrInst(C2xi32a, V2xi32PTy);
  327   CastInst *PtrVecB = new IntToPtrInst(C2xi32b, V2xi32PTy);
  343   CastInst *BTC0 = new BitCastInst(Gep0, V2xi8PTy);
  344   CastInst *BTC1 = new BitCastInst(Gep1, V2xi8PTy);
  345   CastInst *BTC2 = new BitCastInst(Gep2, V2xi8PTy);
  346   CastInst *BTC3 = new BitCastInst(Gep3, V2xi8PTy);
unittests/IR/MetadataTest.cpp
  212   Instruction *I = new BitCastInst(C, Type::getInt32Ty(Context));
unittests/IR/ValueHandleTest.cpp
   28         BitcastV(new BitCastInst(ConstantV, Type::getInt32Ty(Context))) {}
  514   BitcastV.reset(new BitCastInst(ConstantV, Type::getInt32Ty(Context)));
  533     BitcastV.reset(new BitCastInst(ConstantV, Type::getInt32Ty(Context)));
unittests/IR/ValueMapTest.cpp
   31         BitcastV(new BitCastInst(ConstantV, Type::getInt32Ty(Context))),
unittests/Transforms/Scalar/LoopPassManagerTest.cpp
  909     auto *Cond = new LoadInst(Type::getInt1Ty(Context), &Ptr, Name,
 1112     auto *Cond = new LoadInst(Type::getInt1Ty(Context), &Ptr, Name,
 1507                 new LoadInst(Type::getInt1Ty(Context), &Ptr, "cond.0.3",