Home
last modified time | relevance | path

Searched refs:IRBuilder (Results 1 – 25 of 123) sorted by relevance

12345

/external/llvm/include/llvm/Transforms/Utils/
DSimplifyLibCalls.h54 Value *optimizeMemCpyChk(CallInst *CI, IRBuilder<> &B);
55 Value *optimizeMemMoveChk(CallInst *CI, IRBuilder<> &B);
56 Value *optimizeMemSetChk(CallInst *CI, IRBuilder<> &B);
59 Value *optimizeStrpCpyChk(CallInst *CI, IRBuilder<> &B, LibFunc::Func Func);
60 Value *optimizeStrpNCpyChk(CallInst *CI, IRBuilder<> &B, LibFunc::Func Func);
104 Value *optimizeStrCat(CallInst *CI, IRBuilder<> &B);
105 Value *optimizeStrNCat(CallInst *CI, IRBuilder<> &B);
106 Value *optimizeStrChr(CallInst *CI, IRBuilder<> &B);
107 Value *optimizeStrRChr(CallInst *CI, IRBuilder<> &B);
108 Value *optimizeStrCmp(CallInst *CI, IRBuilder<> &B);
[all …]
DBuildLibCalls.h26 Value *CastToCStr(Value *V, IRBuilder<> &B);
31 Value *EmitStrLen(Value *Ptr, IRBuilder<> &B, const DataLayout &DL,
37 Value *EmitStrNLen(Value *Ptr, Value *MaxLen, IRBuilder<> &B,
43 Value *EmitStrChr(Value *Ptr, char C, IRBuilder<> &B,
47 Value *EmitStrNCmp(Value *Ptr1, Value *Ptr2, Value *Len, IRBuilder<> &B,
52 Value *EmitStrCpy(Value *Dst, Value *Src, IRBuilder<> &B,
57 Value *EmitStrNCpy(Value *Dst, Value *Src, Value *Len, IRBuilder<> &B,
64 IRBuilder<> &B, const DataLayout &DL,
69 Value *EmitMemChr(Value *Ptr, Value *Val, Value *Len, IRBuilder<> &B,
73 Value *EmitMemCmp(Value *Ptr1, Value *Ptr2, Value *Len, IRBuilder<> &B,
[all …]
/external/llvm/lib/Transforms/Instrumentation/
DMemorySanitizer.cpp370 IRBuilder<> IRB(*C); in initializeCallbacks()
487 IRBuilder<> IRB(*C); in doInitialization()
521 virtual void visitCallSite(CallSite &CS, IRBuilder<> &IRB) = 0;
596 Value *updateOrigin(Value *V, IRBuilder<> &IRB) { in updateOrigin()
601 Value *originToIntptr(IRBuilder<> &IRB, Value *Origin) { in originToIntptr()
611 void paintOrigin(IRBuilder<> &IRB, Value *Origin, Value *OriginPtr, in paintOrigin()
642 void storeOrigin(IRBuilder<> &IRB, Value *Addr, Value *Shadow, Value *Origin, in storeOrigin()
677 IRBuilder<> IRBNew(CheckTerm); in storeOrigin()
689 IRBuilder<> IRB(&SI); in materializeStores()
712 IRBuilder<> IRB(OrigIns); in materializeOneCheck()
[all …]
DAddressSanitizer.cpp420 Value *createSlowPathCmp(IRBuilder<> &IRB, Value *AddrLong,
426 Value *memToShadow(Value *Shadow, IRBuilder<> &IRB);
476 bool InstrumentGlobals(IRBuilder<> &IRB, Module &M);
597 IRBuilder<> IRBRet(Ret); in unpoisonDynamicAlloca()
612 Value *shiftAllocaMagic(Value *Val, IRBuilder<> &IRB, Value *Shift) { in shiftAllocaMagic()
623 Value *computePartialRzMagic(Value *PartialSize, IRBuilder<> &IRB);
698 void poisonRedZones(ArrayRef<uint8_t> ShadowBytes, IRBuilder<> &IRB,
700 void poisonAlloca(Value *V, uint64_t Size, IRBuilder<> &IRB, bool DoPoison);
702 void SetShadowToStackAfterReturnInlined(IRBuilder<> &IRB, Value *ShadowBase,
704 Value *createAllocaForLayout(IRBuilder<> &IRB, const ASanStackFrameLayout &L,
[all …]
DDataFlowSanitizer.cpp540 IRBuilder<>(BB).CreateGlobalStringPtr(F->getName()), "", in buildWrapperFunction()
848 IRBuilder<> IRB(Pos); in runOnModule()
852 IRBuilder<> ThenIRB(BI); in runOnModule()
867 IRBuilder<> IRB(F->getEntryBlock().begin()); in getArgTLSPtr()
877 IRBuilder<> IRB(F->getEntryBlock().begin()); in getRetvalTLS()
882 IRBuilder<> IRB(Pos); in getArgTLS()
900 IRBuilder<> IRB(ArgTLSPos); in getShadow()
930 IRBuilder<> IRB(Pos); in getShadowAddress()
973 IRBuilder<> IRB(Pos); in combineShadows()
987 IRBuilder<> ThenIRB(BI); in combineShadows()
[all …]
DThreadSanitizer.cpp133 IRBuilder<> IRB(M.getContext()); in initializeCallbacks()
230 IRBuilder<> IRB(M.getContext()); in doInitialization()
387 IRBuilder<> IRB(F.getEntryBlock().getFirstNonPHI()); in runOnFunction()
393 IRBuilder<> IRBRet(RetInst); in runOnFunction()
403 IRBuilder<> IRB(I); in instrumentLoadOrStore()
451 static ConstantInt *createOrdering(IRBuilder<> *IRB, AtomicOrdering ord) { in createOrdering()
475 IRBuilder<> IRB(I); in instrumentMemIntrinsic()
501 IRBuilder<> IRB(I); in instrumentAtomic()
DInstrProfiling.cpp146 IRBuilder<> Builder(Inc->getParent(), *Inc); in lowerIncrement()
264 IRBuilder<> IRB(BasicBlock::Create(M->getContext(), "", RegisterF)); in emitRegistration()
293 IRBuilder<> IRB(BasicBlock::Create(M->getContext(), "", User)); in emitRuntimeHook()
346 IRBuilder<> IRB(BasicBlock::Create(M->getContext(), "", F)); in emitInitialization()
DGCOVProfiling.cpp607 IRBuilder<> Builder(BB->getFirstInsertionPt()); in emitProfileArcs()
614 IRBuilder<> Builder(BI); in emitProfileArcs()
643 IRBuilder<> Builder(ComplexEdgePreds[i + 1]->getFirstInsertionPt()); in emitProfileArcs()
649 IRBuilder<> Builder(ComplexEdgeSuccs[i+1]->getFirstInsertionPt()); in emitProfileArcs()
678 IRBuilder<> Builder(BB); in emitProfileArcs()
730 IRBuilder<> Builder(Succ); in buildEdgeLookupTable()
838 IRBuilder<> Builder(BB); in insertCounterWriteout()
895 IRBuilder<> Builder(BB); in insertIndirectCounterIncrement()
955 IRBuilder<> Builder(Entry); in insertFlush()
/external/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp187 Value *LibCallSimplifier::optimizeStrCat(CallInst *CI, IRBuilder<> &B) { in optimizeStrCat()
215 IRBuilder<> &B) { in emitStrLenMemCpy()
235 Value *LibCallSimplifier::optimizeStrNCat(CallInst *CI, IRBuilder<> &B) { in optimizeStrNCat()
277 Value *LibCallSimplifier::optimizeStrChr(CallInst *CI, IRBuilder<> &B) { in optimizeStrChr()
322 Value *LibCallSimplifier::optimizeStrRChr(CallInst *CI, IRBuilder<> &B) { in optimizeStrRChr()
357 Value *LibCallSimplifier::optimizeStrCmp(CallInst *CI, IRBuilder<> &B) { in optimizeStrCmp()
398 Value *LibCallSimplifier::optimizeStrNCmp(CallInst *CI, IRBuilder<> &B) { in optimizeStrNCmp()
446 Value *LibCallSimplifier::optimizeStrCpy(CallInst *CI, IRBuilder<> &B) { in optimizeStrCpy()
468 Value *LibCallSimplifier::optimizeStpCpy(CallInst *CI, IRBuilder<> &B) { in optimizeStpCpy()
498 Value *LibCallSimplifier::optimizeStrNCpy(CallInst *CI, IRBuilder<> &B) { in optimizeStrNCpy()
[all …]
DBuildLibCalls.cpp29 Value *llvm::CastToCStr(Value *V, IRBuilder<> &B) { in CastToCStr()
36 Value *llvm::EmitStrLen(Value *Ptr, IRBuilder<> &B, const DataLayout &DL, in EmitStrLen()
61 Value *llvm::EmitStrNLen(Value *Ptr, Value *MaxLen, IRBuilder<> &B, in EmitStrNLen()
87 Value *llvm::EmitStrChr(Value *Ptr, char C, IRBuilder<> &B, in EmitStrChr()
111 Value *llvm::EmitStrNCmp(Value *Ptr1, Value *Ptr2, Value *Len, IRBuilder<> &B, in EmitStrNCmp()
138 Value *llvm::EmitStrCpy(Value *Dst, Value *Src, IRBuilder<> &B, in EmitStrCpy()
161 Value *llvm::EmitStrNCpy(Value *Dst, Value *Src, Value *Len, IRBuilder<> &B, in EmitStrNCpy()
188 IRBuilder<> &B, const DataLayout &DL, in EmitMemCpyChk()
212 Value *llvm::EmitMemChr(Value *Ptr, Value *Val, Value *Len, IRBuilder<> &B, in EmitMemChr()
234 Value *llvm::EmitMemCmp(Value *Ptr1, Value *Ptr2, Value *Len, IRBuilder<> &B, in EmitMemCmp()
[all …]
DFlattenCFG.cpp31 bool FlattenParallelAndOr(BasicBlock *BB, IRBuilder<> &Builder,
36 bool MergeIfRegion(BasicBlock *BB, IRBuilder<> &Builder, Pass *P = nullptr);
125 bool FlattenCFGOpt::FlattenParallelAndOr(BasicBlock *BB, IRBuilder<> &Builder, in FlattenParallelAndOr()
272 IRBuilder<>::InsertPointGuard Guard(Builder); in FlattenParallelAndOr()
389 bool FlattenCFGOpt::MergeIfRegion(BasicBlock *BB, IRBuilder<> &Builder, in MergeIfRegion()
472 IRBuilder<> Builder(BB); in run()
DIntegerDivision.cpp35 IRBuilder<> &Builder) { in generateSignedRemainderCode()
81 IRBuilder<> &Builder) { in generatedUnsignedRemainderCode()
105 IRBuilder<> &Builder) { in generateSignedDivisionCode()
152 IRBuilder<> &Builder) { in generateUnsignedDivisionCode()
381 IRBuilder<> Builder(Rem); in expandRemainder()
441 IRBuilder<> Builder(Div); in expandDivision()
508 IRBuilder<> Builder(Rem); in expandRemainderUpTo32Bits()
558 IRBuilder<> Builder(Rem); in expandRemainderUpTo64Bits()
609 IRBuilder<> Builder(Div); in expandDivisionUpTo32Bits()
659 IRBuilder<> Builder(Div); in expandDivisionUpTo64Bits()
DBypassSlowDivision.cpp105 IRBuilder<> SlowBuilder(SlowBB, SlowBB->begin()); in insertFastDiv()
121 IRBuilder<> FastBuilder(FastBB, FastBB->begin()); in insertFastDiv()
141 IRBuilder<> SuccessorBuilder(SuccessorBB, SuccessorBB->begin()); in insertFastDiv()
158 IRBuilder<> MainBuilder(MainBB, MainBB->end()); in insertFastDiv()
DSimplifyCFG.cpp121 IRBuilder<> &Builder);
123 IRBuilder<> &Builder);
125 bool SimplifyReturn(ReturnInst *RI, IRBuilder<> &Builder);
126 bool SimplifyResume(ResumeInst *RI, IRBuilder<> &Builder);
128 bool SimplifySwitch(SwitchInst *SI, IRBuilder<> &Builder);
130 bool SimplifyUncondBranch(BranchInst *BI, IRBuilder <> &Builder);
131 bool SimplifyCondBranch(BranchInst *BI, IRBuilder <>&Builder);
625 IRBuilder<> &Builder) { in SimplifyEqualityComparisonWithOnlyPredecessor()
825 IRBuilder<> &Builder) { in FoldValueComparisonIntoPredecessors()
1163 IRBuilder<true, NoFolder> Builder(NT); in HoistThenElseCodeToIf()
[all …]
/external/llvm/unittests/IR/
DIRBuilderTest.cpp52 IRBuilder<> Builder(BB); in TEST_F()
83 IRBuilder<> Builder(BB); in TEST_F()
106 IRBuilder<> Builder(BB); in TEST_F()
121 IRBuilder<> Builder(BB); in TEST_F()
133 IRBuilder<> Builder(BB); in TEST_F()
208 IRBuilder<true, NoFolder> Builder(BB); in TEST_F()
258 IRBuilder<> Builder(BB); in TEST_F()
268 IRBuilder<>::FastMathFlagGuard Guard(Builder); in TEST_F()
283 IRBuilder<>::InsertPointGuard Guard(Builder); in TEST_F()
293 IRBuilder<> Builder(BB); in TEST_F()
/external/llvm/lib/Target/NVPTX/
DNVPTXGenericToNVVM.cpp50 IRBuilder<> &Builder);
52 IRBuilder<> &Builder);
55 IRBuilder<> &Builder);
57 IRBuilder<> &Builder);
111 IRBuilder<> Builder(I->getEntryBlock().getFirstNonPHIOrDbg()); in runOnModule()
171 IRBuilder<> &Builder) { in getOrInsertCVTA()
213 IRBuilder<> &Builder) { in remapConstant()
253 Module *M, Function *F, Constant *C, IRBuilder<> &Builder) { in remapConstantVectorOrConstantAggregate()
292 IRBuilder<> &Builder) { in remapConstantExpr()
DNVPTXLowerAggrCopies.cpp69 IRBuilder<> builder(origBB, origBB->getTerminator()); in convertTransferToLoop()
80 IRBuilder<> loop(loopBB); in convertTransferToLoop()
109 IRBuilder<> builder(origBB, origBB->getTerminator()); in convertMemSetToLoop()
117 IRBuilder<> loop(loopBB); in convertMemSetToLoop()
/external/llvm/unittests/Transforms/Utils/
DIntegerDivision.cpp26 IRBuilder<> Builder(C); in TEST()
56 IRBuilder<> Builder(C); in TEST()
86 IRBuilder<> Builder(C); in TEST()
116 IRBuilder<> Builder(C); in TEST()
147 IRBuilder<> Builder(C); in TEST()
177 IRBuilder<> Builder(C); in TEST()
207 IRBuilder<> Builder(C); in TEST()
237 IRBuilder<> Builder(C); in TEST()
/external/llvm/lib/Transforms/Scalar/
DScalarizer.cpp74 Value *operator()(IRBuilder<> &Builder, Value *Op0, Value *Op1, in operator ()()
85 Value *operator()(IRBuilder<> &Builder, Value *Op0, Value *Op1, in operator ()()
96 Value *operator()(IRBuilder<> &Builder, Value *Op0, Value *Op1, in operator ()()
207 IRBuilder<> Builder(BB, BBI); in operator []()
374 IRBuilder<> Builder(I.getParent(), &I); in splitBinary()
394 IRBuilder<> Builder(SI.getParent(), &SI); in visitSelectInst()
435 IRBuilder<> Builder(GEPI.getParent(), &GEPI); in visitGetElementPtrInst()
469 IRBuilder<> Builder(CI.getParent(), &CI); in visitCastInst()
489 IRBuilder<> Builder(BCI.getParent(), &BCI); in visitBitCastInst()
566 IRBuilder<> Builder(PHI.getParent(), &PHI); in visitPHINode()
[all …]
/external/llvm/lib/CodeGen/
DShadowStackGCLowering.cpp55 static GetElementPtrInst *CreateGEP(LLVMContext &Context, IRBuilder<> &B,
58 static GetElementPtrInst *CreateGEP(LLVMContext &Context, IRBuilder<> &B,
96 IRBuilder<> Builder;
102 IRBuilder<> *Next() { in Next()
346 IRBuilder<> &B, Type *Ty, in CreateGEP()
361 IRBuilder<> &B, Type *Ty, Value *BasePtr, in CreateGEP()
395 IRBuilder<> AtEntry(IP->getParent(), IP); in runOnFunction()
440 while (IRBuilder<> *AtExit = EE.Next()) { in runOnFunction()
DAtomicExpandPass.cpp153 IRBuilder<> Builder(I); in bracketInstWithFences()
180 IRBuilder<> Builder(LI); in expandAtomicLoadToLL()
195 IRBuilder<> Builder(LI); in expandAtomicLoadToCmpXchg()
219 IRBuilder<> Builder(SI); in expandAtomicStore()
250 static Value *performAtomicOp(AtomicRMWInst::BinOp Op, IRBuilder<> &Builder, in performAtomicOp()
310 IRBuilder<> Builder(AI); in expandAtomicRMWToLLSC()
367 IRBuilder<> Builder(AI); in expandAtomicRMWToCmpXchg()
450 IRBuilder<> Builder(CI); in expandAtomicCmpXchg()
DSjLjEHPrepare.cpp128 IRBuilder<> Builder(I); in insertCallSiteStore()
182 IRBuilder<> Builder( in substituteLPadValues()
208 IRBuilder<> Builder(LPI->getParent()->getFirstInsertionPt()); in setupFunctionContext()
228 IRBuilder<> Builder(EntryBB->getTerminator()); in setupFunctionContext()
406 IRBuilder<> Builder(EntryBB->getTerminator()); in setupEntryBlockAndCallSites()
/external/llvm/lib/Target/R600/
DSITypeRewriter.cpp84 IRBuilder<> Builder(&I); in visitLoadInst()
101 IRBuilder<> Builder(&I); in visitCallInst()
146 IRBuilder<> Builder(&I); in visitBitCast()
/external/llvm/examples/ExceptionDemo/
DExceptionDemo.cpp255 llvm::IRBuilder<> tmp(&block, block.begin()); in createEntryBlockAlloca()
904 llvm::IRBuilder<> &builder, in generateStringPrint()
948 llvm::IRBuilder<> &builder, in generateIntegerPrint()
1000 llvm::IRBuilder<> &builder, in createFinallyBlock()
1076 llvm::IRBuilder<> &builder, in createCatchBlock()
1127 llvm::Module &module, llvm::IRBuilder<> &builder, in createCatchWrappedInvokeFunction()
1391 createThrowExceptionFunction(llvm::Module &module, llvm::IRBuilder<> &builder, in createThrowExceptionFunction()
1485 llvm::IRBuilder<> &builder);
1508 createUnwindExceptionTest(llvm::Module &module, llvm::IRBuilder<> &builder, in createUnwindExceptionTest()
1646 llvm::IRBuilder<> &builder) { in createStandardUtilityFunctions()
[all …]
/external/llvm/lib/Target/ARM/
DARMISelLowering.h400 Instruction *makeDMB(IRBuilder<> &Builder, ARM_MB::MemBOpt Domain) const;
401 Value *emitLoadLinked(IRBuilder<> &Builder, Value *Addr,
403 Value *emitStoreConditional(IRBuilder<> &Builder, Value *Val,
406 Instruction* emitLeadingFence(IRBuilder<> &Builder, AtomicOrdering Ord,
408 Instruction* emitTrailingFence(IRBuilder<> &Builder, AtomicOrdering Ord,

12345