Lines Matching refs:IntptrTy
486 Type *IntptrTy; member
531 Type *IntptrTy; member in __anone3a95e720111::AddressSanitizerModule
555 Type *IntptrTy; member
596 IntptrTy(ASan.IntptrTy), in FunctionStackPoisoner()
597 IntptrPtrTy(PointerType::get(IntptrTy, 0)), in FunctionStackPoisoner()
633 Value *DynamicAreaPtr = IRB.CreatePtrToInt(SavedStack, IntptrTy); in unpoisonDynamicAllocasBeforeInst()
641 {IntptrTy}); in unpoisonDynamicAllocasBeforeInst()
645 DynamicAreaPtr = IRB.CreateAdd(IRB.CreatePtrToInt(SavedStack, IntptrTy), in unpoisonDynamicAllocasBeforeInst()
706 !ConstantInt::isValueValidForType(IntptrTy, SizeValue)) in visitIntrinsicInst()
827 return IRB.CreateOr(Shadow, ConstantInt::get(IntptrTy, Mapping.Offset)); in memToShadow()
829 return IRB.CreateAdd(Shadow, ConstantInt::get(IntptrTy, Mapping.Offset)); in memToShadow()
840 IRB.CreateIntCast(MI->getOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic()
846 IRB.CreateIntCast(MI->getOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic()
953 Param[i] = IRB.CreatePointerCast(Param[i], IntptrTy); in instrumentPointerComparisonOrSubtraction()
1054 IRB.CreateAnd(AddrLong, ConstantInt::get(IntptrTy, Granularity - 1)); in createSlowPathCmp()
1058 LastAccessedByte, ConstantInt::get(IntptrTy, TypeSize / 8 - 1)); in createSlowPathCmp()
1072 Value *AddrLong = IRB.CreatePointerCast(Addr, IntptrTy); in instrumentAddress()
1132 Value *Size = ConstantInt::get(IntptrTy, TypeSize / 8); in instrumentUnusualSizeOrAlignment()
1133 Value *AddrLong = IRB.CreatePointerCast(Addr, IntptrTy); in instrumentUnusualSizeOrAlignment()
1143 IRB.CreateAdd(AddrLong, ConstantInt::get(IntptrTy, TypeSize / 8 - 1)), in instrumentUnusualSizeOrAlignment()
1157 Value *ModuleNameAddr = ConstantExpr::getPointerCast(ModuleName, IntptrTy); in poisonOneInitializer()
1278 kAsanPoisonGlobalsName, IRB.getVoidTy(), IntptrTy, nullptr)); in initializeCallbacks()
1285 kAsanRegisterGlobalsName, IRB.getVoidTy(), IntptrTy, IntptrTy, nullptr)); in initializeCallbacks()
1289 IntptrTy, IntptrTy, nullptr)); in initializeCallbacks()
1318 StructType::get(IntptrTy, IntptrTy, IntptrTy, IntptrTy, IntptrTy, in InstrumentGlobals()
1319 IntptrTy, IntptrTy, nullptr); in InstrumentGlobals()
1382 SourceLoc = ConstantExpr::getPointerCast(SourceLocGlobal, IntptrTy); in InstrumentGlobals()
1384 SourceLoc = ConstantInt::get(IntptrTy, 0); in InstrumentGlobals()
1388 GlobalStructTy, ConstantExpr::getPointerCast(NewGlobal, IntptrTy), in InstrumentGlobals()
1389 ConstantInt::get(IntptrTy, SizeInBytes), in InstrumentGlobals()
1390 ConstantInt::get(IntptrTy, SizeInBytes + RightRedzoneSize), in InstrumentGlobals()
1391 ConstantExpr::getPointerCast(Name, IntptrTy), in InstrumentGlobals()
1392 ConstantExpr::getPointerCast(ModuleName, IntptrTy), in InstrumentGlobals()
1393 ConstantInt::get(IntptrTy, MD.IsDynInit), SourceLoc, nullptr); in InstrumentGlobals()
1409 {IRB.CreatePointerCast(AllGlobals, IntptrTy), in InstrumentGlobals()
1410 ConstantInt::get(IntptrTy, n)}); in InstrumentGlobals()
1420 {IRB.CreatePointerCast(AllGlobals, IntptrTy), in InstrumentGlobals()
1421 ConstantInt::get(IntptrTy, n)}); in InstrumentGlobals()
1431 IntptrTy = Type::getIntNTy(*C, LongSize); in runOnModule()
1463 IRB.getVoidTy(), IntptrTy, IntptrTy, ExpType, nullptr)); in initializeCallbacks()
1467 IRB.getVoidTy(), IntptrTy, IntptrTy, ExpType, nullptr)); in initializeCallbacks()
1474 IRB.getVoidTy(), IntptrTy, ExpType, nullptr)); in initializeCallbacks()
1478 IRB.getVoidTy(), IntptrTy, ExpType, nullptr)); in initializeCallbacks()
1487 IRB.getInt8PtrTy(), IRB.getInt8PtrTy(), IntptrTy, nullptr)); in initializeCallbacks()
1490 IRB.getInt8PtrTy(), IRB.getInt8PtrTy(), IntptrTy, nullptr)); in initializeCallbacks()
1493 IRB.getInt8PtrTy(), IRB.getInt32Ty(), IntptrTy, nullptr)); in initializeCallbacks()
1499 kAsanPtrCmp, IRB.getVoidTy(), IntptrTy, IntptrTy, nullptr)); in initializeCallbacks()
1501 kAsanPtrSub, IRB.getVoidTy(), IntptrTy, IntptrTy, nullptr)); in initializeCallbacks()
1516 IntptrTy = Type::getIntNTy(*C, LongSize); in doInitialization()
1710 M.getOrInsertFunction(kAsanStackMallocNameTemplate + Suffix, IntptrTy, in initializeCallbacks()
1711 IntptrTy, nullptr)); in initializeCallbacks()
1714 IRB.getVoidTy(), IntptrTy, IntptrTy, nullptr)); in initializeCallbacks()
1718 IntptrTy, IntptrTy, nullptr)); in initializeCallbacks()
1721 IntptrTy, IntptrTy, nullptr)); in initializeCallbacks()
1723 kAsanAllocaPoison, IRB.getVoidTy(), IntptrTy, IntptrTy, nullptr)); in initializeCallbacks()
1726 kAsanAllocasUnpoison, IRB.getVoidTy(), IntptrTy, IntptrTy, nullptr)); in initializeCallbacks()
1748 Value *Ptr = IRB.CreateAdd(ShadowBase, ConstantInt::get(IntptrTy, i)); in poisonRedZones()
1779 Value *p = IRB.CreateAdd(ShadowBase, ConstantInt::get(IntptrTy, i)); in SetShadowToStackAfterReturnInlined()
1790 PHINode *PHI = IRB.CreatePHI(IntptrTy, 2); in createPHI()
1813 return IRB.CreatePointerCast(Alloca, IntptrTy); in createAllocaForLayout()
1819 DynamicAllocaLayout = IRB.CreateAlloca(IntptrTy, nullptr); in createDynamicAllocasInitStorage()
1820 IRB.CreateStore(Constant::getNullValue(IntptrTy), DynamicAllocaLayout); in createDynamicAllocasInitStorage()
1920 ConstantInt::get(IntptrTy, LocalStackSize)); in poisonStack()
1924 ConstantInt::get(IntptrTy, 0)); in poisonStack()
1927 IRB.CreateICmpEQ(FakeStack, Constant::getNullValue(IntptrTy)); in poisonStack()
1939 FakeStack = ConstantInt::get(IntptrTy, 0); in poisonStack()
1948 IRB.CreateAdd(LocalStackBase, ConstantInt::get(IntptrTy, Desc.Offset)), in poisonStack()
1957 IRB.CreateStore(ConstantInt::get(IntptrTy, kCurrentStackFrameMagic), in poisonStack()
1962 ConstantInt::get(IntptrTy, ASan.LongSize / 8)), in poisonStack()
1967 Value *Description = IRB.CreatePointerCast(StackDescriptionGlobal, IntptrTy); in poisonStack()
1972 ConstantInt::get(IntptrTy, 2 * ASan.LongSize / 8)), in poisonStack()
1974 IRB.CreateStore(IRB.CreatePointerCast(&F, IntptrTy), BasePlus2); in poisonStack()
1984 IRBRet.CreateStore(ConstantInt::get(IntptrTy, kRetiredStackFrameMagic), in poisonStack()
1999 IRBRet.CreateICmpNE(FakeStack, Constant::getNullValue(IntptrTy)); in poisonStack()
2010 ConstantInt::get(IntptrTy, ClassSize - ASan.LongSize / 8)); in poisonStack()
2020 {FakeStack, ConstantInt::get(IntptrTy, LocalStackSize)}); in poisonStack()
2041 Value *AddrArg = IRB.CreatePointerCast(V, IntptrTy); in poisonAlloca()
2042 Value *SizeArg = ConstantInt::get(IntptrTy, Size); in poisonAlloca()
2092 Value *Zero = Constant::getNullValue(IntptrTy); in handleDynamicAllocaCall()
2093 Value *AllocaRzSize = ConstantInt::get(IntptrTy, kAllocaRzSize); in handleDynamicAllocaCall()
2094 Value *AllocaRzMask = ConstantInt::get(IntptrTy, AllocaRedzoneMask); in handleDynamicAllocaCall()
2103 IRB.CreateMul(IRB.CreateIntCast(AI->getArraySize(), IntptrTy, false), in handleDynamicAllocaCall()
2104 ConstantInt::get(IntptrTy, ElementSize)); in handleDynamicAllocaCall()
2120 ConstantInt::get(IntptrTy, Align + kAllocaRzSize), PartialPadding); in handleDynamicAllocaCall()
2129 Value *NewAddress = IRB.CreateAdd(IRB.CreatePtrToInt(NewAlloca, IntptrTy), in handleDynamicAllocaCall()
2130 ConstantInt::get(IntptrTy, Align)); in handleDynamicAllocaCall()
2137 IRB.CreateStore(IRB.CreatePtrToInt(NewAlloca, IntptrTy), DynamicAllocaLayout); in handleDynamicAllocaCall()