Home
last modified time | relevance | path

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

1234567

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Utils/
DSimplifyLibCalls.h56 Value *optimizeMemCpyChk(CallInst *CI, IRBuilder<> &B);
57 Value *optimizeMemMoveChk(CallInst *CI, IRBuilder<> &B);
58 Value *optimizeMemSetChk(CallInst *CI, IRBuilder<> &B);
61 Value *optimizeStrpCpyChk(CallInst *CI, IRBuilder<> &B, LibFunc Func);
62 Value *optimizeStrpNCpyChk(CallInst *CI, IRBuilder<> &B, LibFunc Func);
63 Value *optimizeMemCCpyChk(CallInst *CI, IRBuilder<> &B);
64 Value *optimizeSNPrintfChk(CallInst *CI, IRBuilder<> &B);
65 Value *optimizeSPrintfChk(CallInst *CI,IRBuilder<> &B);
66 Value *optimizeStrCatChk(CallInst *CI, IRBuilder<> &B);
67 Value *optimizeStrLCat(CallInst *CI, IRBuilder<> &B);
[all …]
DBuildLibCalls.h45 Value *castToCStr(Value *V, IRBuilder<> &B);
50 Value *emitStrLen(Value *Ptr, IRBuilder<> &B, const DataLayout &DL,
56 Value *emitStrDup(Value *Ptr, IRBuilder<> &B, const TargetLibraryInfo *TLI);
61 Value *emitStrNLen(Value *Ptr, Value *MaxLen, IRBuilder<> &B,
67 Value *emitStrChr(Value *Ptr, char C, IRBuilder<> &B,
71 Value *emitStrNCmp(Value *Ptr1, Value *Ptr2, Value *Len, IRBuilder<> &B,
76 Value *emitStrCpy(Value *Dst, Value *Src, IRBuilder<> &B,
81 Value *emitStpCpy(Value *Dst, Value *Src, IRBuilder<> &B,
86 Value *emitStrNCpy(Value *Dst, Value *Src, Value *Len, IRBuilder<> &B,
91 Value *emitStpNCpy(Value *Dst, Value *Src, Value *Len, IRBuilder<> &B,
[all …]
DLoopUtils.h297 Value *createMinMaxOp(IRBuilder<> &Builder,
303 getOrderedReduction(IRBuilder<> &Builder, Value *Acc, Value *Src, unsigned Op,
310 Value *getShuffleReduction(IRBuilder<> &Builder, Value *Src, unsigned Op,
321 Value *createSimpleTargetReduction(IRBuilder<> &B,
332 Value *createTargetReduction(IRBuilder<> &B, const TargetTransformInfo *TTI,
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp141 static bool isLocallyOpenedFile(Value *File, CallInst *CI, IRBuilder<> &B, in isLocallyOpenedFile()
255 Value *LibCallSimplifier::optimizeStrCat(CallInst *CI, IRBuilder<> &B) { in optimizeStrCat()
277 IRBuilder<> &B) { in emitStrLenMemCpy()
297 Value *LibCallSimplifier::optimizeStrNCat(CallInst *CI, IRBuilder<> &B) { in optimizeStrNCat()
340 Value *LibCallSimplifier::optimizeStrChr(CallInst *CI, IRBuilder<> &B) { in optimizeStrChr()
385 Value *LibCallSimplifier::optimizeStrRChr(CallInst *CI, IRBuilder<> &B) { in optimizeStrRChr()
413 Value *LibCallSimplifier::optimizeStrCmp(CallInst *CI, IRBuilder<> &B) { in optimizeStrCmp()
468 Value *LibCallSimplifier::optimizeStrNCmp(CallInst *CI, IRBuilder<> &B) { in optimizeStrNCmp()
536 Value *LibCallSimplifier::optimizeStrNDup(CallInst *CI, IRBuilder<> &B) { in optimizeStrNDup()
549 Value *LibCallSimplifier::optimizeStrCpy(CallInst *CI, IRBuilder<> &B) { in optimizeStrCpy()
[all …]
DBuildLibCalls.cpp822 Value *llvm::castToCStr(Value *V, IRBuilder<> &B) { in castToCStr()
829 ArrayRef<Value *> Operands, IRBuilder<> &B, in emitLibCall()
847 Value *llvm::emitStrLen(Value *Ptr, IRBuilder<> &B, const DataLayout &DL, in emitStrLen()
854 Value *llvm::emitStrDup(Value *Ptr, IRBuilder<> &B, in emitStrDup()
860 Value *llvm::emitStrChr(Value *Ptr, char C, IRBuilder<> &B, in emitStrChr()
868 Value *llvm::emitStrNCmp(Value *Ptr1, Value *Ptr2, Value *Len, IRBuilder<> &B, in emitStrNCmp()
877 Value *llvm::emitStrCpy(Value *Dst, Value *Src, IRBuilder<> &B, in emitStrCpy()
884 Value *llvm::emitStpCpy(Value *Dst, Value *Src, IRBuilder<> &B, in emitStpCpy()
891 Value *llvm::emitStrNCpy(Value *Dst, Value *Src, Value *Len, IRBuilder<> &B, in emitStrNCpy()
898 Value *llvm::emitStpNCpy(Value *Dst, Value *Src, Value *Len, IRBuilder<> &B, in emitStpNCpy()
[all …]
DGuardUtils.cpp55 IRBuilder<> B(DeoptBlockTerm); in makeGuardControlFlowExplicit()
72 IRBuilder<> B(CheckBI); in makeGuardControlFlowExplicit()
95 IRBuilder<> B(WidenableBR); in widenWidenableBranch()
99 IRBuilder<> B(WidenableBR); in widenWidenableBranch()
116 IRBuilder<> B(WidenableBR); in setWidenableBranchCond()
DLowerMemIntrinsics.cpp56 IRBuilder<> PLBuilder(PreLoopBB->getTerminator()); in createMemCpyLoopKnownSize()
69 IRBuilder<> LoopBuilder(LoopBB); in createMemCpyLoopKnownSize()
93 IRBuilder<> RBuilder(PostLoopBB ? PostLoopBB->getFirstNonPHI() in createMemCpyLoopKnownSize()
152 IRBuilder<> PLBuilder(PreLoopBB->getTerminator()); in createMemCpyLoopUnknownSize()
178 IRBuilder<> LoopBuilder(LoopBB); in createMemCpyLoopUnknownSize()
220 IRBuilder<> RHBuilder(ResHeaderBB); in createMemCpyLoopUnknownSize()
225 IRBuilder<> ResBuilder(ResLoopBB); in createMemCpyLoopUnknownSize()
330 IRBuilder<> LoopBuilder(LoopBB); in createMemMoveLoop()
350 IRBuilder<> FwdLoopBuilder(FwdLoopBB); in createMemMoveLoop()
379 IRBuilder<> Builder(OrigBB->getTerminator()); in createMemSetLoop()
[all …]
DIntegerDivision.cpp34 IRBuilder<> &Builder) { in generateSignedRemainderCode()
80 IRBuilder<> &Builder) { in generatedUnsignedRemainderCode()
104 IRBuilder<> &Builder) { in generateSignedDivisionCode()
151 IRBuilder<> &Builder) { in generateUnsignedDivisionCode()
380 IRBuilder<> Builder(Rem); in expandRemainder()
438 IRBuilder<> Builder(Div); in expandDivision()
503 IRBuilder<> Builder(Rem); in expandRemainderUpTo32Bits()
551 IRBuilder<> Builder(Rem); in expandRemainderUpTo64Bits()
600 IRBuilder<> Builder(Div); in expandDivisionUpTo32Bits()
649 IRBuilder<> Builder(Div); in expandDivisionUpTo64Bits()
DFlattenCFG.cpp40 bool FlattenParallelAndOr(BasicBlock *BB, IRBuilder<> &Builder);
45 bool MergeIfRegion(BasicBlock *BB, IRBuilder<> &Builder);
136 bool FlattenCFGOpt::FlattenParallelAndOr(BasicBlock *BB, IRBuilder<> &Builder) { in FlattenParallelAndOr()
283 IRBuilder<>::InsertPointGuard Guard(Builder); in FlattenParallelAndOr()
398 bool FlattenCFGOpt::MergeIfRegion(BasicBlock *BB, IRBuilder<> &Builder) { in MergeIfRegion()
489 IRBuilder<> Builder(BB); in run()
/third_party/skia/third_party/externals/swiftshader/src/Reactor/
DLLVMReactorDebugInfo.hpp55 class IRBuilder;
69 using IRBuilder = llvm::IRBuilder<llvm::ConstantFolder, llvm::IRBuilderDefaultInserter>; typedef in rr::DebugInfo
71 DebugInfo(IRBuilder *builder,
137 void emitPending(Scope &scope, IRBuilder *builder);
156 IRBuilder *builder;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/
DMemorySanitizer.cpp693 IRBuilder<> IRB(*C); in createKernelApi()
760 IRBuilder<> IRB(*C); in createUserspaceApi()
823 IRBuilder<> IRB(*C); in initializeCallbacks()
941 IRBuilder<> IRB(*C); in initializeModule()
986 virtual void visitCallSite(CallSite &CS, IRBuilder<> &IRB) = 0;
1075 Value *updateOrigin(Value *V, IRBuilder<> &IRB) { in updateOrigin()
1080 Value *originToIntptr(IRBuilder<> &IRB, Value *Origin) { in originToIntptr()
1090 void paintOrigin(IRBuilder<> &IRB, Value *Origin, Value *OriginPtr, in paintOrigin()
1121 void storeOrigin(IRBuilder<> &IRB, Value *Addr, Value *Shadow, Value *Origin, in storeOrigin()
1153 IRBuilder<> IRBNew(CheckTerm); in storeOrigin()
[all …]
DHWAddressSanitizer.cpp204 Value *getDynamicShadowIfunc(IRBuilder<> &IRB);
205 Value *getDynamicShadowNonTls(IRBuilder<> &IRB);
209 Value *memToShadow(Value *Shadow, IRBuilder<> &IRB);
220 bool tagAlloca(IRBuilder<> &IRB, AllocaInst *AI, Value *Tag, size_t Size);
221 Value *tagPointer(IRBuilder<> &IRB, Type *Ty, Value *PtrLong, Value *Tag);
222 Value *untagPointer(IRBuilder<> &IRB, Value *PtrLong);
227 Value *readRegister(IRBuilder<> &IRB, StringRef Name);
229 Value *getNextTagWithCall(IRBuilder<> &IRB);
230 Value *getStackBaseTag(IRBuilder<> &IRB);
231 Value *getAllocaTag(IRBuilder<> &IRB, Value *StackTag, AllocaInst *AI,
[all …]
DAddressSanitizer.cpp635 Value *createSlowPathCmp(IRBuilder<> &IRB, Value *AddrLong,
641 Value *memToShadow(Value *Shadow, IRBuilder<> &IRB);
770 bool InstrumentGlobals(IRBuilder<> &IRB, Module &M, bool *CtorComdat);
771 void InstrumentGlobalsCOFF(IRBuilder<> &IRB, Module &M,
774 void InstrumentGlobalsELF(IRBuilder<> &IRB, Module &M,
778 void InstrumentGlobalsMachO(IRBuilder<> &IRB, Module &M,
782 InstrumentGlobalsWithMetadataArray(IRBuilder<> &IRB, Module &M,
790 IRBuilder<> CreateAsanModuleDtor(Module &M);
976 IRBuilder<> IRB(InstBefore); in unpoisonDynamicAllocasBeforeInst()
1096 IRBuilder<> &IRB, Value *ShadowBase);
[all …]
DPoisonChecking.cpp92 static Value *buildOrChain(IRBuilder<> &B, ArrayRef<Value*> Ops) { in buildOrChain()
110 IRBuilder<> B(&I); in generatePoisonChecksForBinOp()
187 IRBuilder<> B(&I); in generatePoisonChecks()
238 static void CreateAssert(IRBuilder<> &B, Value *Cond) { in CreateAssert()
252 static void CreateAssertNot(IRBuilder<> &B, Value *Cond) { in CreateAssertNot()
278 IRBuilder<> B(cast<Instruction>(&I)); in rewrite()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DMVEGatherScatterLowering.cpp82 Value *checkGEP(Value *&Offsets, Type *Ty, Value *Ptr, IRBuilder<> Builder);
87 IRBuilder<> Builder);
90 IRBuilder<> Builder);
119 IRBuilder<> Builder) { in checkGEP()
194 IRBuilder<> Builder(I->getContext()); in lowerGather()
216 IntrinsicInst *I, Value *Ptr, IRBuilder<> Builder) { in tryCreateMaskedGatherBase()
236 IntrinsicInst *I, Value *Ptr, IRBuilder<> Builder) { in tryCreateMaskedGatherOffset()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DAtomicExpandPass.cpp82 insertRMWLLSCLoop(IRBuilder<> &Builder, Type *ResultTy, Value *Addr,
84 function_ref<Value *(IRBuilder<> &, Value *)> PerformOp);
87 function_ref<Value *(IRBuilder<> &, Value *)> PerformOp);
98 IRBuilder<> &Builder, Type *ResultType, Value *Addr,
100 function_ref<Value *(IRBuilder<> &, Value *)> PerformOp,
348 IRBuilder<> Builder(I); in bracketInstWithFences()
378 IRBuilder<> Builder(LI); in convertAtomicLoadToIntegerType()
404 [](IRBuilder<> &Builder, Value *Loaded) { return Loaded; }); in tryExpandAtomicLoad()
416 IRBuilder<> Builder(LI); in expandAtomicLoadToLL()
432 IRBuilder<> Builder(LI); in expandAtomicLoadToCmpXchg()
[all …]
DSafeStack.cpp147 Value *getStackGuard(IRBuilder<> &IRB, Function &F);
150 void checkStackGuard(IRBuilder<> &IRB, Function &F, ReturnInst &RI,
172 Value *moveStaticAllocasToUnsafeStack(IRBuilder<> &IRB, Function &F,
185 createStackRestorePoints(IRBuilder<> &IRB, Function &F,
370 Value *SafeStack::getStackGuard(IRBuilder<> &IRB, Function &F) { in getStackGuard()
428 SafeStack::createStackRestorePoints(IRBuilder<> &IRB, Function &F, in createStackRestorePoints()
464 void SafeStack::checkStackGuard(IRBuilder<> &IRB, Function &F, ReturnInst &RI, in checkStackGuard()
477 IRBuilder<> IRBFail(CheckTerm); in checkStackGuard()
488 IRBuilder<> &IRB, Function &F, ArrayRef<AllocaInst *> StaticAllocas, in moveStaticAllocasToUnsafeStack()
608 IRBuilder<> IRBUser(InsertBefore); in moveStaticAllocasToUnsafeStack()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DLowerMatrixIntrinsics.cpp87 IRBuilder<> &Builder) { in computeColumnAddr()
170 Value *embedInVector(IRBuilder<> &Builder) const { in embedInVector()
226 IRBuilder<> Builder) { in getMatrix()
494 IRBuilder<> Builder(&Inst); in Visit()
517 IRBuilder<> Builder) { in createColumnLoad()
523 Type *EltType, IRBuilder<> Builder) { in createColumnStore()
530 Value *createElementPtr(Value *BasePtr, Type *EltType, IRBuilder<> &Builder) { in createElementPtr()
562 IRBuilder<> Builder(Inst); in LowerLoad()
590 IRBuilder<> Builder(Inst); in LowerStore()
618 unsigned NumElts, IRBuilder<> Builder) { in extractVector()
[all …]
DScalarizer.cpp108 Value *operator()(IRBuilder<> &Builder, Value *Op0, Value *Op1, in operator ()()
121 Value *operator()(IRBuilder<> &Builder, Value *Op0, Value *Op1, in operator ()()
134 Value *operator()(IRBuilder<> &Builder, Value *Op, const Twine &Name) const { in operator ()()
146 Value *operator()(IRBuilder<> &Builder, Value *Op0, Value *Op1, in operator ()()
270 IRBuilder<> Builder(BB, BBI); in operator []()
467 IRBuilder<> Builder(&I); in splitUnary()
487 IRBuilder<> Builder(&I); in splitBinary()
551 IRBuilder<> Builder(&CI); in splitCall()
578 IRBuilder<> Builder(&SI); in visitSelectInst()
623 IRBuilder<> Builder(&GEPI); in visitGetElementPtrInst()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/NVPTX/
DNVPTXGenericToNVVM.cpp48 IRBuilder<> &Builder);
51 IRBuilder<> &Builder);
53 IRBuilder<> &Builder);
106 IRBuilder<> Builder(I->getEntryBlock().getFirstNonPHIOrDbg()); in runOnModule()
157 IRBuilder<> &Builder) { in remapConstant()
196 Module *M, Function *F, Constant *C, IRBuilder<> &Builder) { in remapConstantVectorOrConstantAggregate()
235 IRBuilder<> &Builder) { in remapConstantExpr()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86WinEHState.cpp61 void linkExceptionRegistration(IRBuilder<> &Builder, Function *Handler);
62 void unlinkExceptionRegistration(IRBuilder<> &Builder);
66 Value *emitEHLSDA(IRBuilder<> &Builder, Function *F);
71 void rewriteSetJmpCallSite(IRBuilder<> &Builder, Function &F, CallSite CS,
276 IRBuilder<> Builder(&F->getEntryBlock(), F->getEntryBlock().begin()); in emitExceptionRegistrationRecord()
372 Value *WinEHStatePass::emitEHLSDA(IRBuilder<> &Builder, Function *F) { in emitEHLSDA()
405 IRBuilder<> Builder(EntryBB); in generateLSDAInEAXThunk()
420 void WinEHStatePass::linkExceptionRegistration(IRBuilder<> &Builder, in linkExceptionRegistration()
438 void WinEHStatePass::unlinkExceptionRegistration(IRBuilder<> &Builder) { in unlinkExceptionRegistration()
458 void WinEHStatePass::rewriteSetJmpCallSite(IRBuilder<> &Builder, Function &F, in rewriteSetJmpCallSite()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
DAArch64StackTagging.cpp112 IRBuilder<> IRB(SI); in addStore()
121 IRBuilder<> IRB(MSI); in addMemSet()
127 void applyMemSet(IRBuilder<> &IRB, int64_t Start, int64_t End, in applyMemSet()
156 Value *sliceValue(IRBuilder<> &IRB, Value *V, int64_t Offset) { in sliceValue()
169 void applyStore(IRBuilder<> &IRB, int64_t Start, int64_t End, in applyStore()
183 void generate(IRBuilder<> &IRB) { in generate()
222 void emitZeroes(IRBuilder<> &IRB, uint64_t Offset, uint64_t Size) { in emitZeroes()
232 void emitUndef(IRBuilder<> &IRB, uint64_t Offset, uint64_t Size) { in emitUndef()
241 void emitPair(IRBuilder<> &IRB, uint64_t Offset, Value *A, Value *B) { in emitPair()
250 Value *flatten(IRBuilder<> &IRB, Value *V) { in flatten()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Frontend/OpenMP/
DOMPIRBuilder.h41 using InsertPointTy = IRBuilder<>::InsertPoint;
116 LocationDescription(const IRBuilder<T, U> &IRB) in LocationDescription()
165 IRBuilder<>::InsertPoint
239 IRBuilder<> Builder;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPUCodeGenPrepare.cpp85 Type *getI32Ty(IRBuilder<> &B, const Type *T) const;
156 Value* expandDivRem24(IRBuilder<> &Builder, BinaryOperator &I,
161 Value* expandDivRem32(IRBuilder<> &Builder, BinaryOperator &I,
212 Type *AMDGPUCodeGenPrepare::getI32Ty(IRBuilder<> &B, const Type *T) const { in getI32Ty()
295 IRBuilder<> Builder(&I); in promoteUniformOpToI32()
336 IRBuilder<> Builder(&I); in promoteUniformOpToI32()
363 IRBuilder<> Builder(&I); in promoteUniformOpToI32()
395 IRBuilder<> Builder(&I); in promoteUniformBitreverseToI32()
437 static void extractValues(IRBuilder<> &Builder, in extractValues()
449 static Value *insertValues(IRBuilder<> &Builder, in insertValues()
[all …]
DAMDGPULibCalls.cpp87 bool fold_recip(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
90 bool fold_divide(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
93 bool fold_pow(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
96 bool fold_rootn(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
99 bool fold_fma_mad(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
110 bool fold_exp(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
113 bool fold_exp2(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
116 bool fold_exp10(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
119 bool fold_log(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
122 bool fold_log2(CallInst *CI, IRBuilder<> &B, const FuncInfo &FInfo);
[all …]

1234567