Lines Matching refs:IntptrTy

671     IntptrTy = Type::getIntNTy(*C, LongSize);  in AddressSanitizer()
712 Type *IntptrTy, Value *Mask, Value *EVL,
765 Type *IntptrTy; member
827 IntptrTy = Type::getIntNTy(*C, LongSize); in ModuleAddressSanitizer()
885 Type *IntptrTy; member in __anon5057f5c60211::ModuleAddressSanitizer
917 Type *IntptrTy; member
953 C(ASan.C), IntptrTy(ASan.IntptrTy), in FunctionStackPoisoner()
954 IntptrPtrTy(PointerType::get(IntptrTy, 0)), Mapping(ASan.Mapping), in FunctionStackPoisoner()
1021 Value *DynamicAreaPtr = IRB.CreatePtrToInt(SavedStack, IntptrTy); in unpoisonDynamicAllocasBeforeInst()
1029 {IntptrTy}); in unpoisonDynamicAllocasBeforeInst()
1033 DynamicAreaPtr = IRB.CreateAdd(IRB.CreatePtrToInt(SavedStack, IntptrTy), in unpoisonDynamicAllocasBeforeInst()
1039 {IRB.CreateLoad(IntptrTy, DynamicAllocaLayout), DynamicAreaPtr}); in unpoisonDynamicAllocasBeforeInst()
1104 !ConstantInt::isValueValidForType(IntptrTy, SizeValue)) in visitIntrinsicInst()
1246 ShadowBase = ConstantInt::get(IntptrTy, Mapping.Offset); in memToShadow()
1259 IRB.CreateIntCast(MI->getOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic()
1265 IRB.CreateIntCast(MI->getOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic()
1390 Type *ExtTy = VectorType::get(IntptrTy, cast<VectorType>(Ty)); in getInterestingMemoryOperands()
1506 i = IRB.CreatePointerCast(i, IntptrTy); in instrumentPointerComparisonOrSubtraction()
1539 AddressSanitizer *Pass, const DataLayout &DL, Type *IntptrTy, Value *Mask, in instrumentMaskedLoadOrStore() argument
1545 auto Zero = ConstantInt::get(IntptrTy, 0); in instrumentMaskedLoadOrStore()
1557 EVL = IB.CreateZExtOrTrunc(EVL, IntptrTy); in instrumentMaskedLoadOrStore()
1560 Value *EC = IB.CreateElementCount(IntptrTy, VTy->getElementCount()); in instrumentMaskedLoadOrStore()
1563 EVL = IB.CreateElementCount(IntptrTy, VTy->getElementCount()); in instrumentMaskedLoadOrStore()
1568 Stride = IB.CreateZExtOrTrunc(Stride, IntptrTy); in instrumentMaskedLoadOrStore()
1648 instrumentMaskedLoadOrStore(this, DL, IntptrTy, O.MaybeMask, O.MaybeEVL, in instrumentMop()
1693 IRB.CreateAnd(AddrLong, ConstantInt::get(IntptrTy, Granularity - 1)); in createSlowPathCmp()
1697 LastAccessedByte, ConstantInt::get(IntptrTy, TypeStoreSize / 8 - 1)); in createSlowPathCmp()
1778 Value *AddrLong = IRB.CreatePointerCast(Addr, IntptrTy); in instrumentAddress()
1846 Value *NumBits = IRB.CreateTypeSize(IntptrTy, TypeStoreSize); in instrumentUnusualSizeOrAlignment()
1847 Value *Size = IRB.CreateLShr(NumBits, ConstantInt::get(IntptrTy, 3)); in instrumentUnusualSizeOrAlignment()
1849 Value *AddrLong = IRB.CreatePointerCast(Addr, IntptrTy); in instrumentUnusualSizeOrAlignment()
1858 Value *SizeMinusOne = IRB.CreateSub(Size, ConstantInt::get(IntptrTy, 1)); in instrumentUnusualSizeOrAlignment()
1875 Value *ModuleNameAddr = ConstantExpr::getPointerCast(ModuleName, IntptrTy); in poisonOneInitializer()
2110 M.getOrInsertFunction(kAsanPoisonGlobalsName, IRB.getVoidTy(), IntptrTy); in initializeCallbacks()
2116 kAsanRegisterGlobalsName, IRB.getVoidTy(), IntptrTy, IntptrTy); in initializeCallbacks()
2118 kAsanUnregisterGlobalsName, IRB.getVoidTy(), IntptrTy, IntptrTy); in initializeCallbacks()
2123 kAsanRegisterImageGlobalsName, IRB.getVoidTy(), IntptrTy); in initializeCallbacks()
2125 kAsanUnregisterImageGlobalsName, IRB.getVoidTy(), IntptrTy); in initializeCallbacks()
2129 IntptrTy, IntptrTy, IntptrTy); in initializeCallbacks()
2132 IntptrTy, IntptrTy, IntptrTy); in initializeCallbacks()
2272 M, IntptrTy, false, GlobalVariable::CommonLinkage, in instrumentGlobalsELF()
2273 ConstantInt::get(IntptrTy, 0), kAsanGlobalsRegisteredFlagName); in instrumentGlobalsELF()
2278 M, IntptrTy, false, GlobalVariable::ExternalWeakLinkage, nullptr, in instrumentGlobalsELF()
2282 M, IntptrTy, false, GlobalVariable::ExternalWeakLinkage, nullptr, in instrumentGlobalsELF()
2289 {IRB.CreatePointerCast(RegisteredFlag, IntptrTy), in instrumentGlobalsELF()
2290 IRB.CreatePointerCast(StartELFMetadata, IntptrTy), in instrumentGlobalsELF()
2291 IRB.CreatePointerCast(StopELFMetadata, IntptrTy)}); in instrumentGlobalsELF()
2298 {IRB.CreatePointerCast(RegisteredFlag, IntptrTy), in instrumentGlobalsELF()
2299 IRB.CreatePointerCast(StartELFMetadata, IntptrTy), in instrumentGlobalsELF()
2300 IRB.CreatePointerCast(StopELFMetadata, IntptrTy)}); in instrumentGlobalsELF()
2312 StructType *LivenessTy = StructType::get(IntptrTy, IntptrTy); in InstrumentGlobalsMachO()
2325 ConstantExpr::getPointerCast(Metadata, IntptrTy)); in InstrumentGlobalsMachO()
2347 M, IntptrTy, false, GlobalVariable::CommonLinkage, in InstrumentGlobalsMachO()
2348 ConstantInt::get(IntptrTy, 0), kAsanGlobalsRegisteredFlagName); in InstrumentGlobalsMachO()
2353 {IRB.CreatePointerCast(RegisteredFlag, IntptrTy)}); in InstrumentGlobalsMachO()
2360 {IRB.CreatePointerCast(RegisteredFlag, IntptrTy)}); in InstrumentGlobalsMachO()
2383 {IRB.CreatePointerCast(AllGlobals, IntptrTy), in InstrumentGlobalsWithMetadataArray()
2384 ConstantInt::get(IntptrTy, N)}); in InstrumentGlobalsWithMetadataArray()
2391 {IRB.CreatePointerCast(AllGlobals, IntptrTy), in InstrumentGlobalsWithMetadataArray()
2392 ConstantInt::get(IntptrTy, N)}); in InstrumentGlobalsWithMetadataArray()
2433 StructType::get(IntptrTy, IntptrTy, IntptrTy, IntptrTy, IntptrTy, in instrumentGlobals()
2434 IntptrTy, IntptrTy, IntptrTy); in instrumentGlobals()
2525 ConstantExpr::getIntToPtr(ConstantInt::get(IntptrTy, -1), PtrTy); in instrumentGlobals()
2544 ConstantExpr::getPointerCast(InstrumentedGlobal, IntptrTy), in instrumentGlobals()
2545 ConstantInt::get(IntptrTy, SizeInBytes), in instrumentGlobals()
2546 ConstantInt::get(IntptrTy, SizeInBytes + RightRedzoneSize), in instrumentGlobals()
2547 ConstantExpr::getPointerCast(Name, IntptrTy), in instrumentGlobals()
2548 ConstantExpr::getPointerCast(ModuleName, IntptrTy), in instrumentGlobals()
2549 ConstantInt::get(IntptrTy, MD.IsDynInit), in instrumentGlobals()
2550 Constant::getNullValue(IntptrTy), in instrumentGlobals()
2551 ConstantExpr::getPointerCast(ODRIndicator, IntptrTy)); in instrumentGlobals()
2703 SmallVector<Type *, 3> Args2 = {IntptrTy, IntptrTy}; in initializeCallbacks()
2704 SmallVector<Type *, 2> Args1{1, IntptrTy}; in initializeCallbacks()
2745 PtrTy, PtrTy, PtrTy, IntptrTy); in initializeCallbacks()
2747 PtrTy, PtrTy, IntptrTy); in initializeCallbacks()
2750 PtrTy, PtrTy, IRB.getInt32Ty(), IntptrTy); in initializeCallbacks()
2756 M.getOrInsertFunction(kAsanPtrCmp, IRB.getVoidTy(), IntptrTy, IntptrTy); in initializeCallbacks()
2758 M.getOrInsertFunction(kAsanPtrSub, IRB.getVoidTy(), IntptrTy, IntptrTy); in initializeCallbacks()
2798 FunctionType::get(IntptrTy, {AsanShadowGlobal->getType()}, false), in maybeInsertDynamicShadowAtFunctionEntry()
2805 IRB.CreatePointerCast(AsanShadowGlobal, IntptrTy, ".asan.shadow"); in maybeInsertDynamicShadowAtFunctionEntry()
2809 kAsanShadowMemoryDynamicAddress, IntptrTy); in maybeInsertDynamicShadowAtFunctionEntry()
2810 LocalDynamicShadow = IRB.CreateLoad(IntptrTy, GlobalDynamicAddress); in maybeInsertDynamicShadowAtFunctionEntry()
3018 MallocNameTemplate + Suffix, IntptrTy, IntptrTy); in initializeCallbacks()
3021 IRB.getVoidTy(), IntptrTy, IntptrTy); in initializeCallbacks()
3026 kAsanPoisonStackMemoryName, IRB.getVoidTy(), IntptrTy, IntptrTy); in initializeCallbacks()
3028 kAsanUnpoisonStackMemoryName, IRB.getVoidTy(), IntptrTy, IntptrTy); in initializeCallbacks()
3037 M.getOrInsertFunction(Name.str(), IRB.getVoidTy(), IntptrTy, IntptrTy); in initializeCallbacks()
3041 kAsanAllocaPoison, IRB.getVoidTy(), IntptrTy, IntptrTy); in initializeCallbacks()
3043 kAsanAllocasUnpoison, IRB.getVoidTy(), IntptrTy, IntptrTy); in initializeCallbacks()
3089 Value *Ptr = IRB.CreateAdd(ShadowBase, ConstantInt::get(IntptrTy, i)); in copyToShadowInline()
3127 {IRB.CreateAdd(ShadowBase, ConstantInt::get(IntptrTy, i)), in copyToShadow()
3128 ConstantInt::get(IntptrTy, j - i)}); in copyToShadow()
3178 PHINode *PHI = IRB.CreatePHI(IntptrTy, 2); in createPHI()
3201 return IRB.CreatePointerCast(Alloca, IntptrTy); in createAllocaForLayout()
3207 DynamicAllocaLayout = IRB.CreateAlloca(IntptrTy, nullptr); in createDynamicAllocasInitStorage()
3208 IRB.CreateStore(Constant::getNullValue(IntptrTy), DynamicAllocaLayout); in createDynamicAllocasInitStorage()
3397 IRB.CreateAlloca(IntptrTy, nullptr, "asan_local_stack_base"); in processStaticAllocas()
3416 ConstantInt::get(IntptrTy, LocalStackSize)); in processStaticAllocas()
3419 ConstantInt::get(IntptrTy, 0)); in processStaticAllocas()
3427 ConstantInt::get(IntptrTy, LocalStackSize)); in processStaticAllocas()
3430 IRB.CreateICmpEQ(FakeStack, Constant::getNullValue(IntptrTy)); in processStaticAllocas()
3444 FakeStack = ConstantInt::get(IntptrTy, 0); in processStaticAllocas()
3466 IRB.CreateAdd(LocalStackBase, ConstantInt::get(IntptrTy, Desc.Offset)), in processStaticAllocas()
3474 IRB.CreateStore(ConstantInt::get(IntptrTy, kCurrentStackFrameMagic), in processStaticAllocas()
3479 ConstantInt::get(IntptrTy, ASan.LongSize / 8)), in processStaticAllocas()
3484 Value *Description = IRB.CreatePointerCast(StackDescriptionGlobal, IntptrTy); in processStaticAllocas()
3489 ConstantInt::get(IntptrTy, 2 * ASan.LongSize / 8)), in processStaticAllocas()
3491 IRB.CreateStore(IRB.CreatePointerCast(&F, IntptrTy), BasePlus2); in processStaticAllocas()
3525 IRBRet.CreateStore(ConstantInt::get(IntptrTy, kRetiredStackFrameMagic), in processStaticAllocas()
3540 IRBRet.CreateICmpNE(FakeStack, Constant::getNullValue(IntptrTy)); in processStaticAllocas()
3553 ConstantInt::get(IntptrTy, ClassSize - ASan.LongSize / 8)); in processStaticAllocas()
3555 IntptrTy, IRBPoison.CreateIntToPtr(SavedFlagPtrPtr, IntptrPtrTy)); in processStaticAllocas()
3563 {FakeStack, ConstantInt::get(IntptrTy, LocalStackSize)}); in processStaticAllocas()
3581 Value *AddrArg = IRB.CreatePointerCast(V, IntptrTy); in poisonAlloca()
3582 Value *SizeArg = ConstantInt::get(IntptrTy, Size); in poisonAlloca()
3602 Value *Zero = Constant::getNullValue(IntptrTy); in handleDynamicAllocaCall()
3603 Value *AllocaRzSize = ConstantInt::get(IntptrTy, kAllocaRzSize); in handleDynamicAllocaCall()
3604 Value *AllocaRzMask = ConstantInt::get(IntptrTy, AllocaRedzoneMask); in handleDynamicAllocaCall()
3613 IRB.CreateMul(IRB.CreateIntCast(AI->getArraySize(), IntptrTy, false), in handleDynamicAllocaCall()
3614 ConstantInt::get(IntptrTy, ElementSize)); in handleDynamicAllocaCall()
3630 ConstantInt::get(IntptrTy, Alignment.value() + kAllocaRzSize), in handleDynamicAllocaCall()
3641 IRB.CreateAdd(IRB.CreatePtrToInt(NewAlloca, IntptrTy), in handleDynamicAllocaCall()
3642 ConstantInt::get(IntptrTy, Alignment.value())); in handleDynamicAllocaCall()
3649 IRB.CreateStore(IRB.CreatePtrToInt(NewAlloca, IntptrTy), DynamicAllocaLayout); in handleDynamicAllocaCall()