Home
last modified time | relevance | path

Searched refs:IRB (Results 1 – 25 of 147) sorted by relevance

123456

/external/llvm/unittests/IR/
DPatternMatch.cpp38 IRBuilder<NoFolder> IRB; member
45 BB(BasicBlock::Create(Ctx, "entry", F)), IRB(BB) {} in PatternMatchTest()
54 Value *One = IRB.CreateAdd(IRB.CreateAdd(IRB.getInt32(1), IRB.getInt32(2)), in TEST_F()
55 IRB.getInt32(42)); in TEST_F()
56 Value *Two = IRB.CreateAdd(One, IRB.getInt32(42)); in TEST_F()
57 Value *Leaf = IRB.CreateAdd(IRB.CreateAdd(Two, IRB.getInt32(8)), in TEST_F()
58 IRB.CreateAdd(Two, IRB.getInt32(13))); in TEST_F()
69 Type *FltTy = IRB.getFloatTy(); in TEST_F()
76 .match(IRB.CreateSelect(IRB.CreateFCmpOLT(L, R), L, R))); in TEST_F()
82 .match(IRB.CreateSelect(IRB.CreateFCmpOLE(L, R), L, R))); in TEST_F()
[all …]
/external/llvm/lib/Transforms/Instrumentation/
DMemorySanitizer.cpp420 IRBuilder<> IRB(*C); in initializeCallbacks() local
426 WarningFn = M.getOrInsertFunction(WarningFnName, IRB.getVoidTy(), nullptr); in initializeCallbacks()
433 FunctionName, IRB.getVoidTy(), IRB.getIntNTy(AccessSize * 8), in initializeCallbacks()
434 IRB.getInt32Ty(), nullptr); in initializeCallbacks()
438 FunctionName, IRB.getVoidTy(), IRB.getIntNTy(AccessSize * 8), in initializeCallbacks()
439 IRB.getInt8PtrTy(), IRB.getInt32Ty(), nullptr); in initializeCallbacks()
443 "__msan_set_alloca_origin4", IRB.getVoidTy(), IRB.getInt8PtrTy(), IntptrTy, in initializeCallbacks()
444 IRB.getInt8PtrTy(), IntptrTy, nullptr); in initializeCallbacks()
446 M.getOrInsertFunction("__msan_poison_stack", IRB.getVoidTy(), in initializeCallbacks()
447 IRB.getInt8PtrTy(), IntptrTy, nullptr); in initializeCallbacks()
[all …]
DThreadSanitizer.cpp151 IRBuilder<> IRB(M.getContext()); in initializeCallbacks() local
154 "__tsan_func_entry", IRB.getVoidTy(), IRB.getInt8PtrTy(), nullptr)); in initializeCallbacks()
156 M.getOrInsertFunction("__tsan_func_exit", IRB.getVoidTy(), nullptr)); in initializeCallbacks()
157 OrdTy = IRB.getInt32Ty(); in initializeCallbacks()
165 ReadName, IRB.getVoidTy(), IRB.getInt8PtrTy(), nullptr)); in initializeCallbacks()
169 WriteName, IRB.getVoidTy(), IRB.getInt8PtrTy(), nullptr)); in initializeCallbacks()
174 UnalignedReadName, IRB.getVoidTy(), IRB.getInt8PtrTy(), nullptr)); in initializeCallbacks()
179 UnalignedWriteName, IRB.getVoidTy(), IRB.getInt8PtrTy(), nullptr)); in initializeCallbacks()
189 AtomicStoreName, IRB.getVoidTy(), PtrTy, Ty, OrdTy, nullptr)); in initializeCallbacks()
222 M.getOrInsertFunction("__tsan_vptr_update", IRB.getVoidTy(), in initializeCallbacks()
[all …]
DSanitizerCoverage.cpp215 IRBuilder<> IRB(*C); in runOnModule() local
216 Type *Int8PtrTy = PointerType::getUnqual(IRB.getInt8Ty()); in runOnModule()
217 Type *Int32PtrTy = PointerType::getUnqual(IRB.getInt32Ty()); in runOnModule()
218 Int64PtrTy = PointerType::getUnqual(IRB.getInt64Ty()); in runOnModule()
219 Int64Ty = IRB.getInt64Ty(); in runOnModule()
238 EmptyAsm = InlineAsm::get(FunctionType::get(IRB.getVoidTy(), false), in runOnModule()
251 Type *Int32Ty = IRB.getInt32Ty(); in runOnModule()
252 Type *Int8Ty = IRB.getInt8Ty(); in runOnModule()
276 IRB.CreatePointerCast(RealGuardArray, Int32PtrTy)); in runOnModule()
289 IRB.CreatePointerCast(RealEightBitCounterArray, Int8PtrTy)); in runOnModule()
[all …]
DAddressSanitizer.cpp492 Value *createSlowPathCmp(IRBuilder<> &IRB, Value *AddrLong,
498 Value *memToShadow(Value *Shadow, IRBuilder<> &IRB);
566 bool InstrumentGlobals(IRBuilder<> &IRB, Module &M);
681 IRBuilder<> IRB(InstBefore); in unpoisonDynamicAllocasBeforeInst() local
682 Value *DynamicAreaPtr = IRB.CreatePtrToInt(SavedStack, IntptrTy); in unpoisonDynamicAllocasBeforeInst()
692 Value *DynamicAreaOffset = IRB.CreateCall(DynamicAreaOffsetFunc, {}); in unpoisonDynamicAllocasBeforeInst()
694 DynamicAreaPtr = IRB.CreateAdd(IRB.CreatePtrToInt(SavedStack, IntptrTy), in unpoisonDynamicAllocasBeforeInst()
698 IRB.CreateCall(AsanAllocasUnpoisonFunc, in unpoisonDynamicAllocasBeforeInst()
699 {IRB.CreateLoad(DynamicAllocaLayout), DynamicAreaPtr}); in unpoisonDynamicAllocasBeforeInst()
788 void poisonRedZones(ArrayRef<uint8_t> ShadowBytes, IRBuilder<> &IRB,
[all …]
DEfficiencySanitizer.cpp195 Value *appToShadow(Value *Shadow, IRBuilder<> &IRB);
248 IRBuilder<> IRB(M.getContext()); in initializeCallbacks() local
258 AlignedLoadName, IRB.getVoidTy(), IRB.getInt8PtrTy(), nullptr)); in initializeCallbacks()
262 AlignedStoreName, IRB.getVoidTy(), IRB.getInt8PtrTy(), nullptr)); in initializeCallbacks()
266 UnalignedLoadName, IRB.getVoidTy(), IRB.getInt8PtrTy(), nullptr)); in initializeCallbacks()
270 UnalignedStoreName, IRB.getVoidTy(), IRB.getInt8PtrTy(), nullptr)); in initializeCallbacks()
273 M.getOrInsertFunction("__esan_unaligned_loadN", IRB.getVoidTy(), in initializeCallbacks()
274 IRB.getInt8PtrTy(), IntptrTy, nullptr)); in initializeCallbacks()
276 M.getOrInsertFunction("__esan_unaligned_storeN", IRB.getVoidTy(), in initializeCallbacks()
277 IRB.getInt8PtrTy(), IntptrTy, nullptr)); in initializeCallbacks()
[all …]
/external/llvm-project/llvm/lib/Transforms/Instrumentation/
DMemorySanitizer.cpp713 IRBuilder<> IRB(*C); in createKernelApi() local
724 WarningFn = M.getOrInsertFunction("__msan_warning", IRB.getVoidTy(), in createKernelApi()
725 IRB.getInt32Ty()); in createKernelApi()
729 ArrayType::get(IRB.getInt64Ty(), kParamTLSSize / 8), in createKernelApi()
730 ArrayType::get(IRB.getInt64Ty(), kRetvalTLSSize / 8), in createKernelApi()
731 ArrayType::get(IRB.getInt64Ty(), kParamTLSSize / 8), in createKernelApi()
732 ArrayType::get(IRB.getInt64Ty(), kParamTLSSize / 8), /* va_arg_origin */ in createKernelApi()
733 IRB.getInt64Ty(), ArrayType::get(OriginTy, kParamTLSSize / 4), OriginTy, in createKernelApi()
738 Type *RetTy = StructType::get(PointerType::get(IRB.getInt8Ty(), 0), in createKernelApi()
739 PointerType::get(IRB.getInt32Ty(), 0)); in createKernelApi()
[all …]
DHWAddressSanitizer.cpp209 Value *getOpaqueNoopCast(IRBuilder<> &IRB, Value *Val);
211 Value *getDynamicShadowIfunc(IRBuilder<> &IRB);
212 Value *getShadowNonTls(IRBuilder<> &IRB);
215 Value *memToShadow(Value *Shadow, IRBuilder<> &IRB);
226 bool tagAlloca(IRBuilder<> &IRB, AllocaInst *AI, Value *Tag, size_t Size);
227 Value *tagPointer(IRBuilder<> &IRB, Type *Ty, Value *PtrLong, Value *Tag);
228 Value *untagPointer(IRBuilder<> &IRB, Value *PtrLong);
233 Value *readRegister(IRBuilder<> &IRB, StringRef Name);
235 Value *getNextTagWithCall(IRBuilder<> &IRB);
236 Value *getStackBaseTag(IRBuilder<> &IRB);
[all …]
DThreadSanitizer.cpp249 IRBuilder<> IRB(M.getContext()); in initialize() local
255 IRB.getVoidTy(), IRB.getInt8PtrTy()); in initialize()
257 M.getOrInsertFunction("__tsan_func_exit", Attr, IRB.getVoidTy()); in initialize()
259 IRB.getVoidTy()); in initialize()
261 M.getOrInsertFunction("__tsan_ignore_thread_end", Attr, IRB.getVoidTy()); in initialize()
262 IntegerType *OrdTy = IRB.getInt32Ty(); in initialize()
269 TsanRead[i] = M.getOrInsertFunction(ReadName, Attr, IRB.getVoidTy(), in initialize()
270 IRB.getInt8PtrTy()); in initialize()
273 TsanWrite[i] = M.getOrInsertFunction(WriteName, Attr, IRB.getVoidTy(), in initialize()
274 IRB.getInt8PtrTy()); in initialize()
[all …]
DAddressSanitizer.cpp638 Value *createSlowPathCmp(IRBuilder<> &IRB, Value *AddrLong,
644 Value *memToShadow(Value *Shadow, IRBuilder<> &IRB);
773 bool InstrumentGlobals(IRBuilder<> &IRB, Module &M, bool *CtorComdat);
774 void InstrumentGlobalsCOFF(IRBuilder<> &IRB, Module &M,
777 void InstrumentGlobalsELF(IRBuilder<> &IRB, Module &M,
781 void InstrumentGlobalsMachO(IRBuilder<> &IRB, Module &M,
785 InstrumentGlobalsWithMetadataArray(IRBuilder<> &IRB, Module &M,
981 IRBuilder<> IRB(InstBefore); in unpoisonDynamicAllocasBeforeInst() local
982 Value *DynamicAreaPtr = IRB.CreatePtrToInt(SavedStack, IntptrTy); in unpoisonDynamicAllocasBeforeInst()
992 Value *DynamicAreaOffset = IRB.CreateCall(DynamicAreaOffsetFunc, {}); in unpoisonDynamicAllocasBeforeInst()
[all …]
DMemProfiler.cpp180 Value *memToShadow(Value *Shadow, IRBuilder<> &IRB);
296 Value *MemProfiler::memToShadow(Value *Shadow, IRBuilder<> &IRB) { in memToShadow() argument
298 Shadow = IRB.CreateAnd(Shadow, Mapping.Mask); in memToShadow()
299 Shadow = IRB.CreateLShr(Shadow, Mapping.Scale); in memToShadow()
302 return IRB.CreateAdd(Shadow, DynamicShadowOffset); in memToShadow()
307 IRBuilder<> IRB(MI); in instrumentMemIntrinsic() local
309 IRB.CreateCall( in instrumentMemIntrinsic()
311 {IRB.CreatePointerCast(MI->getOperand(0), IRB.getInt8PtrTy()), in instrumentMemIntrinsic()
312 IRB.CreatePointerCast(MI->getOperand(1), IRB.getInt8PtrTy()), in instrumentMemIntrinsic()
313 IRB.CreateIntCast(MI->getOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic()
[all …]
DBoundsChecking.cpp60 BuilderTy &IRB, ScalarEvolution &SE) { in getBoundsCheckCond() argument
90 Value *ObjSize = IRB.CreateSub(Size, Offset); in getBoundsCheckCond()
93 : IRB.CreateICmpULT(Size, Offset); in getBoundsCheckCond()
98 : IRB.CreateICmpULT(ObjSize, NeededSizeVal); in getBoundsCheckCond()
99 Value *Or = IRB.CreateOr(Cmp2, Cmp3); in getBoundsCheckCond()
102 Value *Cmp1 = IRB.CreateICmpSLT(Offset, ConstantInt::get(IntTy, 0)); in getBoundsCheckCond()
103 Or = IRB.CreateOr(Cmp1, Or); in getBoundsCheckCond()
115 static void insertBoundsCheck(Value *Or, BuilderTy &IRB, GetTrapBBT GetTrapBB) { in insertBoundsCheck() argument
126 BasicBlock::iterator SplitI = IRB.GetInsertPoint(); in insertBoundsCheck()
135 BranchInst::Create(GetTrapBB(IRB), OldBB); in insertBoundsCheck()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/
DMemorySanitizer.cpp693 IRBuilder<> IRB(*C); in createKernelApi() local
707 WarningFn = M.getOrInsertFunction("__msan_warning", IRB.getVoidTy(), in createKernelApi()
708 IRB.getInt32Ty()); in createKernelApi()
712 ArrayType::get(IRB.getInt64Ty(), kParamTLSSize / 8), in createKernelApi()
713 ArrayType::get(IRB.getInt64Ty(), kRetvalTLSSize / 8), in createKernelApi()
714 ArrayType::get(IRB.getInt64Ty(), kParamTLSSize / 8), in createKernelApi()
715 ArrayType::get(IRB.getInt64Ty(), kParamTLSSize / 8), /* va_arg_origin */ in createKernelApi()
716 IRB.getInt64Ty(), ArrayType::get(OriginTy, kParamTLSSize / 4), OriginTy, in createKernelApi()
721 Type *RetTy = StructType::get(PointerType::get(IRB.getInt8Ty(), 0), in createKernelApi()
722 PointerType::get(IRB.getInt32Ty(), 0)); in createKernelApi()
[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 …]
DThreadSanitizer.cpp204 IRBuilder<> IRB(M.getContext()); in initialize() local
210 IRB.getVoidTy(), IRB.getInt8PtrTy()); in initialize()
212 M.getOrInsertFunction("__tsan_func_exit", Attr, IRB.getVoidTy()); in initialize()
214 IRB.getVoidTy()); in initialize()
216 M.getOrInsertFunction("__tsan_ignore_thread_end", Attr, IRB.getVoidTy()); in initialize()
217 IntegerType *OrdTy = IRB.getInt32Ty(); in initialize()
224 TsanRead[i] = M.getOrInsertFunction(ReadName, Attr, IRB.getVoidTy(), in initialize()
225 IRB.getInt8PtrTy()); in initialize()
228 TsanWrite[i] = M.getOrInsertFunction(WriteName, Attr, IRB.getVoidTy(), in initialize()
229 IRB.getInt8PtrTy()); in initialize()
[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,
976 IRBuilder<> IRB(InstBefore); in unpoisonDynamicAllocasBeforeInst() local
977 Value *DynamicAreaPtr = IRB.CreatePtrToInt(SavedStack, IntptrTy); in unpoisonDynamicAllocasBeforeInst()
987 Value *DynamicAreaOffset = IRB.CreateCall(DynamicAreaOffsetFunc, {}); in unpoisonDynamicAllocasBeforeInst()
[all …]
DBoundsChecking.cpp60 BuilderTy &IRB, ScalarEvolution &SE) { in getBoundsCheckCond() argument
90 Value *ObjSize = IRB.CreateSub(Size, Offset); in getBoundsCheckCond()
93 : IRB.CreateICmpULT(Size, Offset); in getBoundsCheckCond()
98 : IRB.CreateICmpULT(ObjSize, NeededSizeVal); in getBoundsCheckCond()
99 Value *Or = IRB.CreateOr(Cmp2, Cmp3); in getBoundsCheckCond()
102 Value *Cmp1 = IRB.CreateICmpSLT(Offset, ConstantInt::get(IntTy, 0)); in getBoundsCheckCond()
103 Or = IRB.CreateOr(Cmp1, Or); in getBoundsCheckCond()
115 static void insertBoundsCheck(Value *Or, BuilderTy IRB, GetTrapBBT GetTrapBB) { in insertBoundsCheck() argument
126 BasicBlock::iterator SplitI = IRB.GetInsertPoint(); in insertBoundsCheck()
135 BranchInst::Create(GetTrapBB(IRB), OldBB); in insertBoundsCheck()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/
DWebAssemblyLowerEmscriptenEHSjLj.cpp315 static GlobalVariable *getGlobalVariableI32(Module &M, IRBuilder<> &IRB, in getGlobalVariableI32() argument
319 dyn_cast<GlobalVariable>(M.getOrInsertGlobal(Name, IRB.getInt32Ty())); in getGlobalVariableI32()
387 IRBuilder<> IRB(C); in wrapInvoke() local
388 IRB.SetInsertPoint(CI); in wrapInvoke()
392 IRB.CreateStore(IRB.getInt32(0), ThrewGV); in wrapInvoke()
400 CallInst *NewCall = IRB.CreateCall(getInvokeWrapper(CI), Args); in wrapInvoke()
440 IRB.CreateLoad(IRB.getInt32Ty(), ThrewGV, ThrewGV->getName() + ".val"); in wrapInvoke()
441 IRB.CreateStore(IRB.getInt32(0), ThrewGV); in wrapInvoke()
546 IRBuilder<> IRB(C); in wrapTestSetjmp() local
547 IRB.SetInsertPoint(InsertPt); in wrapTestSetjmp()
[all …]
/external/llvm-project/llvm/lib/Target/WebAssembly/
DWebAssemblyLowerEmscriptenEHSjLj.cpp311 static GlobalVariable *getGlobalVariableI32(Module &M, IRBuilder<> &IRB, in getGlobalVariableI32() argument
314 auto Int32Ty = IRB.getInt32Ty(); in getGlobalVariableI32()
409 IRBuilder<> IRB(C); in wrapInvoke() local
410 IRB.SetInsertPoint(CI); in wrapInvoke()
414 IRB.CreateStore(IRB.getInt32(0), ThrewGV); in wrapInvoke()
422 CallInst *NewCall = IRB.CreateCall(getInvokeWrapper(CI), Args); in wrapInvoke()
462 IRB.CreateLoad(IRB.getInt32Ty(), ThrewGV, ThrewGV->getName() + ".val"); in wrapInvoke()
463 IRB.CreateStore(IRB.getInt32(0), ThrewGV); in wrapInvoke()
559 IRBuilder<> IRB(C); in wrapTestSetjmp() local
560 IRB.SetCurrentDebugLocation(DL); in wrapTestSetjmp()
[all …]
/external/llvm-project/llvm/unittests/IR/
DPatternMatch.cpp38 IRBuilder<NoFolder> IRB; member
45 BB(BasicBlock::Create(Ctx, "entry", F)), IRB(BB) {} in PatternMatchTest()
54 Value *One = IRB.CreateAdd(IRB.CreateAdd(IRB.getInt32(1), IRB.getInt32(2)), in TEST_F()
55 IRB.getInt32(42)); in TEST_F()
56 Value *Two = IRB.CreateAdd(One, IRB.getInt32(42)); in TEST_F()
57 Value *Leaf = IRB.CreateAdd(IRB.CreateAdd(Two, IRB.getInt32(8)), in TEST_F()
58 IRB.CreateAdd(Two, IRB.getInt32(13))); in TEST_F()
69 Type *IntTy = IRB.getInt32Ty(); in TEST_F()
108 Type *IntTy = IRB.getInt32Ty(); in TEST_F()
147 Type *IntTy = IRB.getInt32Ty(); in TEST_F()
[all …]
/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() argument
362 if (Value *V = TL->getSafeStackPointerLocation(IRB)) in getOrCreateUnsafeStackPtr()
395 Value *SafeStack::getStackGuard(IRBuilder<> &IRB, Function &F) { in getStackGuard() argument
398 StackGuardVar = TL->getIRStackGuard(IRB); in getStackGuard()
402 return IRB.CreateLoad(StackGuardVar, "StackGuard"); in getStackGuard()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DWasmEHPrepare.cpp145 IRBuilder<> IRB(M.getContext()); in doInitialization() local
146 LPadContextTy = StructType::get(IRB.getInt32Ty(), // lpad_index in doInitialization()
147 IRB.getInt8PtrTy(), // lsda in doInitialization()
148 IRB.getInt32Ty() // selector in doInitialization()
176 IRBuilder<> IRB(F.getContext()); in prepareThrows() local
195 IRB.SetInsertPoint(BB); in prepareThrows()
196 IRB.CreateUnreachable(); in prepareThrows()
205 IRBuilder<> IRB(F.getContext()); in prepareEHPads() local
226 LPadIndexField = IRB.CreateConstGEP2_32(LPadContextTy, LPadContextGV, 0, 0, in prepareEHPads()
229 IRB.CreateConstGEP2_32(LPadContextTy, LPadContextGV, 0, 1, "lsda_gep"); in prepareEHPads()
[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() argument
371 Value *StackGuardVar = TL.getIRStackGuard(IRB); in getStackGuard()
375 return IRB.CreateLoad(StackPtrTy, StackGuardVar, "StackGuard"); in getStackGuard()
428 SafeStack::createStackRestorePoints(IRBuilder<> &IRB, Function &F, in createStackRestorePoints() argument
446 DynamicTop = IRB.CreateAlloca(StackPtrTy, /*ArraySize=*/nullptr, in createStackRestorePoints()
448 IRB.CreateStore(StaticTop, DynamicTop); in createStackRestorePoints()
[all …]
/external/llvm-project/llvm/lib/Target/AArch64/
DAArch64StackTagging.cpp125 IRBuilder<> IRB(SI); in addStore() local
126 applyStore(IRB, Offset, Offset + StoreSize, SI->getOperand(0)); in addStore()
134 IRBuilder<> IRB(MSI); in addMemSet() local
135 applyMemSet(IRB, Offset, Offset + StoreSize, in addMemSet()
140 void applyMemSet(IRBuilder<> &IRB, int64_t Start, int64_t End, in applyMemSet() argument
156 ConstantInt::get(IRB.getInt64Ty(), Cst * V->getZExtValue()); in applyMemSet()
162 CurrentV = IRB.CreateOr(CurrentV, C); in applyMemSet()
169 Value *sliceValue(IRBuilder<> &IRB, Value *V, int64_t Offset) { in sliceValue() argument
171 V = IRB.CreateLShr(V, Offset * 8); in sliceValue()
172 V = IRB.CreateZExtOrTrunc(V, IRB.getInt64Ty()); in sliceValue()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
DAArch64StackTagging.cpp112 IRBuilder<> IRB(SI); in addStore() local
113 applyStore(IRB, Offset, Offset + StoreSize, SI->getOperand(0)); in addStore()
121 IRBuilder<> IRB(MSI); in addMemSet() local
122 applyMemSet(IRB, Offset, Offset + StoreSize, in addMemSet()
127 void applyMemSet(IRBuilder<> &IRB, int64_t Start, int64_t End, in applyMemSet() argument
143 ConstantInt::get(IRB.getInt64Ty(), Cst * V->getZExtValue()); in applyMemSet()
149 CurrentV = IRB.CreateOr(CurrentV, C); in applyMemSet()
156 Value *sliceValue(IRBuilder<> &IRB, Value *V, int64_t Offset) { in sliceValue() argument
158 V = IRB.CreateLShr(V, Offset * 8); in sliceValue()
159 V = IRB.CreateZExtOrTrunc(V, IRB.getInt64Ty()); in sliceValue()
[all …]

123456