Lines Matching refs:IntptrTy
648 IntptrTy = Type::getIntNTy(*C, LongSize); in AddressSanitizer()
740 Type *IntptrTy; member
789 IntptrTy = Type::getIntNTy(*C, LongSize); in ModuleAddressSanitizer()
844 Type *IntptrTy; member in __anon187e16000211::ModuleAddressSanitizer
875 Type *IntptrTy; member
911 C(ASan.C), IntptrTy(ASan.IntptrTy), in FunctionStackPoisoner()
912 IntptrPtrTy(PointerType::get(IntptrTy, 0)), Mapping(ASan.Mapping), in FunctionStackPoisoner()
979 Value *DynamicAreaPtr = IRB.CreatePtrToInt(SavedStack, IntptrTy); in unpoisonDynamicAllocasBeforeInst()
987 {IntptrTy}); in unpoisonDynamicAllocasBeforeInst()
991 DynamicAreaPtr = IRB.CreateAdd(IRB.CreatePtrToInt(SavedStack, IntptrTy), in unpoisonDynamicAllocasBeforeInst()
997 {IRB.CreateLoad(IntptrTy, DynamicAllocaLayout), DynamicAreaPtr}); in unpoisonDynamicAllocasBeforeInst()
1060 !ConstantInt::isValueValidForType(IntptrTy, SizeValue)) in visitIntrinsicInst()
1191 ShadowBase = ConstantInt::get(IntptrTy, Mapping.Offset); in memToShadow()
1206 IRB.CreateIntCast(MI->getOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic()
1212 IRB.CreateIntCast(MI->getOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic()
1380 i = IRB.CreatePointerCast(i, IntptrTy); in instrumentPointerComparisonOrSubtraction()
1403 const DataLayout &DL, Type *IntptrTy, in instrumentMaskedLoadOrStore() argument
1412 auto Zero = ConstantInt::get(IntptrTy, 0); in instrumentMaskedLoadOrStore()
1434 IRB.CreateGEP(VTy, Addr, {Zero, ConstantInt::get(IntptrTy, Idx)}); in instrumentMaskedLoadOrStore()
1486 instrumentMaskedLoadOrStore(this, DL, IntptrTy, O.MaybeMask, O.getInsn(), in instrumentMop()
1530 IRB.CreateAnd(AddrLong, ConstantInt::get(IntptrTy, Granularity - 1)); in createSlowPathCmp()
1534 LastAccessedByte, ConstantInt::get(IntptrTy, TypeSize / 8 - 1)); in createSlowPathCmp()
1591 Value *AddrLong = IRB.CreatePointerCast(Addr, IntptrTy); in instrumentAddress()
1649 Value *Size = ConstantInt::get(IntptrTy, TypeSize / 8); in instrumentUnusualSizeOrAlignment()
1650 Value *AddrLong = IRB.CreatePointerCast(Addr, IntptrTy); in instrumentUnusualSizeOrAlignment()
1660 IRB.CreateAdd(AddrLong, ConstantInt::get(IntptrTy, TypeSize / 8 - 1)), in instrumentUnusualSizeOrAlignment()
1674 Value *ModuleNameAddr = ConstantExpr::getPointerCast(ModuleName, IntptrTy); in poisonOneInitializer()
1907 M.getOrInsertFunction(kAsanPoisonGlobalsName, IRB.getVoidTy(), IntptrTy); 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()
1926 IntptrTy, IntptrTy, IntptrTy); in initializeCallbacks()
1929 IntptrTy, IntptrTy, IntptrTy); in initializeCallbacks()
2066 M, IntptrTy, false, GlobalVariable::CommonLinkage, in InstrumentGlobalsELF()
2067 ConstantInt::get(IntptrTy, 0), kAsanGlobalsRegisteredFlagName); in InstrumentGlobalsELF()
2072 M, IntptrTy, false, GlobalVariable::ExternalWeakLinkage, nullptr, in InstrumentGlobalsELF()
2076 M, IntptrTy, false, GlobalVariable::ExternalWeakLinkage, nullptr, 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()
2105 StructType *LivenessTy = StructType::get(IntptrTy, IntptrTy); in InstrumentGlobalsMachO()
2118 ConstantExpr::getPointerCast(Metadata, IntptrTy)); in InstrumentGlobalsMachO()
2140 M, IntptrTy, false, GlobalVariable::CommonLinkage, in InstrumentGlobalsMachO()
2141 ConstantInt::get(IntptrTy, 0), kAsanGlobalsRegisteredFlagName); in InstrumentGlobalsMachO()
2145 {IRB.CreatePointerCast(RegisteredFlag, IntptrTy)}); in InstrumentGlobalsMachO()
2152 {IRB.CreatePointerCast(RegisteredFlag, IntptrTy)}); in InstrumentGlobalsMachO()
2174 {IRB.CreatePointerCast(AllGlobals, IntptrTy), in InstrumentGlobalsWithMetadataArray()
2175 ConstantInt::get(IntptrTy, N)}); in InstrumentGlobalsWithMetadataArray()
2182 {IRB.CreatePointerCast(AllGlobals, IntptrTy), in InstrumentGlobalsWithMetadataArray()
2183 ConstantInt::get(IntptrTy, N)}); in InstrumentGlobalsWithMetadataArray()
2231 StructType::get(IntptrTy, IntptrTy, IntptrTy, IntptrTy, IntptrTy, in InstrumentGlobals()
2232 IntptrTy, IntptrTy, IntptrTy); in InstrumentGlobals()
2318 ODRIndicator = ConstantExpr::getIntToPtr(ConstantInt::get(IntptrTy, -1), in InstrumentGlobals()
2338 ConstantExpr::getPointerCast(InstrumentedGlobal, IntptrTy), in InstrumentGlobals()
2339 ConstantInt::get(IntptrTy, SizeInBytes), in InstrumentGlobals()
2340 ConstantInt::get(IntptrTy, SizeInBytes + RightRedzoneSize), in InstrumentGlobals()
2341 ConstantExpr::getPointerCast(Name, IntptrTy), in InstrumentGlobals()
2342 ConstantExpr::getPointerCast(ModuleName, IntptrTy), in InstrumentGlobals()
2343 ConstantInt::get(IntptrTy, MD.IsDynInit), in InstrumentGlobals()
2344 Constant::getNullValue(IntptrTy), in InstrumentGlobals()
2345 ConstantExpr::getPointerCast(ODRIndicator, IntptrTy)); in InstrumentGlobals()
2479 SmallVector<Type *, 3> Args2 = {IntptrTy, IntptrTy}; in initializeCallbacks()
2480 SmallVector<Type *, 2> Args1{1, IntptrTy}; in initializeCallbacks()
2516 IRB.getInt8PtrTy(), IntptrTy); in initializeCallbacks()
2519 IRB.getInt8PtrTy(), IntptrTy); in initializeCallbacks()
2522 IRB.getInt32Ty(), IntptrTy); in initializeCallbacks()
2528 M.getOrInsertFunction(kAsanPtrCmp, IRB.getVoidTy(), IntptrTy, IntptrTy); in initializeCallbacks()
2530 M.getOrInsertFunction(kAsanPtrSub, IRB.getVoidTy(), IntptrTy, IntptrTy); in initializeCallbacks()
2570 FunctionType::get(IntptrTy, {AsanShadowGlobal->getType()}, false), in maybeInsertDynamicShadowAtFunctionEntry()
2577 IRB.CreatePointerCast(AsanShadowGlobal, IntptrTy, ".asan.shadow"); in maybeInsertDynamicShadowAtFunctionEntry()
2581 kAsanShadowMemoryDynamicAddress, IntptrTy); in maybeInsertDynamicShadowAtFunctionEntry()
2582 LocalDynamicShadow = IRB.CreateLoad(IntptrTy, GlobalDynamicAddress); in maybeInsertDynamicShadowAtFunctionEntry()
2790 MallocNameTemplate + Suffix, IntptrTy, IntptrTy); in initializeCallbacks()
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()
2860 Value *Ptr = IRB.CreateAdd(ShadowBase, ConstantInt::get(IntptrTy, i)); in copyToShadowInline()
2898 {IRB.CreateAdd(ShadowBase, ConstantInt::get(IntptrTy, i)), in copyToShadow()
2899 ConstantInt::get(IntptrTy, j - i)}); in copyToShadow()
2949 PHINode *PHI = IRB.CreatePHI(IntptrTy, 2); in createPHI()
2972 return IRB.CreatePointerCast(Alloca, IntptrTy); in createAllocaForLayout()
2978 DynamicAllocaLayout = IRB.CreateAlloca(IntptrTy, nullptr); in createDynamicAllocasInitStorage()
2979 IRB.CreateStore(Constant::getNullValue(IntptrTy), DynamicAllocaLayout); in createDynamicAllocasInitStorage()
3168 IRB.CreateAlloca(IntptrTy, nullptr, "asan_local_stack_base"); in processStaticAllocas()
3187 ConstantInt::get(IntptrTy, LocalStackSize)); in processStaticAllocas()
3190 ConstantInt::get(IntptrTy, 0)); in processStaticAllocas()
3198 ConstantInt::get(IntptrTy, LocalStackSize)); in processStaticAllocas()
3201 IRB.CreateICmpEQ(FakeStack, Constant::getNullValue(IntptrTy)); in processStaticAllocas()
3215 FakeStack = ConstantInt::get(IntptrTy, 0); in processStaticAllocas()
3237 IRB.CreateAdd(LocalStackBase, ConstantInt::get(IntptrTy, Desc.Offset)), in processStaticAllocas()
3245 IRB.CreateStore(ConstantInt::get(IntptrTy, kCurrentStackFrameMagic), in processStaticAllocas()
3250 ConstantInt::get(IntptrTy, ASan.LongSize / 8)), in processStaticAllocas()
3255 Value *Description = IRB.CreatePointerCast(StackDescriptionGlobal, IntptrTy); in processStaticAllocas()
3260 ConstantInt::get(IntptrTy, 2 * ASan.LongSize / 8)), in processStaticAllocas()
3262 IRB.CreateStore(IRB.CreatePointerCast(&F, IntptrTy), BasePlus2); in processStaticAllocas()
3296 IRBRet.CreateStore(ConstantInt::get(IntptrTy, kRetiredStackFrameMagic), in processStaticAllocas()
3311 IRBRet.CreateICmpNE(FakeStack, Constant::getNullValue(IntptrTy)); in processStaticAllocas()
3324 ConstantInt::get(IntptrTy, ClassSize - ASan.LongSize / 8)); in processStaticAllocas()
3326 IntptrTy, IRBPoison.CreateIntToPtr(SavedFlagPtrPtr, IntptrPtrTy)); in processStaticAllocas()
3334 {FakeStack, ConstantInt::get(IntptrTy, LocalStackSize)}); in processStaticAllocas()
3351 Value *AddrArg = IRB.CreatePointerCast(V, IntptrTy); in poisonAlloca()
3352 Value *SizeArg = ConstantInt::get(IntptrTy, Size); in poisonAlloca()
3372 Value *Zero = Constant::getNullValue(IntptrTy); in handleDynamicAllocaCall()
3373 Value *AllocaRzSize = ConstantInt::get(IntptrTy, kAllocaRzSize); in handleDynamicAllocaCall()
3374 Value *AllocaRzMask = ConstantInt::get(IntptrTy, AllocaRedzoneMask); in handleDynamicAllocaCall()
3383 IRB.CreateMul(IRB.CreateIntCast(AI->getArraySize(), IntptrTy, false), in handleDynamicAllocaCall()
3384 ConstantInt::get(IntptrTy, ElementSize)); in handleDynamicAllocaCall()
3400 ConstantInt::get(IntptrTy, Alignment.value() + kAllocaRzSize), in handleDynamicAllocaCall()
3411 IRB.CreateAdd(IRB.CreatePtrToInt(NewAlloca, IntptrTy), in handleDynamicAllocaCall()
3412 ConstantInt::get(IntptrTy, Alignment.value())); in handleDynamicAllocaCall()
3419 IRB.CreateStore(IRB.CreatePtrToInt(NewAlloca, IntptrTy), DynamicAllocaLayout); in handleDynamicAllocaCall()