Home
last modified time | relevance | path

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

123456

/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.cpp407 IRBuilder<> IRB(*C); in initializeCallbacks()
532 IRBuilder<> IRB(*C); in doInitialization()
569 virtual void visitCallSite(CallSite &CS, IRBuilder<> &IRB) = 0;
644 Value *updateOrigin(Value *V, IRBuilder<> &IRB) { in updateOrigin()
649 Value *originToIntptr(IRBuilder<> &IRB, Value *Origin) { in originToIntptr()
659 void paintOrigin(IRBuilder<> &IRB, Value *Origin, Value *OriginPtr, in paintOrigin()
690 void storeOrigin(IRBuilder<> &IRB, Value *Addr, Value *Shadow, Value *Origin, in storeOrigin()
725 IRBuilder<> IRBNew(CheckTerm); in storeOrigin()
737 IRBuilder<> IRB(&SI); in materializeStores()
760 IRBuilder<> IRB(OrigIns); in materializeOneCheck()
[all …]
DAddressSanitizer.cpp447 Value *createSlowPathCmp(IRBuilder<> &IRB, Value *AddrLong,
453 Value *memToShadow(Value *Shadow, IRBuilder<> &IRB);
520 bool InstrumentGlobals(IRBuilder<> &IRB, Module &M);
632 IRBuilder<> IRB(InstBefore); in unpoisonDynamicAllocasBeforeInst()
737 void poisonRedZones(ArrayRef<uint8_t> ShadowBytes, IRBuilder<> &IRB,
739 void poisonAlloca(Value *V, uint64_t Size, IRBuilder<> &IRB, bool DoPoison);
741 void SetShadowToStackAfterReturnInlined(IRBuilder<> &IRB, Value *ShadowBase,
743 Value *createAllocaForLayout(IRBuilder<> &IRB, const ASanStackFrameLayout &L,
745 PHINode *createPHI(IRBuilder<> &IRB, Value *Cond, Value *ValueIfTrue,
821 Value *AddressSanitizer::memToShadow(Value *Shadow, IRBuilder<> &IRB) { in memToShadow()
[all …]
DSafeStack.cpp123 Value *getOrCreateUnsafeStackPtr(IRBuilder<> &IRB, Function &F);
144 Value *moveStaticAllocasToUnsafeStack(IRBuilder<> &IRB, Function &F,
155 createStackRestorePoints(IRBuilder<> &IRB, Function &F,
345 Value *SafeStack::getOrCreateUnsafeStackPtr(IRBuilder<> &IRB, Function &F) { in getOrCreateUnsafeStackPtr()
431 SafeStack::createStackRestorePoints(IRBuilder<> &IRB, Function &F, in createStackRestorePoints()
471 IRBuilder<> &IRB, Function &F, ArrayRef<AllocaInst *> StaticAllocas, in moveStaticAllocasToUnsafeStack()
603 IRBuilder<> IRB(AI); in moveDynamicAllocasToUnsafeStack()
650 IRBuilder<> IRB(II); in moveDynamicAllocasToUnsafeStack()
656 IRBuilder<> IRB(II); in moveDynamicAllocasToUnsafeStack()
726 IRBuilder<> IRB(&F.front(), F.begin()->getFirstInsertionPt()); in runOnFunction()
DDataFlowSanitizer.cpp553 IRBuilder<>(BB).CreateGlobalStringPtr(F->getName()), "", in buildWrapperFunction()
857 IRBuilder<> IRB(Pos); in runOnModule()
861 IRBuilder<> ThenIRB(BI); in runOnModule()
876 IRBuilder<> IRB(&F->getEntryBlock().front()); in getArgTLSPtr()
886 IRBuilder<> IRB(&F->getEntryBlock().front()); in getRetvalTLS()
891 IRBuilder<> IRB(Pos); in getArgTLS()
909 IRBuilder<> IRB(ArgTLSPos); in getShadow()
939 IRBuilder<> IRB(Pos); in getShadowAddress()
988 IRBuilder<> IRB(Pos); in combineShadows()
1002 IRBuilder<> ThenIRB(BI); in combineShadows()
[all …]
DThreadSanitizer.cpp137 IRBuilder<> IRB(M.getContext()); in initializeCallbacks()
392 IRBuilder<> IRB(F.getEntryBlock().getFirstNonPHI()); in runOnFunction()
398 IRBuilder<> IRBRet(RetInst); in runOnFunction()
408 IRBuilder<> IRB(I); in instrumentLoadOrStore()
456 static ConstantInt *createOrdering(IRBuilder<> *IRB, AtomicOrdering ord) { in createOrdering()
480 IRBuilder<> IRB(I); in instrumentMemIntrinsic()
508 IRBuilder<> IRB(I); in instrumentAtomic()
/external/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp194 Value *LibCallSimplifier::optimizeStrCat(CallInst *CI, IRBuilder<> &B) { in optimizeStrCat()
222 IRBuilder<> &B) { in emitStrLenMemCpy()
242 Value *LibCallSimplifier::optimizeStrNCat(CallInst *CI, IRBuilder<> &B) { in optimizeStrNCat()
284 Value *LibCallSimplifier::optimizeStrChr(CallInst *CI, IRBuilder<> &B) { in optimizeStrChr()
329 Value *LibCallSimplifier::optimizeStrRChr(CallInst *CI, IRBuilder<> &B) { in optimizeStrRChr()
364 Value *LibCallSimplifier::optimizeStrCmp(CallInst *CI, IRBuilder<> &B) { in optimizeStrCmp()
405 Value *LibCallSimplifier::optimizeStrNCmp(CallInst *CI, IRBuilder<> &B) { in optimizeStrNCmp()
453 Value *LibCallSimplifier::optimizeStrCpy(CallInst *CI, IRBuilder<> &B) { in optimizeStrCpy()
475 Value *LibCallSimplifier::optimizeStpCpy(CallInst *CI, IRBuilder<> &B) { in optimizeStpCpy()
502 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::EmitStrChr(Value *Ptr, char C, IRBuilder<> &B, in EmitStrChr()
85 Value *llvm::EmitStrNCmp(Value *Ptr1, Value *Ptr2, Value *Len, IRBuilder<> &B, in EmitStrNCmp()
112 Value *llvm::EmitStrCpy(Value *Dst, Value *Src, IRBuilder<> &B, in EmitStrCpy()
135 Value *llvm::EmitStrNCpy(Value *Dst, Value *Src, Value *Len, IRBuilder<> &B, in EmitStrNCpy()
162 IRBuilder<> &B, const DataLayout &DL, in EmitMemCpyChk()
186 Value *llvm::EmitMemChr(Value *Ptr, Value *Val, Value *Len, IRBuilder<> &B, in EmitMemChr()
208 Value *llvm::EmitMemCmp(Value *Ptr1, Value *Ptr2, Value *Len, IRBuilder<> &B, in EmitMemCmp()
252 Value *llvm::EmitUnaryFloatFnCall(Value *Op, StringRef Name, IRBuilder<> &B, in EmitUnaryFloatFnCall()
[all …]
DFlattenCFG.cpp31 bool FlattenParallelAndOr(BasicBlock *BB, IRBuilder<> &Builder);
35 bool MergeIfRegion(BasicBlock *BB, IRBuilder<> &Builder);
124 bool FlattenCFGOpt::FlattenParallelAndOr(BasicBlock *BB, IRBuilder<> &Builder) { in FlattenParallelAndOr()
271 IRBuilder<>::InsertPointGuard Guard(Builder); in FlattenParallelAndOr()
388 bool FlattenCFGOpt::MergeIfRegion(BasicBlock *BB, IRBuilder<> &Builder) { in MergeIfRegion()
470 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()
/external/llvm/lib/CodeGen/
DAtomicExpandPass.cpp62 std::function<Value *(IRBuilder<> &, Value *)> PerformOp);
180 IRBuilder<> Builder(I); in bracketInstWithFences()
216 IRBuilder<> Builder(LI); in convertAtomicLoadToIntegerType()
242 [](IRBuilder<> &Builder, Value *Loaded) { return Loaded; }); in tryExpandAtomicLoad()
252 IRBuilder<> Builder(LI); in expandAtomicLoadToLL()
268 IRBuilder<> Builder(LI); in expandAtomicLoadToCmpXchg()
294 IRBuilder<> Builder(SI); in convertAtomicStoreToIntegerType()
321 IRBuilder<> Builder(SI); in expandAtomicStore()
331 static void createCmpXchgInstFun(IRBuilder<> &Builder, Value *Addr, in createCmpXchgInstFun()
344 static Value *performAtomicOp(AtomicRMWInst::BinOp Op, IRBuilder<> &Builder, in performAtomicOp()
[all …]
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()
350 IRBuilder<> &B, Type *Ty, in CreateGEP()
365 IRBuilder<> &B, Type *Ty, Value *BasePtr, in CreateGEP()
399 IRBuilder<> AtEntry(IP->getParent(), IP); in runOnFunction()
444 while (IRBuilder<> *AtExit = EE.Next()) { in runOnFunction()
/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()
120 IRBuilder<> Builder(BB); in TEST_F()
132 IRBuilder<> Builder(BB); in TEST_F()
245 IRBuilder<true, NoFolder> Builder(BB); in TEST_F()
295 IRBuilder<> Builder(BB); in TEST_F()
305 IRBuilder<>::FastMathFlagGuard Guard(Builder); in TEST_F()
320 IRBuilder<>::InsertPointGuard Guard(Builder); in TEST_F()
330 IRBuilder<> Builder(BB); in TEST_F()
[all …]
/external/llvm/lib/Target/X86/
DX86WinEHState.cpp68 void linkExceptionRegistration(IRBuilder<> &Builder, Function *Handler);
69 void unlinkExceptionRegistration(IRBuilder<> &Builder);
73 Value *emitEHLSDA(IRBuilder<> &Builder, Function *F);
260 IRBuilder<> Builder(&F->getEntryBlock(), F->getEntryBlock().begin()); in emitExceptionRegistrationRecord()
321 Value *WinEHStatePass::emitEHLSDA(IRBuilder<> &Builder, Function *F) { in emitEHLSDA()
352 IRBuilder<> Builder(EntryBB); in generateLSDAInEAXThunk()
367 void WinEHStatePass::linkExceptionRegistration(IRBuilder<> &Builder, in linkExceptionRegistration()
385 void WinEHStatePass::unlinkExceptionRegistration(IRBuilder<> &Builder) { in unlinkExceptionRegistration()
404 IRBuilder<> Builder(RegNode->getParent(), std::next(RegNode->getIterator())); in addStateStores()
452 IRBuilder<> Builder(IP); in insertStateNumberStore()
/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()
169 IRBuilder<> &Builder) { in getOrInsertCVTA()
211 IRBuilder<> &Builder) { in remapConstant()
251 Module *M, Function *F, Constant *C, IRBuilder<> &Builder) { in remapConstantVectorOrConstantAggregate()
290 IRBuilder<> &Builder) { in remapConstantExpr()
DNVPTXLowerAggrCopies.cpp72 IRBuilder<> Builder(OrigBB->getTerminator()); in convertMemCpyToLoop()
83 IRBuilder<> LoopBuilder(LoopBB); in convertMemCpyToLoop()
171 IRBuilder<> LoopBuilder(LoopBB); in convertMemMoveToLoop()
190 IRBuilder<> FwdLoopBuilder(FwdLoopBB); in convertMemMoveToLoop()
217 IRBuilder<> Builder(OrigBB->getTerminator()); in convertMemSetToLoop()
224 IRBuilder<> LoopBuilder(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()
DLocal.cpp22 IRBuilder<> builder(C); in TEST()
64 IRBuilder<> B(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 []()
380 IRBuilder<> Builder(&I); in splitBinary()
400 IRBuilder<> Builder(&SI); in visitSelectInst()
441 IRBuilder<> Builder(&GEPI); in visitGetElementPtrInst()
475 IRBuilder<> Builder(&CI); in visitCastInst()
495 IRBuilder<> Builder(&BCI); in visitBitCastInst()
572 IRBuilder<> Builder(&PHI); in visitPHINode()
[all …]
/external/llvm/lib/Transforms/IPO/
DCrossDSOCFI.cpp130 IRBuilder<> IRBTrap(TrapBB); in buildCFICheck()
138 IRBuilder<> IRBExit(ExitBB); in buildCFICheck()
141 IRBuilder<> IRB(BB); in buildCFICheck()
146 IRBuilder<> IRBTest(TestBB); in buildCFICheck()
/external/llvm/lib/Target/AMDGPU/
DSITypeRewriter.cpp78 IRBuilder<> Builder(&I); in visitLoadInst()
95 IRBuilder<> Builder(&I); in visitCallInst()
140 IRBuilder<> Builder(&I); in visitBitCast()
/external/llvm/examples/ExceptionDemo/
DExceptionDemo.cpp256 llvm::IRBuilder<> tmp(&block, block.begin()); in createEntryBlockAlloca()
905 llvm::IRBuilder<> &builder, in generateStringPrint()
949 llvm::IRBuilder<> &builder, in generateIntegerPrint()
1001 llvm::IRBuilder<> &builder, in createFinallyBlock()
1077 llvm::IRBuilder<> &builder, in createCatchBlock()
1128 llvm::Module &module, llvm::IRBuilder<> &builder, in createCatchWrappedInvokeFunction()
1393 createThrowExceptionFunction(llvm::Module &module, llvm::IRBuilder<> &builder, in createThrowExceptionFunction()
1487 llvm::IRBuilder<> &builder);
1510 createUnwindExceptionTest(llvm::Module &module, llvm::IRBuilder<> &builder, in createUnwindExceptionTest()
1648 llvm::IRBuilder<> &builder) { in createStandardUtilityFunctions()
[all …]
/external/llvm/lib/Target/ARM/
DARMISelLowering.h434 Instruction *makeDMB(IRBuilder<> &Builder, ARM_MB::MemBOpt Domain) const;
435 Value *emitLoadLinked(IRBuilder<> &Builder, Value *Addr,
437 Value *emitStoreConditional(IRBuilder<> &Builder, Value *Val,
440 void emitAtomicCmpXchgNoStoreLLBalance(IRBuilder<> &Builder) const override;
442 Instruction* emitLeadingFence(IRBuilder<> &Builder, AtomicOrdering Ord,
444 Instruction* emitTrailingFence(IRBuilder<> &Builder, AtomicOrdering Ord,

123456