Home
last modified time | relevance | path

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

12345678910>>...19

/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/Utils/
DSimplifyLibCalls.h55 Value *optimizeMemCpyChk(CallInst *CI, IRBuilder<> &B);
56 Value *optimizeMemMoveChk(CallInst *CI, IRBuilder<> &B);
57 Value *optimizeMemSetChk(CallInst *CI, IRBuilder<> &B);
60 Value *optimizeStrpCpyChk(CallInst *CI, IRBuilder<> &B, LibFunc Func);
61 Value *optimizeStrpNCpyChk(CallInst *CI, IRBuilder<> &B, LibFunc Func);
107 Value *optimizeStrCat(CallInst *CI, IRBuilder<> &B);
108 Value *optimizeStrNCat(CallInst *CI, IRBuilder<> &B);
109 Value *optimizeStrChr(CallInst *CI, IRBuilder<> &B);
110 Value *optimizeStrRChr(CallInst *CI, IRBuilder<> &B);
111 Value *optimizeStrCmp(CallInst *CI, IRBuilder<> &B);
[all …]
DBuildLibCalls.h41 Value *castToCStr(Value *V, IRBuilder<> &B);
46 Value *emitStrLen(Value *Ptr, IRBuilder<> &B, const DataLayout &DL,
52 Value *emitStrNLen(Value *Ptr, Value *MaxLen, IRBuilder<> &B,
58 Value *emitStrChr(Value *Ptr, char C, IRBuilder<> &B,
62 Value *emitStrNCmp(Value *Ptr1, Value *Ptr2, Value *Len, IRBuilder<> &B,
67 Value *emitStrCpy(Value *Dst, Value *Src, IRBuilder<> &B,
72 Value *emitStrNCpy(Value *Dst, Value *Src, Value *Len, IRBuilder<> &B,
78 IRBuilder<> &B, const DataLayout &DL,
83 Value *emitMemChr(Value *Ptr, Value *Val, Value *Len, IRBuilder<> &B,
87 Value *emitMemCmp(Value *Ptr1, Value *Ptr2, Value *Len, IRBuilder<> &B,
[all …]
/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.h33 Value *castToCStr(Value *V, IRBuilder<> &B);
38 Value *emitStrLen(Value *Ptr, IRBuilder<> &B, const DataLayout &DL,
44 Value *emitStrNLen(Value *Ptr, Value *MaxLen, IRBuilder<> &B,
50 Value *emitStrChr(Value *Ptr, char C, IRBuilder<> &B,
54 Value *emitStrNCmp(Value *Ptr1, Value *Ptr2, Value *Len, IRBuilder<> &B,
59 Value *emitStrCpy(Value *Dst, Value *Src, IRBuilder<> &B,
64 Value *emitStrNCpy(Value *Dst, Value *Src, Value *Len, IRBuilder<> &B,
70 IRBuilder<> &B, const DataLayout &DL,
75 Value *emitMemChr(Value *Ptr, Value *Val, Value *Len, IRBuilder<> &B,
79 Value *emitMemCmp(Value *Ptr1, Value *Ptr2, Value *Len, IRBuilder<> &B,
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/Transforms/Utils/
DBuildLibCalls.h25 Value *CastToCStr(Value *V, IRBuilder<> &B);
30 Value *EmitStrLen(Value *Ptr, IRBuilder<> &B, const TargetData *TD);
35 Value *EmitStrChr(Value *Ptr, char C, IRBuilder<> &B, const TargetData *TD);
38 Value *EmitStrNCmp(Value *Ptr1, Value *Ptr2, Value *Len, IRBuilder<> &B,
43 Value *EmitStrCpy(Value *Dst, Value *Src, IRBuilder<> &B,
48 Value *EmitStrNCpy(Value *Dst, Value *Src, Value *Len, IRBuilder<> &B,
55 IRBuilder<> &B, const TargetData *TD);
59 Value *EmitMemChr(Value *Ptr, Value *Val, Value *Len, IRBuilder<> &B,
63 Value *EmitMemCmp(Value *Ptr1, Value *Ptr2, Value *Len, IRBuilder<> &B,
71 Value *EmitUnaryFloatFnCall(Value *Op, const char *Name, IRBuilder<> &B,
[all …]
/external/tensorflow/tensorflow/compiler/xla/service/llvm_ir/
Dllvm_util.h106 absl::Span<llvm::Type* const> overloaded_types, llvm::IRBuilder<>* b);
111 llvm::IRBuilder<>* b);
116 llvm::IRBuilder<>* b);
123 llvm::IRBuilder<>* b);
125 llvm::IRBuilder<>* b);
142 llvm::IRBuilder<>* b);
171 llvm::IRBuilder<>* b,
179 llvm::IRBuilder<>* b,
187 llvm::IRBuilder<>* b);
219 llvm::IRBuilder<>* b, bool emit_else = true);
[all …]
Dir_array.h91 Index(llvm::Value* linear, const Shape& shape, llvm::IRBuilder<>* b);
103 llvm::IRBuilder<>* b) const { in AddOffsetToDim()
127 llvm::IRBuilder<>* builder) const;
138 llvm::IRBuilder<>* builder) const;
144 llvm::IRBuilder<>* builder) const;
149 llvm::IRBuilder<>* builder) const;
155 llvm::IRBuilder<>* builder) const;
160 llvm::IRBuilder<>* builder) const;
181 const Shape& shape, llvm::IRBuilder<>* b) const;
227 llvm::Value* EmitArrayElementAddress(const Index& index, llvm::IRBuilder<>* b,
[all …]
Dtuple_ops.h64 llvm::IRBuilder<>* b);
69 llvm::IRBuilder<>* b);
74 llvm::IRBuilder<>* b);
82 llvm::IRBuilder<>* b);
Dllvm_util.cc54 llvm::Module* ModuleFromIRBuilder(llvm::IRBuilder<>* b) { in ModuleFromIRBuilder()
83 absl::Span<llvm::Type* const> overloaded_types, llvm::IRBuilder<>* b) { in EmitCallToIntrinsic()
91 llvm::IRBuilder<>* b) { in EmitFloatMax()
104 llvm::IRBuilder<>* b) { in EmitFloatMin()
117 llvm::IRBuilder<>* b) { in EmitBufferIndexingGEP()
135 llvm::IRBuilder<>* b) { in EmitBufferIndexingGEP()
239 llvm::IRBuilder<>* b) { in EncodeSelfDescribingShapeConstant()
280 llvm::IRBuilder<>* b, in EmitAllocaAtFunctionEntry()
288 llvm::IRBuilder<>* b, in EmitAllocaAtFunctionEntryWithCount()
290 llvm::IRBuilder<>::InsertPointGuard guard(*b); in EmitAllocaAtFunctionEntryWithCount()
[all …]
Dloop_emitter.h44 llvm::IRBuilder<>* b);
48 const IrArray& target_array, llvm::IRBuilder<>* b);
56 absl::Span<const IrArray> target_arrays, llvm::IRBuilder<>* b);
88 llvm::IRBuilder<>* b_;
Dllvm_loop.h85 llvm::Value* end_index, llvm::Value* step, llvm::IRBuilder<>* b,
144 void Emit(llvm::IRBuilder<>* b);
146 llvm::BasicBlock* CreateLoopBB(absl::string_view name, llvm::IRBuilder<>* b);
154 std::vector<llvm::Metadata*> GetLoopMetadata(llvm::IRBuilder<>* b);
180 ForLoopNest(absl::string_view name, llvm::IRBuilder<>* b,
287 llvm::IRBuilder<>* b_;
Dtuple_ops.cc32 static llvm::Module* getModuleFromBuilder(llvm::IRBuilder<>* b) { in getModuleFromBuilder()
38 llvm::IRBuilder<>* b) { in EmitTupleSelect()
73 llvm::IRBuilder<>* b) { in EmitTuple()
85 llvm::IRBuilder<>* b) { in EmitTuple()
96 llvm::IRBuilder<>* b) { in EmitGetTupleElement()
Dir_array.cc42 llvm::IRBuilder<>* b) const { in Delinearize()
71 llvm::IRBuilder<>* b) in Index()
132 llvm::IRBuilder<>* builder) const { in SourceIndexOfReshape()
182 absl::Span<const int64> strides, llvm::IRBuilder<>* builder) const { in SourceIndexOfSlice()
204 llvm::IRBuilder<>* builder) const { in SourceIndexOfTranspose()
219 llvm::IRBuilder<>* builder) const { in SourceIndexOfBitcast()
253 llvm::IRBuilder<>* builder) const { in SourceIndexOfBroadcast()
314 llvm::IRBuilder<>* builder) const { in Linearize()
333 llvm::IRBuilder<>* b, in EmitArrayElementAddress()
392 llvm::IRBuilder<>* b, in EmitReadArrayElement()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp131 static bool isLocallyOpenedFile(Value *File, CallInst *CI, IRBuilder<> &B, in isLocallyOpenedFile()
157 Value *LibCallSimplifier::optimizeStrCat(CallInst *CI, IRBuilder<> &B) { in optimizeStrCat()
176 IRBuilder<> &B) { in emitStrLenMemCpy()
195 Value *LibCallSimplifier::optimizeStrNCat(CallInst *CI, IRBuilder<> &B) { in optimizeStrNCat()
228 Value *LibCallSimplifier::optimizeStrChr(CallInst *CI, IRBuilder<> &B) { in optimizeStrChr()
268 Value *LibCallSimplifier::optimizeStrRChr(CallInst *CI, IRBuilder<> &B) { in optimizeStrRChr()
295 Value *LibCallSimplifier::optimizeStrCmp(CallInst *CI, IRBuilder<> &B) { in optimizeStrCmp()
328 Value *LibCallSimplifier::optimizeStrNCmp(CallInst *CI, IRBuilder<> &B) { in optimizeStrNCmp()
367 Value *LibCallSimplifier::optimizeStrCpy(CallInst *CI, IRBuilder<> &B) { in optimizeStrCpy()
384 Value *LibCallSimplifier::optimizeStpCpy(CallInst *CI, IRBuilder<> &B) { in optimizeStpCpy()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Instrumentation/
DHWAddressSanitizer.cpp156 Value *memToShadow(Value *Shadow, Type *Ty, IRBuilder<> &IRB);
166 bool tagAlloca(IRBuilder<> &IRB, AllocaInst *AI, Value *Tag);
167 Value *tagPointer(IRBuilder<> &IRB, Type *Ty, Value *PtrLong, Value *Tag);
168 Value *untagPointer(IRBuilder<> &IRB, Value *PtrLong);
171 Value *getNextTagWithCall(IRBuilder<> &IRB);
172 Value *getStackBaseTag(IRBuilder<> &IRB);
173 Value *getAllocaTag(IRBuilder<> &IRB, Value *StackTag, AllocaInst *AI,
175 Value *getUARTag(IRBuilder<> &IRB, Value *StackTag);
246 IRBuilder<> IRB(*C); in doInitialization()
263 IRBuilder<> IRB(*C); in initializeCallbacks()
[all …]
DMemorySanitizer.cpp531 IRBuilder<> IRB(*C); in createUserspaceApi()
599 IRBuilder<> IRB(*C); in initializeCallbacks()
691 IRBuilder<> IRB(*C); in doInitialization()
736 virtual void visitCallSite(CallSite &CS, IRBuilder<> &IRB) = 0;
819 Value *updateOrigin(Value *V, IRBuilder<> &IRB) { in updateOrigin()
824 Value *originToIntptr(IRBuilder<> &IRB, Value *Origin) { in originToIntptr()
834 void paintOrigin(IRBuilder<> &IRB, Value *Origin, Value *OriginPtr, in paintOrigin()
865 void storeOrigin(IRBuilder<> &IRB, Value *Addr, Value *Shadow, Value *Origin, in storeOrigin()
898 IRBuilder<> IRBNew(CheckTerm); in storeOrigin()
907 IRBuilder<> IRB(SI); in materializeStores()
[all …]
/external/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp110 Value *LibCallSimplifier::optimizeStrCat(CallInst *CI, IRBuilder<> &B) { in optimizeStrCat()
129 IRBuilder<> &B) { in emitStrLenMemCpy()
149 Value *LibCallSimplifier::optimizeStrNCat(CallInst *CI, IRBuilder<> &B) { in optimizeStrNCat()
182 Value *LibCallSimplifier::optimizeStrChr(CallInst *CI, IRBuilder<> &B) { in optimizeStrChr()
222 Value *LibCallSimplifier::optimizeStrRChr(CallInst *CI, IRBuilder<> &B) { in optimizeStrRChr()
249 Value *LibCallSimplifier::optimizeStrCmp(CallInst *CI, IRBuilder<> &B) { in optimizeStrCmp()
282 Value *LibCallSimplifier::optimizeStrNCmp(CallInst *CI, IRBuilder<> &B) { in optimizeStrNCmp()
321 Value *LibCallSimplifier::optimizeStrCpy(CallInst *CI, IRBuilder<> &B) { in optimizeStrCpy()
338 Value *LibCallSimplifier::optimizeStpCpy(CallInst *CI, IRBuilder<> &B) { in optimizeStpCpy()
362 Value *LibCallSimplifier::optimizeStrNCpy(CallInst *CI, IRBuilder<> &B) { in optimizeStrNCpy()
[all …]
/external/llvm/lib/Transforms/Instrumentation/
DMemorySanitizer.cpp420 IRBuilder<> IRB(*C); in initializeCallbacks()
545 IRBuilder<> IRB(*C); in doInitialization()
588 virtual void visitCallSite(CallSite &CS, IRBuilder<> &IRB) = 0;
665 Value *updateOrigin(Value *V, IRBuilder<> &IRB) { in updateOrigin()
670 Value *originToIntptr(IRBuilder<> &IRB, Value *Origin) { in originToIntptr()
680 void paintOrigin(IRBuilder<> &IRB, Value *Origin, Value *OriginPtr, in paintOrigin()
711 void storeOrigin(IRBuilder<> &IRB, Value *Addr, Value *Shadow, Value *Origin, in storeOrigin()
746 IRBuilder<> IRBNew(CheckTerm); in storeOrigin()
756 IRBuilder<> IRB(SI); in materializeStores()
781 IRBuilder<> IRB(OrigIns); in materializeOneCheck()
[all …]
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Dir_function.h57 llvm::IRBuilder<>* b, int64 num_dynamic_loop_bounds);
101 llvm::IRBuilder<>* b_;
103 llvm::IRBuilder<>::InsertPointGuard caller_insert_point_guard_;
119 absl::Span<llvm::Value* const> parameter_addresses, llvm::IRBuilder<>* b,
128 const std::vector<int64>& dimension_partition_counts, llvm::IRBuilder<>* b,
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/
DBuildLibCalls.cpp27 Value *llvm::CastToCStr(Value *V, IRBuilder<> &B) { in CastToCStr()
33 Value *llvm::EmitStrLen(Value *Ptr, IRBuilder<> &B, const TargetData *TD) { in EmitStrLen()
55 Value *llvm::EmitStrChr(Value *Ptr, char C, IRBuilder<> &B, in EmitStrChr()
74 IRBuilder<> &B, const TargetData *TD) { in EmitStrNCmp()
99 Value *llvm::EmitStrCpy(Value *Dst, Value *Src, IRBuilder<> &B, in EmitStrCpy()
118 IRBuilder<> &B, const TargetData *TD, StringRef Name) { in EmitStrNCpy()
138 IRBuilder<> &B, const TargetData *TD) { in EmitMemCpyChk()
161 Value *Len, IRBuilder<> &B, const TargetData *TD) { in EmitMemChr()
182 Value *Len, IRBuilder<> &B, const TargetData *TD) { in EmitMemCmp()
210 IRBuilder<> &B, const AttrListPtr &Attrs) { in EmitUnaryFloatFnCall()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/
DVectorUtils.h138 Constant *createInterleaveMask(IRBuilder<> &Builder, unsigned VF,
153 Constant *createStrideMask(IRBuilder<> &Builder, unsigned Start,
167 Constant *createSequentialMask(IRBuilder<> &Builder, unsigned Start,
177 Value *concatenateVectors(IRBuilder<> &Builder, ArrayRef<Value *> Vecs);
/external/llvm/lib/CodeGen/
DSafeStack.cpp128 Value *getOrCreateUnsafeStackPtr(IRBuilder<> &IRB, Function &F);
131 Value *getStackGuard(IRBuilder<> &IRB, Function &F);
134 void checkStackGuard(IRBuilder<> &IRB, Function &F, ReturnInst &RI,
156 Value *moveStaticAllocasToUnsafeStack(IRBuilder<> &IRB, Function &F,
169 createStackRestorePoints(IRBuilder<> &IRB, Function &F,
359 Value *SafeStack::getOrCreateUnsafeStackPtr(IRBuilder<> &IRB, Function &F) { in getOrCreateUnsafeStackPtr()
395 Value *SafeStack::getStackGuard(IRBuilder<> &IRB, Function &F) { in getStackGuard()
455 SafeStack::createStackRestorePoints(IRBuilder<> &IRB, Function &F, in createStackRestorePoints()
490 void SafeStack::checkStackGuard(IRBuilder<> &IRB, Function &F, ReturnInst &RI, in checkStackGuard()
503 IRBuilder<> IRBFail(CheckTerm); in checkStackGuard()
[all …]
DAtomicExpandPass.cpp61 insertRMWLLSCLoop(IRBuilder<> &Builder, Type *ResultTy, Value *Addr,
63 function_ref<Value *(IRBuilder<> &, Value *)> PerformOp);
66 function_ref<Value *(IRBuilder<> &, Value *)> PerformOp);
74 IRBuilder<> &Builder, Type *ResultType, Value *Addr,
76 function_ref<Value *(IRBuilder<> &, Value *)> PerformOp,
325 IRBuilder<> Builder(I); in bracketInstWithFences()
361 IRBuilder<> Builder(LI); in convertAtomicLoadToIntegerType()
387 [](IRBuilder<> &Builder, Value *Loaded) { return Loaded; }); in tryExpandAtomicLoad()
398 IRBuilder<> Builder(LI); in expandAtomicLoadToLL()
414 IRBuilder<> Builder(LI); in expandAtomicLoadToCmpXchg()
[all …]
/external/swiftshader/third_party/llvm-7.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);
95 IRBuilder<> &Builder, Type *ResultType, Value *Addr,
97 function_ref<Value *(IRBuilder<> &, Value *)> PerformOp,
341 IRBuilder<> Builder(I); in bracketInstWithFences()
371 IRBuilder<> Builder(LI); in convertAtomicLoadToIntegerType()
397 [](IRBuilder<> &Builder, Value *Loaded) { return Loaded; }); in tryExpandAtomicLoad()
408 IRBuilder<> Builder(LI); in expandAtomicLoadToLL()
424 IRBuilder<> Builder(LI); in expandAtomicLoadToCmpXchg()
[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()
120 IRBuilder<> Builder(BB); in TEST_F()
132 IRBuilder<> Builder(BB); in TEST_F()
255 IRBuilder<NoFolder> Builder(BB); in TEST_F()
305 IRBuilder<> Builder(BB); in TEST_F()
315 IRBuilder<>::FastMathFlagGuard Guard(Builder); in TEST_F()
330 IRBuilder<>::InsertPointGuard Guard(Builder); in TEST_F()
340 IRBuilder<> Builder(BB); in TEST_F()
[all …]

12345678910>>...19