Lines Matching refs:IntptrTy

625     IntptrTy = Type::getIntNTy(*C, LongSize);  in AddressSanitizer()
715 Type *IntptrTy; member
803 IntptrTy = Type::getIntNTy(*C, LongSize); in ModuleAddressSanitizer()
859 Type *IntptrTy; member in __anonf69996040211::ModuleAddressSanitizer
928 Type *IntptrTy; member
964 C(ASan.C), IntptrTy(ASan.IntptrTy), in FunctionStackPoisoner()
965 IntptrPtrTy(PointerType::get(IntptrTy, 0)), Mapping(ASan.Mapping), in FunctionStackPoisoner()
1032 Value *DynamicAreaPtr = IRB.CreatePtrToInt(SavedStack, IntptrTy); in unpoisonDynamicAllocasBeforeInst()
1040 {IntptrTy}); in unpoisonDynamicAllocasBeforeInst()
1044 DynamicAreaPtr = IRB.CreateAdd(IRB.CreatePtrToInt(SavedStack, IntptrTy), in unpoisonDynamicAllocasBeforeInst()
1050 {IRB.CreateLoad(IntptrTy, DynamicAllocaLayout), DynamicAreaPtr}); in unpoisonDynamicAllocasBeforeInst()
1113 !ConstantInt::isValueValidForType(IntptrTy, SizeValue)) in visitIntrinsicInst()
1357 ShadowBase = ConstantInt::get(IntptrTy, Mapping.Offset); in memToShadow()
1372 IRB.CreateIntCast(MI->getOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic()
1378 IRB.CreateIntCast(MI->getOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic()
1542 i = IRB.CreatePointerCast(i, IntptrTy); in instrumentPointerComparisonOrSubtraction()
1565 const DataLayout &DL, Type *IntptrTy, in instrumentMaskedLoadOrStore() argument
1575 auto Zero = ConstantInt::get(IntptrTy, 0); in instrumentMaskedLoadOrStore()
1597 IRB.CreateGEP(VTy, Addr, {Zero, ConstantInt::get(IntptrTy, Idx)}); in instrumentMaskedLoadOrStore()
1649 instrumentMaskedLoadOrStore(this, DL, IntptrTy, O.MaybeMask, O.getInsn(), in instrumentMop()
1693 IRB.CreateAnd(AddrLong, ConstantInt::get(IntptrTy, Granularity - 1)); in createSlowPathCmp()
1697 LastAccessedByte, ConstantInt::get(IntptrTy, TypeSize / 8 - 1)); in createSlowPathCmp()
1741 Value *AddrLong = IRB.CreatePointerCast(Addr, IntptrTy); in instrumentAddress()
1801 Value *Size = ConstantInt::get(IntptrTy, TypeSize / 8); in instrumentUnusualSizeOrAlignment()
1802 Value *AddrLong = IRB.CreatePointerCast(Addr, IntptrTy); in instrumentUnusualSizeOrAlignment()
1812 IRB.CreateAdd(AddrLong, ConstantInt::get(IntptrTy, TypeSize / 8 - 1)), in instrumentUnusualSizeOrAlignment()
1826 Value *ModuleNameAddr = ConstantExpr::getPointerCast(ModuleName, IntptrTy); in poisonOneInitializer()
2055 M.getOrInsertFunction(kAsanPoisonGlobalsName, IRB.getVoidTy(), IntptrTy); in initializeCallbacks()
2061 kAsanRegisterGlobalsName, IRB.getVoidTy(), IntptrTy, IntptrTy); in initializeCallbacks()
2063 kAsanUnregisterGlobalsName, IRB.getVoidTy(), IntptrTy, IntptrTy); in initializeCallbacks()
2068 kAsanRegisterImageGlobalsName, IRB.getVoidTy(), IntptrTy); in initializeCallbacks()
2070 kAsanUnregisterImageGlobalsName, IRB.getVoidTy(), IntptrTy); in initializeCallbacks()
2074 IntptrTy, IntptrTy, IntptrTy); in initializeCallbacks()
2077 IntptrTy, IntptrTy, IntptrTy); in initializeCallbacks()
2215 M, IntptrTy, false, GlobalVariable::CommonLinkage, in InstrumentGlobalsELF()
2216 ConstantInt::get(IntptrTy, 0), kAsanGlobalsRegisteredFlagName); in InstrumentGlobalsELF()
2221 M, IntptrTy, false, GlobalVariable::ExternalWeakLinkage, nullptr, in InstrumentGlobalsELF()
2225 M, IntptrTy, false, GlobalVariable::ExternalWeakLinkage, nullptr, in InstrumentGlobalsELF()
2231 {IRB.CreatePointerCast(RegisteredFlag, IntptrTy), in InstrumentGlobalsELF()
2232 IRB.CreatePointerCast(StartELFMetadata, IntptrTy), in InstrumentGlobalsELF()
2233 IRB.CreatePointerCast(StopELFMetadata, IntptrTy)}); in InstrumentGlobalsELF()
2240 {IRB.CreatePointerCast(RegisteredFlag, IntptrTy), in InstrumentGlobalsELF()
2241 IRB.CreatePointerCast(StartELFMetadata, IntptrTy), in InstrumentGlobalsELF()
2242 IRB.CreatePointerCast(StopELFMetadata, IntptrTy)}); in InstrumentGlobalsELF()
2254 StructType *LivenessTy = StructType::get(IntptrTy, IntptrTy); in InstrumentGlobalsMachO()
2267 ConstantExpr::getPointerCast(Metadata, IntptrTy)); in InstrumentGlobalsMachO()
2289 M, IntptrTy, false, GlobalVariable::CommonLinkage, in InstrumentGlobalsMachO()
2290 ConstantInt::get(IntptrTy, 0), kAsanGlobalsRegisteredFlagName); in InstrumentGlobalsMachO()
2294 {IRB.CreatePointerCast(RegisteredFlag, IntptrTy)}); in InstrumentGlobalsMachO()
2301 {IRB.CreatePointerCast(RegisteredFlag, IntptrTy)}); in InstrumentGlobalsMachO()
2323 {IRB.CreatePointerCast(AllGlobals, IntptrTy), in InstrumentGlobalsWithMetadataArray()
2324 ConstantInt::get(IntptrTy, N)}); in InstrumentGlobalsWithMetadataArray()
2331 {IRB.CreatePointerCast(AllGlobals, IntptrTy), in InstrumentGlobalsWithMetadataArray()
2332 ConstantInt::get(IntptrTy, N)}); in InstrumentGlobalsWithMetadataArray()
2380 StructType::get(IntptrTy, IntptrTy, IntptrTy, IntptrTy, IntptrTy, in InstrumentGlobals()
2381 IntptrTy, IntptrTy, IntptrTy); in InstrumentGlobals()
2454 SourceLoc = ConstantExpr::getPointerCast(SourceLocGlobal, IntptrTy); in InstrumentGlobals()
2456 SourceLoc = ConstantInt::get(IntptrTy, 0); in InstrumentGlobals()
2474 ODRIndicator = ConstantExpr::getIntToPtr(ConstantInt::get(IntptrTy, -1), in InstrumentGlobals()
2494 ConstantExpr::getPointerCast(InstrumentedGlobal, IntptrTy), in InstrumentGlobals()
2495 ConstantInt::get(IntptrTy, SizeInBytes), in InstrumentGlobals()
2496 ConstantInt::get(IntptrTy, SizeInBytes + RightRedzoneSize), in InstrumentGlobals()
2497 ConstantExpr::getPointerCast(Name, IntptrTy), in InstrumentGlobals()
2498 ConstantExpr::getPointerCast(ModuleName, IntptrTy), in InstrumentGlobals()
2499 ConstantInt::get(IntptrTy, MD.IsDynInit), SourceLoc, in InstrumentGlobals()
2500 ConstantExpr::getPointerCast(ODRIndicator, IntptrTy)); in InstrumentGlobals()
2633 SmallVector<Type *, 3> Args2 = {IntptrTy, IntptrTy}; in initializeCallbacks()
2634 SmallVector<Type *, 2> Args1{1, IntptrTy}; in initializeCallbacks()
2668 IRB.getInt8PtrTy(), IntptrTy); in initializeCallbacks()
2671 IRB.getInt8PtrTy(), IntptrTy); in initializeCallbacks()
2674 IRB.getInt32Ty(), IntptrTy); in initializeCallbacks()
2680 M.getOrInsertFunction(kAsanPtrCmp, IRB.getVoidTy(), IntptrTy, IntptrTy); in initializeCallbacks()
2682 M.getOrInsertFunction(kAsanPtrSub, IRB.getVoidTy(), IntptrTy, IntptrTy); in initializeCallbacks()
2722 FunctionType::get(IntptrTy, {AsanShadowGlobal->getType()}, false), in maybeInsertDynamicShadowAtFunctionEntry()
2729 IRB.CreatePointerCast(AsanShadowGlobal, IntptrTy, ".asan.shadow"); in maybeInsertDynamicShadowAtFunctionEntry()
2733 kAsanShadowMemoryDynamicAddress, IntptrTy); in maybeInsertDynamicShadowAtFunctionEntry()
2734 LocalDynamicShadow = IRB.CreateLoad(IntptrTy, GlobalDynamicAddress); in maybeInsertDynamicShadowAtFunctionEntry()
2935 MallocNameTemplate + Suffix, IntptrTy, IntptrTy); in initializeCallbacks()
2938 IRB.getVoidTy(), IntptrTy, IntptrTy); in initializeCallbacks()
2943 kAsanPoisonStackMemoryName, IRB.getVoidTy(), IntptrTy, IntptrTy); in initializeCallbacks()
2945 kAsanUnpoisonStackMemoryName, IRB.getVoidTy(), IntptrTy, IntptrTy); in initializeCallbacks()
2953 M.getOrInsertFunction(Name.str(), IRB.getVoidTy(), IntptrTy, IntptrTy); in initializeCallbacks()
2957 kAsanAllocaPoison, IRB.getVoidTy(), IntptrTy, IntptrTy); in initializeCallbacks()
2959 kAsanAllocasUnpoison, IRB.getVoidTy(), IntptrTy, IntptrTy); in initializeCallbacks()
3005 Value *Ptr = IRB.CreateAdd(ShadowBase, ConstantInt::get(IntptrTy, i)); in copyToShadowInline()
3043 {IRB.CreateAdd(ShadowBase, ConstantInt::get(IntptrTy, i)), in copyToShadow()
3044 ConstantInt::get(IntptrTy, j - i)}); in copyToShadow()
3094 PHINode *PHI = IRB.CreatePHI(IntptrTy, 2); in createPHI()
3117 return IRB.CreatePointerCast(Alloca, IntptrTy); in createAllocaForLayout()
3123 DynamicAllocaLayout = IRB.CreateAlloca(IntptrTy, nullptr); in createDynamicAllocasInitStorage()
3124 IRB.CreateStore(Constant::getNullValue(IntptrTy), DynamicAllocaLayout); in createDynamicAllocasInitStorage()
3313 IRB.CreateAlloca(IntptrTy, nullptr, "asan_local_stack_base"); in processStaticAllocas()
3332 ConstantInt::get(IntptrTy, LocalStackSize)); in processStaticAllocas()
3335 ConstantInt::get(IntptrTy, 0)); in processStaticAllocas()
3343 ConstantInt::get(IntptrTy, LocalStackSize)); in processStaticAllocas()
3346 IRB.CreateICmpEQ(FakeStack, Constant::getNullValue(IntptrTy)); in processStaticAllocas()
3360 FakeStack = ConstantInt::get(IntptrTy, 0); in processStaticAllocas()
3382 IRB.CreateAdd(LocalStackBase, ConstantInt::get(IntptrTy, Desc.Offset)), in processStaticAllocas()
3390 IRB.CreateStore(ConstantInt::get(IntptrTy, kCurrentStackFrameMagic), in processStaticAllocas()
3395 ConstantInt::get(IntptrTy, ASan.LongSize / 8)), in processStaticAllocas()
3400 Value *Description = IRB.CreatePointerCast(StackDescriptionGlobal, IntptrTy); in processStaticAllocas()
3405 ConstantInt::get(IntptrTy, 2 * ASan.LongSize / 8)), in processStaticAllocas()
3407 IRB.CreateStore(IRB.CreatePointerCast(&F, IntptrTy), BasePlus2); in processStaticAllocas()
3441 IRBRet.CreateStore(ConstantInt::get(IntptrTy, kRetiredStackFrameMagic), in processStaticAllocas()
3456 IRBRet.CreateICmpNE(FakeStack, Constant::getNullValue(IntptrTy)); in processStaticAllocas()
3469 ConstantInt::get(IntptrTy, ClassSize - ASan.LongSize / 8)); in processStaticAllocas()
3471 IntptrTy, IRBPoison.CreateIntToPtr(SavedFlagPtrPtr, IntptrPtrTy)); in processStaticAllocas()
3479 {FakeStack, ConstantInt::get(IntptrTy, LocalStackSize)}); in processStaticAllocas()
3496 Value *AddrArg = IRB.CreatePointerCast(V, IntptrTy); in poisonAlloca()
3497 Value *SizeArg = ConstantInt::get(IntptrTy, Size); in poisonAlloca()
3517 Value *Zero = Constant::getNullValue(IntptrTy); in handleDynamicAllocaCall()
3518 Value *AllocaRzSize = ConstantInt::get(IntptrTy, kAllocaRzSize); in handleDynamicAllocaCall()
3519 Value *AllocaRzMask = ConstantInt::get(IntptrTy, AllocaRedzoneMask); in handleDynamicAllocaCall()
3528 IRB.CreateMul(IRB.CreateIntCast(AI->getArraySize(), IntptrTy, false), in handleDynamicAllocaCall()
3529 ConstantInt::get(IntptrTy, ElementSize)); in handleDynamicAllocaCall()
3545 ConstantInt::get(IntptrTy, Alignment + kAllocaRzSize), PartialPadding); in handleDynamicAllocaCall()
3554 Value *NewAddress = IRB.CreateAdd(IRB.CreatePtrToInt(NewAlloca, IntptrTy), in handleDynamicAllocaCall()
3555 ConstantInt::get(IntptrTy, Alignment)); in handleDynamicAllocaCall()
3562 IRB.CreateStore(IRB.CreatePtrToInt(NewAlloca, IntptrTy), DynamicAllocaLayout); in handleDynamicAllocaCall()