Lines Matching refs:IntptrTy

577   Type *IntptrTy;  ///< Integer type with the size of a ptr in default AS.  member in __anonf93d87790211::MemorySanitizer
825 "__msan_poison_alloca", IRB.getVoidTy(), PtrTy, IntptrTy, PtrTy); in createKernelApi()
827 "__msan_unpoison_alloca", IRB.getVoidTy(), PtrTy, IntptrTy); in createKernelApi()
900 IRB.getVoidTy(), PtrTy, IntptrTy, PtrTy, PtrTy); in createUserspaceApi()
903 IRB.getVoidTy(), PtrTy, IntptrTy, PtrTy); in createUserspaceApi()
905 IRB.getVoidTy(), PtrTy, IntptrTy); in createUserspaceApi()
923 IRB.getVoidTy(), PtrTy, IntptrTy, IRB.getInt32Ty()); in initializeCallbacks()
925 M.getOrInsertFunction("__msan_memmove", PtrTy, PtrTy, PtrTy, IntptrTy); in initializeCallbacks()
927 M.getOrInsertFunction("__msan_memcpy", PtrTy, PtrTy, PtrTy, IntptrTy); in initializeCallbacks()
930 PtrTy, PtrTy, IRB.getInt32Ty(), IntptrTy); in initializeCallbacks()
934 PointerType::get(IRB.getInt8Ty(), 0), IntptrTy); in initializeCallbacks()
1042 IntptrTy = IRB.getIntPtrTy(DL); in initializeModule()
1218 unsigned IntptrSize = DL.getTypeStoreSize(MS.IntptrTy); in originToIntptr()
1222 Origin = IRB.CreateIntCast(Origin, MS.IntptrTy, /* isSigned */ false); in originToIntptr()
1230 const Align IntptrAlignment = DL.getABITypeAlign(MS.IntptrTy); in paintOrigin()
1231 unsigned IntptrSize = DL.getTypeStoreSize(MS.IntptrTy); in paintOrigin()
1257 IRB.CreatePointerCast(OriginPtr, PointerType::get(MS.IntptrTy, 0)); in paintOrigin()
1259 Value *Ptr = i ? IRB.CreateConstGEP1_32(MS.IntptrTy, IntptrOriginPtr, i) in paintOrigin()
1663 return MS.IntptrTy; in ptrToIntPtrType()
1672 assert(IntPtrTy == MS.IntptrTy); in getPtrToShadowPtrType()
1681 assert(IntPtrTy == MS.IntptrTy); in constToIntPtr()
1682 return ConstantInt::get(MS.IntptrTy, C); in constToIntPtr()
1693 Type *IntptrTy = ptrToIntPtrType(Addr->getType()); in getShadowPtrOffset() local
1694 Value *OffsetLong = IRB.CreatePointerCast(Addr, IntptrTy); in getShadowPtrOffset()
1697 OffsetLong = IRB.CreateAnd(OffsetLong, constToIntPtr(IntptrTy, ~AndMask)); in getShadowPtrOffset()
1700 OffsetLong = IRB.CreateXor(OffsetLong, constToIntPtr(IntptrTy, XorMask)); in getShadowPtrOffset()
1721 Type *IntptrTy = ptrToIntPtrType(Addr->getType()); in getShadowOriginPtrUserspace() local
1726 IRB.CreateAdd(ShadowLong, constToIntPtr(IntptrTy, ShadowBase)); in getShadowOriginPtrUserspace()
1729 ShadowLong, getPtrToShadowPtrType(IntptrTy, ShadowTy)); in getShadowOriginPtrUserspace()
1737 IRB.CreateAdd(OriginLong, constToIntPtr(IntptrTy, OriginBase)); in getShadowOriginPtrUserspace()
1740 OriginLong = IRB.CreateAnd(OriginLong, constToIntPtr(IntptrTy, ~Mask)); in getShadowOriginPtrUserspace()
1743 OriginLong, getPtrToShadowPtrType(IntptrTy, MS.OriginTy)); in getShadowOriginPtrUserspace()
1774 Value *SizeVal = ConstantInt::get(MS.IntptrTy, Size); in getShadowOriginPtrKernelNoVec()
1836 Value *Base = IRB.CreatePointerCast(MS.ParamTLS, MS.IntptrTy); in getShadowPtrForArgument()
1838 Base = IRB.CreateAdd(Base, ConstantInt::get(MS.IntptrTy, ArgOffset)); in getShadowPtrForArgument()
1846 Value *Base = IRB.CreatePointerCast(MS.ParamOriginTLS, MS.IntptrTy); in getOriginPtrForArgument()
1848 Base = IRB.CreateAdd(Base, ConstantInt::get(MS.IntptrTy, ArgOffset)); in getOriginPtrForArgument()
2840 IRB.CreateIntCast(I.getArgOperand(2), MS.IntptrTy, false)}); in visitMemMoveInst()
2863 IRB.CreateIntCast(I.getArgOperand(2), MS.IntptrTy, false)}); in visitMemCpyInst()
2874 IRB.CreateIntCast(I.getArgOperand(2), MS.IntptrTy, false)}); in visitMemSetInst()
4410 Value *Len = ConstantInt::get(MS.IntptrTy, TypeSize); in instrumentAlloca()
4413 IRB.CreateZExtOrTrunc(I.getArraySize(), MS.IntptrTy)); in instrumentAlloca()
4563 IRB.CreateTypeSize(MS.IntptrTy, DL.getTypeStoreSize(ElemTy)); in instrumentAsmArgument()
4678 Value *Base = IRB.CreatePointerCast(MS.VAArgTLS, MS.IntptrTy); in getShadowAddrForVAArgument()
4679 return IRB.CreateAdd(Base, ConstantInt::get(MS.IntptrTy, ArgOffset)); in getShadowAddrForVAArgument()
4685 Value *Base = IRB.CreatePointerCast(MS.VAArgTLS, MS.IntptrTy); in getShadowPtrForVAArgument()
4686 Base = IRB.CreateAdd(Base, ConstantInt::get(MS.IntptrTy, ArgOffset)); in getShadowPtrForVAArgument()
4702 Value *Base = IRB.CreatePointerCast(MS.VAArgOriginTLS, MS.IntptrTy); in getOriginPtrForVAArgument()
4706 Base = IRB.CreateAdd(Base, ConstantInt::get(MS.IntptrTy, ArgOffset)); in getOriginPtrForVAArgument()
4912 ConstantInt::get(MS.IntptrTy, AMD64FpEndOffset), VAArgOverflowSize); in finalizeInstrumentation()
4920 ConstantInt::get(MS.IntptrTy, kParamTLSSize)); in finalizeInstrumentation()
4940 IRB.CreateAdd(IRB.CreatePtrToInt(VAListTag, MS.IntptrTy), in finalizeInstrumentation()
4941 ConstantInt::get(MS.IntptrTy, 16)), in finalizeInstrumentation()
4957 IRB.CreateAdd(IRB.CreatePtrToInt(VAListTag, MS.IntptrTy), in finalizeInstrumentation()
4958 ConstantInt::get(MS.IntptrTy, 8)), in finalizeInstrumentation()
5024 IRB.CreateAdd(ConstantInt::get(MS.IntptrTy, 0), VAArgSize); in finalizeInstrumentation()
5036 ConstantInt::get(MS.IntptrTy, kParamTLSSize)); in finalizeInstrumentation()
5049 IRB.CreateIntToPtr(IRB.CreatePtrToInt(VAListTag, MS.IntptrTy), in finalizeInstrumentation()
5174 IRB.CreateAdd(IRB.CreatePtrToInt(VAListTag, MS.IntptrTy), in getVAField64()
5175 ConstantInt::get(MS.IntptrTy, offset)), in getVAField64()
5183 IRB.CreateAdd(IRB.CreatePtrToInt(VAListTag, MS.IntptrTy), in getVAField32()
5184 ConstantInt::get(MS.IntptrTy, offset)), in getVAField32()
5187 return IRB.CreateSExt(SaveArea32, MS.IntptrTy); in getVAField32()
5200 ConstantInt::get(MS.IntptrTy, AArch64VAEndOffset), VAArgOverflowSize); in finalizeInstrumentation()
5208 ConstantInt::get(MS.IntptrTy, kParamTLSSize)); in finalizeInstrumentation()
5213 Value *GrArgSize = ConstantInt::get(MS.IntptrTy, kAArch64GrArgSize); in finalizeInstrumentation()
5214 Value *VrArgSize = ConstantInt::get(MS.IntptrTy, kAArch64VrArgSize); in finalizeInstrumentation()
5409 IRB.CreateAdd(ConstantInt::get(MS.IntptrTy, 0), VAArgSize); in finalizeInstrumentation()
5422 ConstantInt::get(MS.IntptrTy, kParamTLSSize)); in finalizeInstrumentation()
5435 IRB.CreateIntToPtr(IRB.CreatePtrToInt(VAListTag, MS.IntptrTy), in finalizeInstrumentation()
5645 IRB.CreatePtrToInt(VAListTag, MS.IntptrTy), in copyRegSaveArea()
5646 ConstantInt::get(MS.IntptrTy, SystemZRegSaveAreaPtrOffset)), in copyRegSaveArea()
5672 IRB.CreatePtrToInt(VAListTag, MS.IntptrTy), in copyOverflowArea()
5673 ConstantInt::get(MS.IntptrTy, SystemZOverflowArgAreaPtrOffset)), in copyOverflowArea()
5704 IRB.CreateAdd(ConstantInt::get(MS.IntptrTy, SystemZOverflowOffset), in finalizeInstrumentation()
5713 ConstantInt::get(MS.IntptrTy, kParamTLSSize)); in finalizeInstrumentation()