Lines Matching refs:IRB
694 Value *createSlowPathCmp(IRBuilder<> &IRB, Value *AddrLong,
700 Value *memToShadow(Value *Shadow, IRBuilder<> &IRB);
803 bool InstrumentGlobals(IRBuilder<> &IRB, Module &M, bool *CtorComdat);
804 void InstrumentGlobalsCOFF(IRBuilder<> &IRB, Module &M,
807 void InstrumentGlobalsELF(IRBuilder<> &IRB, Module &M,
811 void InstrumentGlobalsMachO(IRBuilder<> &IRB, Module &M,
815 InstrumentGlobalsWithMetadataArray(IRBuilder<> &IRB, Module &M,
978 IRBuilder<> IRB(InstBefore); in unpoisonDynamicAllocasBeforeInst() local
979 Value *DynamicAreaPtr = IRB.CreatePtrToInt(SavedStack, IntptrTy); in unpoisonDynamicAllocasBeforeInst()
989 Value *DynamicAreaOffset = IRB.CreateCall(DynamicAreaOffsetFunc, {}); in unpoisonDynamicAllocasBeforeInst()
991 DynamicAreaPtr = IRB.CreateAdd(IRB.CreatePtrToInt(SavedStack, IntptrTy), in unpoisonDynamicAllocasBeforeInst()
995 IRB.CreateCall( in unpoisonDynamicAllocasBeforeInst()
997 {IRB.CreateLoad(IntptrTy, DynamicAllocaLayout), DynamicAreaPtr}); in unpoisonDynamicAllocasBeforeInst()
1095 IRBuilder<> &IRB, Value *ShadowBase);
1097 size_t Begin, size_t End, IRBuilder<> &IRB,
1101 size_t End, IRBuilder<> &IRB, Value *ShadowBase);
1103 void poisonAlloca(Value *V, uint64_t Size, IRBuilder<> &IRB, bool DoPoison);
1105 Value *createAllocaForLayout(IRBuilder<> &IRB, const ASanStackFrameLayout &L,
1107 PHINode *createPHI(IRBuilder<> &IRB, Value *Cond, Value *ValueIfTrue,
1182 Value *AddressSanitizer::memToShadow(Value *Shadow, IRBuilder<> &IRB) { in memToShadow() argument
1184 Shadow = IRB.CreateLShr(Shadow, Mapping.Scale); in memToShadow()
1193 return IRB.CreateOr(Shadow, ShadowBase); in memToShadow()
1195 return IRB.CreateAdd(Shadow, ShadowBase); in memToShadow()
1200 IRBuilder<> IRB(MI); in instrumentMemIntrinsic() local
1202 IRB.CreateCall( in instrumentMemIntrinsic()
1204 {IRB.CreatePointerCast(MI->getOperand(0), IRB.getInt8PtrTy()), in instrumentMemIntrinsic()
1205 IRB.CreatePointerCast(MI->getOperand(1), IRB.getInt8PtrTy()), in instrumentMemIntrinsic()
1206 IRB.CreateIntCast(MI->getOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic()
1208 IRB.CreateCall( in instrumentMemIntrinsic()
1210 {IRB.CreatePointerCast(MI->getOperand(0), IRB.getInt8PtrTy()), in instrumentMemIntrinsic()
1211 IRB.CreateIntCast(MI->getOperand(1), IRB.getInt32Ty(), false), in instrumentMemIntrinsic()
1212 IRB.CreateIntCast(MI->getOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic()
1375 IRBuilder<> IRB(I); in instrumentPointerComparisonOrSubtraction() local
1380 i = IRB.CreatePointerCast(i, IntptrTy); in instrumentPointerComparisonOrSubtraction()
1382 IRB.CreateCall(F, Param); in instrumentPointerComparisonOrSubtraction()
1426 IRBuilder<> IRB(I); in instrumentMaskedLoadOrStore() local
1427 Value *MaskElem = IRB.CreateExtractElement(Mask, Idx); in instrumentMaskedLoadOrStore()
1432 IRBuilder<> IRB(InsertBefore); in instrumentMaskedLoadOrStore() local
1434 IRB.CreateGEP(VTy, Addr, {Zero, ConstantInt::get(IntptrTy, Idx)}); in instrumentMaskedLoadOrStore()
1501 IRBuilder<> IRB(InsertBefore); in generateCrashCode() local
1502 Value *ExpVal = Exp == 0 ? nullptr : ConstantInt::get(IRB.getInt32Ty(), Exp); in generateCrashCode()
1506 Call = IRB.CreateCall(AsanErrorCallbackSized[IsWrite][0], in generateCrashCode()
1509 Call = IRB.CreateCall(AsanErrorCallbackSized[IsWrite][1], in generateCrashCode()
1514 IRB.CreateCall(AsanErrorCallback[IsWrite][0][AccessSizeIndex], Addr); in generateCrashCode()
1516 Call = IRB.CreateCall(AsanErrorCallback[IsWrite][1][AccessSizeIndex], in generateCrashCode()
1524 Value *AddressSanitizer::createSlowPathCmp(IRBuilder<> &IRB, Value *AddrLong, in createSlowPathCmp() argument
1530 IRB.CreateAnd(AddrLong, ConstantInt::get(IntptrTy, Granularity - 1)); in createSlowPathCmp()
1533 LastAccessedByte = IRB.CreateAdd( in createSlowPathCmp()
1537 IRB.CreateIntCast(LastAccessedByte, ShadowValue->getType(), false); in createSlowPathCmp()
1539 return IRB.CreateICmpSGE(LastAccessedByte, ShadowValue); in createSlowPathCmp()
1553 IRBuilder<> IRB(InsertBefore); in instrumentAMDGPUAddress() local
1554 Value *AddrLong = IRB.CreatePointerCast(Addr, IRB.getInt8PtrTy()); in instrumentAMDGPUAddress()
1555 Value *IsShared = IRB.CreateCall(AMDGPUAddressShared, {AddrLong}); in instrumentAMDGPUAddress()
1556 Value *IsPrivate = IRB.CreateCall(AMDGPUAddressPrivate, {AddrLong}); in instrumentAMDGPUAddress()
1557 Value *IsSharedOrPrivate = IRB.CreateOr(IsShared, IsPrivate); in instrumentAMDGPUAddress()
1558 Value *Cmp = IRB.CreateICmpNE(IRB.getTrue(), IsSharedOrPrivate); in instrumentAMDGPUAddress()
1577 IRBuilder<> IRB(InsertBefore); in instrumentAddress() local
1583 Module *M = IRB.GetInsertBlock()->getParent()->getParent(); in instrumentAddress()
1584 IRB.CreateCall( in instrumentAddress()
1586 {IRB.CreatePointerCast(Addr, Int8PtrTy), in instrumentAddress()
1591 Value *AddrLong = IRB.CreatePointerCast(Addr, IntptrTy); in instrumentAddress()
1594 IRB.CreateCall(AsanMemoryAccessCallback[IsWrite][0][AccessSizeIndex], in instrumentAddress()
1597 IRB.CreateCall(AsanMemoryAccessCallback[IsWrite][1][AccessSizeIndex], in instrumentAddress()
1598 {AddrLong, ConstantInt::get(IRB.getInt32Ty(), Exp)}); in instrumentAddress()
1605 Value *ShadowPtr = memToShadow(AddrLong, IRB); in instrumentAddress()
1608 IRB.CreateLoad(ShadowTy, IRB.CreateIntToPtr(ShadowPtr, ShadowPtrTy)); in instrumentAddress()
1610 Value *Cmp = IRB.CreateICmpNE(ShadowValue, CmpVal); in instrumentAddress()
1621 IRB.SetInsertPoint(CheckTerm); in instrumentAddress()
1622 Value *Cmp2 = createSlowPathCmp(IRB, AddrLong, ShadowValue, TypeSize); in instrumentAddress()
1648 IRBuilder<> IRB(InsertBefore); in instrumentUnusualSizeOrAlignment() local
1650 Value *AddrLong = IRB.CreatePointerCast(Addr, IntptrTy); in instrumentUnusualSizeOrAlignment()
1653 IRB.CreateCall(AsanMemoryAccessCallbackSized[IsWrite][0], in instrumentUnusualSizeOrAlignment()
1656 IRB.CreateCall(AsanMemoryAccessCallbackSized[IsWrite][1], in instrumentUnusualSizeOrAlignment()
1657 {AddrLong, Size, ConstantInt::get(IRB.getInt32Ty(), Exp)}); in instrumentUnusualSizeOrAlignment()
1659 Value *LastByte = IRB.CreateIntToPtr( in instrumentUnusualSizeOrAlignment()
1660 IRB.CreateAdd(AddrLong, ConstantInt::get(IntptrTy, TypeSize / 8 - 1)), in instrumentUnusualSizeOrAlignment()
1670 IRBuilder<> IRB(&GlobalInit.front(), in poisonOneInitializer() local
1675 IRB.CreateCall(AsanPoisonGlobals, ModuleNameAddr); in poisonOneInitializer()
1903 IRBuilder<> IRB(*C); in initializeCallbacks() local
1907 M.getOrInsertFunction(kAsanPoisonGlobalsName, IRB.getVoidTy(), IntptrTy); in initializeCallbacks()
1909 M.getOrInsertFunction(kAsanUnpoisonGlobalsName, IRB.getVoidTy()); in initializeCallbacks()
1913 kAsanRegisterGlobalsName, IRB.getVoidTy(), IntptrTy, IntptrTy); in initializeCallbacks()
1915 kAsanUnregisterGlobalsName, IRB.getVoidTy(), IntptrTy, IntptrTy); in initializeCallbacks()
1920 kAsanRegisterImageGlobalsName, IRB.getVoidTy(), IntptrTy); in initializeCallbacks()
1922 kAsanUnregisterImageGlobalsName, IRB.getVoidTy(), IntptrTy); in initializeCallbacks()
1925 M.getOrInsertFunction(kAsanRegisterElfGlobalsName, IRB.getVoidTy(), in initializeCallbacks()
1928 M.getOrInsertFunction(kAsanUnregisterElfGlobalsName, IRB.getVoidTy(), in initializeCallbacks()
1997 IRBuilder<> &IRB, Module &M, ArrayRef<GlobalVariable *> ExtendedGlobals, in InstrumentGlobalsCOFF() argument
2030 IRBuilder<> &IRB, Module &M, ArrayRef<GlobalVariable *> ExtendedGlobals, in InstrumentGlobalsELF() argument
2081 IRB.CreateCall(AsanRegisterElfGlobals, in InstrumentGlobalsELF()
2082 {IRB.CreatePointerCast(RegisteredFlag, IntptrTy), in InstrumentGlobalsELF()
2083 IRB.CreatePointerCast(StartELFMetadata, IntptrTy), in InstrumentGlobalsELF()
2084 IRB.CreatePointerCast(StopELFMetadata, IntptrTy)}); in InstrumentGlobalsELF()
2091 {IRB.CreatePointerCast(RegisteredFlag, IntptrTy), in InstrumentGlobalsELF()
2092 IRB.CreatePointerCast(StartELFMetadata, IntptrTy), in InstrumentGlobalsELF()
2093 IRB.CreatePointerCast(StopELFMetadata, IntptrTy)}); in InstrumentGlobalsELF()
2098 IRBuilder<> &IRB, Module &M, ArrayRef<GlobalVariable *> ExtendedGlobals, in InstrumentGlobalsMachO() argument
2144 IRB.CreateCall(AsanRegisterImageGlobals, in InstrumentGlobalsMachO()
2145 {IRB.CreatePointerCast(RegisteredFlag, IntptrTy)}); in InstrumentGlobalsMachO()
2152 {IRB.CreatePointerCast(RegisteredFlag, IntptrTy)}); in InstrumentGlobalsMachO()
2157 IRBuilder<> &IRB, Module &M, ArrayRef<GlobalVariable *> ExtendedGlobals, in InstrumentGlobalsWithMetadataArray() argument
2173 IRB.CreateCall(AsanRegisterGlobals, in InstrumentGlobalsWithMetadataArray()
2174 {IRB.CreatePointerCast(AllGlobals, IntptrTy), in InstrumentGlobalsWithMetadataArray()
2182 {IRB.CreatePointerCast(AllGlobals, IntptrTy), in InstrumentGlobalsWithMetadataArray()
2192 bool ModuleAddressSanitizer::InstrumentGlobals(IRBuilder<> &IRB, Module &M, in InstrumentGlobals() argument
2260 Type *RightRedZoneTy = ArrayType::get(IRB.getInt8Ty(), RightRedzoneSize); in InstrumentGlobals()
2294 Indices2[0] = IRB.getInt32(0); in InstrumentGlobals()
2295 Indices2[1] = IRB.getInt32(0); in InstrumentGlobals()
2303 Constant *ODRIndicator = ConstantExpr::getNullValue(IRB.getInt8PtrTy()); in InstrumentGlobals()
2319 IRB.getInt8PtrTy()); in InstrumentGlobals()
2324 new GlobalVariable(M, IRB.getInt8Ty(), false, Linkage, in InstrumentGlobals()
2325 Constant::getNullValue(IRB.getInt8Ty()), in InstrumentGlobals()
2370 InstrumentGlobalsELF(IRB, M, NewGlobals, Initializers, ELFUniqueModuleId); in InstrumentGlobals()
2373 InstrumentGlobalsCOFF(IRB, M, NewGlobals, Initializers); in InstrumentGlobals()
2375 InstrumentGlobalsMachO(IRB, M, NewGlobals, Initializers); in InstrumentGlobals()
2377 InstrumentGlobalsWithMetadataArray(IRB, M, NewGlobals, Initializers); in InstrumentGlobals()
2444 IRBuilder<> IRB(AsanCtorFunction->getEntryBlock().getTerminator()); in instrumentModule() local
2445 InstrumentGlobals(IRB, M, &CtorComdat); in instrumentModule()
2470 IRBuilder<> IRB(*C); in initializeCallbacks() local
2488 FunctionType::get(IRB.getVoidTy(), Args2, false)); in initializeCallbacks()
2492 FunctionType::get(IRB.getVoidTy(), Args2, false)); in initializeCallbacks()
2500 FunctionType::get(IRB.getVoidTy(), Args1, false)); in initializeCallbacks()
2505 FunctionType::get(IRB.getVoidTy(), Args1, false)); in initializeCallbacks()
2515 IRB.getInt8PtrTy(), IRB.getInt8PtrTy(), in initializeCallbacks()
2516 IRB.getInt8PtrTy(), IntptrTy); in initializeCallbacks()
2518 IRB.getInt8PtrTy(), IRB.getInt8PtrTy(), in initializeCallbacks()
2519 IRB.getInt8PtrTy(), IntptrTy); in initializeCallbacks()
2521 IRB.getInt8PtrTy(), IRB.getInt8PtrTy(), in initializeCallbacks()
2522 IRB.getInt32Ty(), IntptrTy); in initializeCallbacks()
2525 M.getOrInsertFunction(kAsanHandleNoReturnName, IRB.getVoidTy()); in initializeCallbacks()
2528 M.getOrInsertFunction(kAsanPtrCmp, IRB.getVoidTy(), IntptrTy, IntptrTy); in initializeCallbacks()
2530 M.getOrInsertFunction(kAsanPtrSub, IRB.getVoidTy(), IntptrTy, IntptrTy); in initializeCallbacks()
2533 ArrayType::get(IRB.getInt8Ty(), 0)); in initializeCallbacks()
2536 kAMDGPUAddressSharedName, IRB.getInt1Ty(), IRB.getInt8PtrTy()); in initializeCallbacks()
2538 kAMDGPUAddressPrivateName, IRB.getInt1Ty(), IRB.getInt8PtrTy()); in initializeCallbacks()
2552 IRBuilder<> IRB(&F.front(), F.front().begin()); in maybeInsertAsanInitAtFunctionEntry() local
2553 IRB.CreateCall(AsanInitFunction, {}); in maybeInsertAsanInitAtFunctionEntry()
2564 IRBuilder<> IRB(&F.front().front()); in maybeInsertDynamicShadowAtFunctionEntry() local
2574 IRB.CreateCall(Asm, {AsanShadowGlobal}, ".asan.shadow"); in maybeInsertDynamicShadowAtFunctionEntry()
2577 IRB.CreatePointerCast(AsanShadowGlobal, IntptrTy, ".asan.shadow"); in maybeInsertDynamicShadowAtFunctionEntry()
2582 LocalDynamicShadow = IRB.CreateLoad(IntptrTy, GlobalDynamicAddress); in maybeInsertDynamicShadowAtFunctionEntry()
2748 IRBuilder<> IRB(CI); in instrumentFunction() local
2749 IRB.CreateCall(AsanHandleNoReturnFunc, {}); in instrumentFunction()
2780 IRBuilder<> IRB(*C); in initializeCallbacks() local
2793 IRB.getVoidTy(), IntptrTy, IntptrTy); in initializeCallbacks()
2798 kAsanPoisonStackMemoryName, IRB.getVoidTy(), IntptrTy, IntptrTy); in initializeCallbacks()
2800 kAsanUnpoisonStackMemoryName, IRB.getVoidTy(), IntptrTy, IntptrTy); in initializeCallbacks()
2808 M.getOrInsertFunction(Name.str(), IRB.getVoidTy(), IntptrTy, IntptrTy); in initializeCallbacks()
2812 kAsanAllocaPoison, IRB.getVoidTy(), IntptrTy, IntptrTy); in initializeCallbacks()
2814 kAsanAllocasUnpoison, IRB.getVoidTy(), IntptrTy, IntptrTy); in initializeCallbacks()
2820 IRBuilder<> &IRB, in copyToShadowInline() argument
2860 Value *Ptr = IRB.CreateAdd(ShadowBase, ConstantInt::get(IntptrTy, i)); in copyToShadowInline()
2861 Value *Poison = IRB.getIntN(StoreSizeInBytes * 8, Val); in copyToShadowInline()
2862 IRB.CreateAlignedStore( in copyToShadowInline()
2863 Poison, IRB.CreateIntToPtr(Ptr, Poison->getType()->getPointerTo()), in copyToShadowInline()
2872 IRBuilder<> &IRB, Value *ShadowBase) { in copyToShadow() argument
2873 copyToShadow(ShadowMask, ShadowBytes, 0, ShadowMask.size(), IRB, ShadowBase); in copyToShadow()
2879 IRBuilder<> &IRB, Value *ShadowBase) { in copyToShadow() argument
2896 copyToShadowInline(ShadowMask, ShadowBytes, Done, i, IRB, ShadowBase); in copyToShadow()
2897 IRB.CreateCall(AsanSetShadowFunc[Val], in copyToShadow()
2898 {IRB.CreateAdd(ShadowBase, ConstantInt::get(IntptrTy, i)), in copyToShadow()
2904 copyToShadowInline(ShadowMask, ShadowBytes, Done, End, IRB, ShadowBase); in copyToShadow()
2924 IRBuilder<> IRB(CopyInsertPoint); in copyArgsPassedByValToAllocas() local
2932 AllocaInst *AI = IRB.CreateAlloca( in copyArgsPassedByValToAllocas()
2940 IRB.CreateMemCpy(AI, Alignment, &Arg, Alignment, AllocSize); in copyArgsPassedByValToAllocas()
2945 PHINode *FunctionStackPoisoner::createPHI(IRBuilder<> &IRB, Value *Cond, in createPHI() argument
2949 PHINode *PHI = IRB.CreatePHI(IntptrTy, 2); in createPHI()
2958 IRBuilder<> &IRB, const ASanStackFrameLayout &L, bool Dynamic) { in createAllocaForLayout() argument
2961 Alloca = IRB.CreateAlloca(IRB.getInt8Ty(), in createAllocaForLayout()
2962 ConstantInt::get(IRB.getInt64Ty(), L.FrameSize), in createAllocaForLayout()
2965 Alloca = IRB.CreateAlloca(ArrayType::get(IRB.getInt8Ty(), L.FrameSize), in createAllocaForLayout()
2972 return IRB.CreatePointerCast(Alloca, IntptrTy); in createAllocaForLayout()
2977 IRBuilder<> IRB(dyn_cast<Instruction>(FirstBB.begin())); in createDynamicAllocasInitStorage() local
2978 DynamicAllocaLayout = IRB.CreateAlloca(IntptrTy, nullptr); in createDynamicAllocasInitStorage()
2979 IRB.CreateStore(Constant::getNullValue(IntptrTy), DynamicAllocaLayout); in createDynamicAllocasInitStorage()
2996 IRBuilder<> IRB(APC.InsBefore); in processDynamicAllocas() local
2997 poisonAlloca(APC.AI, APC.Size, IRB, APC.DoPoison); in processDynamicAllocas()
3076 IRBuilder<> IRB(InsBefore); in processStaticAllocas() local
3159 DoDynamicAlloca ? nullptr : createAllocaForLayout(IRB, L, false); in processStaticAllocas()
3168 IRB.CreateAlloca(IntptrTy, nullptr, "asan_local_stack_base"); in processStaticAllocas()
3176 kAsanOptionDetectUseAfterReturn, IRB.getInt32Ty()); in processStaticAllocas()
3177 Value *UseAfterReturnIsEnabled = IRB.CreateICmpNE( in processStaticAllocas()
3178 IRB.CreateLoad(IRB.getInt32Ty(), OptionDetectUseAfterReturn), in processStaticAllocas()
3179 Constant::getNullValue(IRB.getInt32Ty())); in processStaticAllocas()
3188 IRB.SetInsertPoint(InsBefore); in processStaticAllocas()
3189 FakeStack = createPHI(IRB, UseAfterReturnIsEnabled, FakeStackValue, Term, in processStaticAllocas()
3197 FakeStack = IRB.CreateCall(AsanStackMallocFunc[StackMallocIdx], in processStaticAllocas()
3201 IRB.CreateICmpEQ(FakeStack, Constant::getNullValue(IntptrTy)); in processStaticAllocas()
3208 IRB.SetInsertPoint(InsBefore); in processStaticAllocas()
3209 LocalStackBase = createPHI(IRB, NoFakeStack, AllocaValue, Term, FakeStack); in processStaticAllocas()
3210 IRB.CreateStore(LocalStackBase, LocalStackBaseAlloca); in processStaticAllocas()
3217 DoDynamicAlloca ? createAllocaForLayout(IRB, L, true) : StaticAlloca; in processStaticAllocas()
3236 Value *NewAllocaPtr = IRB.CreateIntToPtr( in processStaticAllocas()
3237 IRB.CreateAdd(LocalStackBase, ConstantInt::get(IntptrTy, Desc.Offset)), in processStaticAllocas()
3244 Value *BasePlus0 = IRB.CreateIntToPtr(LocalStackBase, IntptrPtrTy); in processStaticAllocas()
3245 IRB.CreateStore(ConstantInt::get(IntptrTy, kCurrentStackFrameMagic), in processStaticAllocas()
3248 Value *BasePlus1 = IRB.CreateIntToPtr( in processStaticAllocas()
3249 IRB.CreateAdd(LocalStackBase, in processStaticAllocas()
3255 Value *Description = IRB.CreatePointerCast(StackDescriptionGlobal, IntptrTy); in processStaticAllocas()
3256 IRB.CreateStore(Description, BasePlus1); in processStaticAllocas()
3258 Value *BasePlus2 = IRB.CreateIntToPtr( in processStaticAllocas()
3259 IRB.CreateAdd(LocalStackBase, in processStaticAllocas()
3262 IRB.CreateStore(IRB.CreatePointerCast(&F, IntptrTy), BasePlus2); in processStaticAllocas()
3267 Value *ShadowBase = ASan.memToShadow(LocalStackBase, IRB); in processStaticAllocas()
3270 copyToShadow(ShadowAfterScope, ShadowAfterScope, IRB, ShadowBase); in processStaticAllocas()
3282 IRBuilder<> IRB(APC.InsBefore); in processStaticAllocas() local
3285 IRB, ShadowBase); in processStaticAllocas()
3349 IRBuilder<> &IRB, bool DoPoison) { in poisonAlloca() argument
3351 Value *AddrArg = IRB.CreatePointerCast(V, IntptrTy); in poisonAlloca()
3353 IRB.CreateCall( in poisonAlloca()
3367 IRBuilder<> IRB(AI); in handleDynamicAllocaCall() local
3383 IRB.CreateMul(IRB.CreateIntCast(AI->getArraySize(), IntptrTy, false), in handleDynamicAllocaCall()
3387 Value *PartialSize = IRB.CreateAnd(OldSize, AllocaRzMask); in handleDynamicAllocaCall()
3390 Value *Misalign = IRB.CreateSub(AllocaRzSize, PartialSize); in handleDynamicAllocaCall()
3393 Value *Cond = IRB.CreateICmpNE(Misalign, AllocaRzSize); in handleDynamicAllocaCall()
3394 Value *PartialPadding = IRB.CreateSelect(Cond, Misalign, Zero); in handleDynamicAllocaCall()
3399 Value *AdditionalChunkSize = IRB.CreateAdd( in handleDynamicAllocaCall()
3403 Value *NewSize = IRB.CreateAdd(OldSize, AdditionalChunkSize); in handleDynamicAllocaCall()
3406 AllocaInst *NewAlloca = IRB.CreateAlloca(IRB.getInt8Ty(), NewSize); in handleDynamicAllocaCall()
3411 IRB.CreateAdd(IRB.CreatePtrToInt(NewAlloca, IntptrTy), in handleDynamicAllocaCall()
3415 IRB.CreateCall(AsanAllocaPoisonFunc, {NewAddress, OldSize}); in handleDynamicAllocaCall()
3419 IRB.CreateStore(IRB.CreatePtrToInt(NewAlloca, IntptrTy), DynamicAllocaLayout); in handleDynamicAllocaCall()
3421 Value *NewAddressPtr = IRB.CreateIntToPtr(NewAddress, AI->getType()); in handleDynamicAllocaCall()