Lines Matching refs:IntptrTy
716 Type *IntptrTy; member
809 Type *IntptrTy; member in __anon17c98fd50211::AddressSanitizerModule
840 Type *IntptrTy; member
883 IntptrTy(ASan.IntptrTy), in FunctionStackPoisoner()
884 IntptrPtrTy(PointerType::get(IntptrTy, 0)), in FunctionStackPoisoner()
937 Value *DynamicAreaPtr = IRB.CreatePtrToInt(SavedStack, IntptrTy); in unpoisonDynamicAllocasBeforeInst()
945 {IntptrTy}); in unpoisonDynamicAllocasBeforeInst()
949 DynamicAreaPtr = IRB.CreateAdd(IRB.CreatePtrToInt(SavedStack, IntptrTy), in unpoisonDynamicAllocasBeforeInst()
1018 !ConstantInt::isValueValidForType(IntptrTy, SizeValue)) in visitIntrinsicInst()
1164 ShadowBase = ConstantInt::get(IntptrTy, Mapping.Offset); in memToShadow()
1179 IRB.CreateIntCast(MI->getOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic()
1185 IRB.CreateIntCast(MI->getOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic()
1341 i = IRB.CreatePointerCast(i, IntptrTy); in instrumentPointerComparisonOrSubtraction()
1364 const DataLayout &DL, Type *IntptrTy, in instrumentMaskedLoadOrStore() argument
1373 auto Zero = ConstantInt::get(IntptrTy, 0); in instrumentMaskedLoadOrStore()
1395 IRB.CreateGEP(Addr, {Zero, ConstantInt::get(IntptrTy, Idx)}); in instrumentMaskedLoadOrStore()
1453 instrumentMaskedLoadOrStore(this, DL, IntptrTy, MaybeMask, I, Addr, in instrumentMop()
1499 IRB.CreateAnd(AddrLong, ConstantInt::get(IntptrTy, Granularity - 1)); in createSlowPathCmp()
1503 LastAccessedByte, ConstantInt::get(IntptrTy, TypeSize / 8 - 1)); in createSlowPathCmp()
1519 Value *AddrLong = IRB.CreatePointerCast(Addr, IntptrTy); in instrumentAddress()
1540 IRB.CreateICmpEQ(Tag, ConstantInt::get(IntptrTy, kMyriadDDRTag)); in instrumentAddress()
1597 Value *Size = ConstantInt::get(IntptrTy, TypeSize / 8); in instrumentUnusualSizeOrAlignment()
1598 Value *AddrLong = IRB.CreatePointerCast(Addr, IntptrTy); in instrumentUnusualSizeOrAlignment()
1608 IRB.CreateAdd(AddrLong, ConstantInt::get(IntptrTy, TypeSize / 8 - 1)), in instrumentUnusualSizeOrAlignment()
1622 Value *ModuleNameAddr = ConstantExpr::getPointerCast(ModuleName, IntptrTy); in poisonOneInitializer()
1800 kAsanPoisonGlobalsName, IRB.getVoidTy(), IntptrTy)); in initializeCallbacks()
1808 kAsanRegisterGlobalsName, IRB.getVoidTy(), IntptrTy, IntptrTy)); in initializeCallbacks()
1812 IntptrTy, IntptrTy)); in initializeCallbacks()
1819 kAsanRegisterImageGlobalsName, IRB.getVoidTy(), IntptrTy)); in initializeCallbacks()
1824 kAsanUnregisterImageGlobalsName, IRB.getVoidTy(), IntptrTy)); in initializeCallbacks()
1829 IntptrTy, IntptrTy, IntptrTy)); in initializeCallbacks()
1834 IntptrTy, IntptrTy, IntptrTy)); in initializeCallbacks()
1953 M, IntptrTy, false, GlobalVariable::CommonLinkage, in InstrumentGlobalsELF()
1954 ConstantInt::get(IntptrTy, 0), kAsanGlobalsRegisteredFlagName); in InstrumentGlobalsELF()
1959 M, IntptrTy, false, GlobalVariable::ExternalWeakLinkage, nullptr, in InstrumentGlobalsELF()
1963 M, IntptrTy, false, GlobalVariable::ExternalWeakLinkage, nullptr, in InstrumentGlobalsELF()
1969 {IRB.CreatePointerCast(RegisteredFlag, IntptrTy), in InstrumentGlobalsELF()
1970 IRB.CreatePointerCast(StartELFMetadata, IntptrTy), in InstrumentGlobalsELF()
1971 IRB.CreatePointerCast(StopELFMetadata, IntptrTy)}); in InstrumentGlobalsELF()
1977 {IRB.CreatePointerCast(RegisteredFlag, IntptrTy), in InstrumentGlobalsELF()
1978 IRB.CreatePointerCast(StartELFMetadata, IntptrTy), in InstrumentGlobalsELF()
1979 IRB.CreatePointerCast(StopELFMetadata, IntptrTy)}); in InstrumentGlobalsELF()
1990 StructType *LivenessTy = StructType::get(IntptrTy, IntptrTy); in InstrumentGlobalsMachO()
2003 ConstantExpr::getPointerCast(Metadata, IntptrTy)); in InstrumentGlobalsMachO()
2025 M, IntptrTy, false, GlobalVariable::CommonLinkage, in InstrumentGlobalsMachO()
2026 ConstantInt::get(IntptrTy, 0), kAsanGlobalsRegisteredFlagName); in InstrumentGlobalsMachO()
2030 {IRB.CreatePointerCast(RegisteredFlag, IntptrTy)}); in InstrumentGlobalsMachO()
2036 {IRB.CreatePointerCast(RegisteredFlag, IntptrTy)}); in InstrumentGlobalsMachO()
2057 {IRB.CreatePointerCast(AllGlobals, IntptrTy), in InstrumentGlobalsWithMetadataArray()
2058 ConstantInt::get(IntptrTy, N)}); in InstrumentGlobalsWithMetadataArray()
2064 {IRB.CreatePointerCast(AllGlobals, IntptrTy), in InstrumentGlobalsWithMetadataArray()
2065 ConstantInt::get(IntptrTy, N)}); in InstrumentGlobalsWithMetadataArray()
2102 StructType::get(IntptrTy, IntptrTy, IntptrTy, IntptrTy, IntptrTy, in InstrumentGlobals()
2103 IntptrTy, IntptrTy, IntptrTy); in InstrumentGlobals()
2186 SourceLoc = ConstantExpr::getPointerCast(SourceLocGlobal, IntptrTy); in InstrumentGlobals()
2188 SourceLoc = ConstantInt::get(IntptrTy, 0); in InstrumentGlobals()
2206 ODRIndicator = ConstantExpr::getIntToPtr(ConstantInt::get(IntptrTy, -1), in InstrumentGlobals()
2226 ConstantExpr::getPointerCast(InstrumentedGlobal, IntptrTy), in InstrumentGlobals()
2227 ConstantInt::get(IntptrTy, SizeInBytes), in InstrumentGlobals()
2228 ConstantInt::get(IntptrTy, SizeInBytes + RightRedzoneSize), in InstrumentGlobals()
2229 ConstantExpr::getPointerCast(Name, IntptrTy), in InstrumentGlobals()
2230 ConstantExpr::getPointerCast(ModuleName, IntptrTy), in InstrumentGlobals()
2231 ConstantInt::get(IntptrTy, MD.IsDynInit), SourceLoc, in InstrumentGlobals()
2232 ConstantExpr::getPointerCast(ODRIndicator, IntptrTy)); in InstrumentGlobals()
2287 IntptrTy = Type::getIntNTy(*C, LongSize); in runOnModule()
2342 SmallVector<Type *, 3> Args2 = {IntptrTy, IntptrTy}; in initializeCallbacks()
2343 SmallVector<Type *, 2> Args1{1, IntptrTy}; in initializeCallbacks()
2379 IRB.getInt8PtrTy(), IRB.getInt8PtrTy(), IntptrTy)); in initializeCallbacks()
2382 IRB.getInt8PtrTy(), IRB.getInt8PtrTy(), IntptrTy)); in initializeCallbacks()
2385 IRB.getInt8PtrTy(), IRB.getInt32Ty(), IntptrTy)); in initializeCallbacks()
2391 kAsanPtrCmp, IRB.getVoidTy(), IntptrTy, IntptrTy)); in initializeCallbacks()
2393 kAsanPtrSub, IRB.getVoidTy(), IntptrTy, IntptrTy)); in initializeCallbacks()
2410 IntptrTy = Type::getIntNTy(*C, LongSize); in doInitialization()
2451 FunctionType::get(IntptrTy, {AsanShadowGlobal->getType()}, false), in maybeInsertDynamicShadowAtFunctionEntry()
2458 IRB.CreatePointerCast(AsanShadowGlobal, IntptrTy, ".asan.shadow"); in maybeInsertDynamicShadowAtFunctionEntry()
2462 kAsanShadowMemoryDynamicAddress, IntptrTy); in maybeInsertDynamicShadowAtFunctionEntry()
2647 M.getOrInsertFunction(kAsanStackMallocNameTemplate + Suffix, IntptrTy, in initializeCallbacks()
2648 IntptrTy)); in initializeCallbacks()
2651 IRB.getVoidTy(), IntptrTy, IntptrTy)); in initializeCallbacks()
2656 IntptrTy, IntptrTy)); in initializeCallbacks()
2659 IntptrTy, IntptrTy)); in initializeCallbacks()
2668 Name.str(), IRB.getVoidTy(), IntptrTy, IntptrTy)); in initializeCallbacks()
2672 kAsanAllocaPoison, IRB.getVoidTy(), IntptrTy, IntptrTy)); in initializeCallbacks()
2675 kAsanAllocasUnpoison, IRB.getVoidTy(), IntptrTy, IntptrTy)); in initializeCallbacks()
2721 Value *Ptr = IRB.CreateAdd(ShadowBase, ConstantInt::get(IntptrTy, i)); in copyToShadowInline()
2758 {IRB.CreateAdd(ShadowBase, ConstantInt::get(IntptrTy, i)), in copyToShadow()
2759 ConstantInt::get(IntptrTy, j - i)}); in copyToShadow()
2809 PHINode *PHI = IRB.CreatePHI(IntptrTy, 2); in createPHI()
2832 return IRB.CreatePointerCast(Alloca, IntptrTy); in createAllocaForLayout()
2838 DynamicAllocaLayout = IRB.CreateAlloca(IntptrTy, nullptr); in createDynamicAllocasInitStorage()
2839 IRB.CreateStore(Constant::getNullValue(IntptrTy), DynamicAllocaLayout); in createDynamicAllocasInitStorage()
2965 IRB.CreateAlloca(IntptrTy, nullptr, "asan_local_stack_base"); in processStaticAllocas()
2983 ConstantInt::get(IntptrTy, LocalStackSize)); in processStaticAllocas()
2987 ConstantInt::get(IntptrTy, 0)); in processStaticAllocas()
2990 IRB.CreateICmpEQ(FakeStack, Constant::getNullValue(IntptrTy)); in processStaticAllocas()
3006 FakeStack = ConstantInt::get(IntptrTy, 0); in processStaticAllocas()
3019 IRB.CreateAdd(LocalStackBase, ConstantInt::get(IntptrTy, Desc.Offset)), in processStaticAllocas()
3027 IRB.CreateStore(ConstantInt::get(IntptrTy, kCurrentStackFrameMagic), in processStaticAllocas()
3032 ConstantInt::get(IntptrTy, ASan.LongSize / 8)), in processStaticAllocas()
3037 Value *Description = IRB.CreatePointerCast(StackDescriptionGlobal, IntptrTy); in processStaticAllocas()
3042 ConstantInt::get(IntptrTy, 2 * ASan.LongSize / 8)), in processStaticAllocas()
3044 IRB.CreateStore(IRB.CreatePointerCast(&F, IntptrTy), BasePlus2); in processStaticAllocas()
3078 IRBRet.CreateStore(ConstantInt::get(IntptrTy, kRetiredStackFrameMagic), in processStaticAllocas()
3093 IRBRet.CreateICmpNE(FakeStack, Constant::getNullValue(IntptrTy)); in processStaticAllocas()
3106 ConstantInt::get(IntptrTy, ClassSize - ASan.LongSize / 8)); in processStaticAllocas()
3116 {FakeStack, ConstantInt::get(IntptrTy, LocalStackSize)}); in processStaticAllocas()
3133 Value *AddrArg = IRB.CreatePointerCast(V, IntptrTy); in poisonAlloca()
3134 Value *SizeArg = ConstantInt::get(IntptrTy, Size); in poisonAlloca()
3189 Value *Zero = Constant::getNullValue(IntptrTy); in handleDynamicAllocaCall()
3190 Value *AllocaRzSize = ConstantInt::get(IntptrTy, kAllocaRzSize); in handleDynamicAllocaCall()
3191 Value *AllocaRzMask = ConstantInt::get(IntptrTy, AllocaRedzoneMask); in handleDynamicAllocaCall()
3200 IRB.CreateMul(IRB.CreateIntCast(AI->getArraySize(), IntptrTy, false), in handleDynamicAllocaCall()
3201 ConstantInt::get(IntptrTy, ElementSize)); in handleDynamicAllocaCall()
3217 ConstantInt::get(IntptrTy, Align + kAllocaRzSize), PartialPadding); in handleDynamicAllocaCall()
3226 Value *NewAddress = IRB.CreateAdd(IRB.CreatePtrToInt(NewAlloca, IntptrTy), in handleDynamicAllocaCall()
3227 ConstantInt::get(IntptrTy, Align)); in handleDynamicAllocaCall()
3234 IRB.CreateStore(IRB.CreatePtrToInt(NewAlloca, IntptrTy), DynamicAllocaLayout); in handleDynamicAllocaCall()