Home
last modified time | relevance | path

Searched refs:IntptrTy (Results 1 – 11 of 11) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DAddressSanitizer.cpp787 IntptrTy = Type::getIntNTy(*C, LongSize); in AddressSanitizer()
831 Type *IntptrTy, Value *Mask, Value *EVL,
886 Type *IntptrTy; member
949 IntptrTy = Type::getIntNTy(*C, LongSize); in ModuleAddressSanitizer()
1009 Type *IntptrTy; member in __anon4b8f1cd00211::ModuleAddressSanitizer
1043 Type *IntptrTy; member
1081 IntptrTy(ASan.IntptrTy), in FunctionStackPoisoner()
1082 IntptrPtrTy(PointerType::get(IntptrTy->getContext(), 0)), in FunctionStackPoisoner()
1149 Value *DynamicAreaPtr = IRB.CreatePtrToInt(SavedStack, IntptrTy); in unpoisonDynamicAllocasBeforeInst()
1156 Intrinsic::get_dynamic_area_offset, {IntptrTy}, {}); in unpoisonDynamicAllocasBeforeInst()
[all …]
H A DTypeSanitizer.cpp106 Type *IntptrTy; member
123 IntptrTy = DL.getIntPtrType(M.getContext()); in TypeSanitizer()
124 PtrShift = countr_zero(IntptrTy->getPrimitiveSizeInBits() / 8); in TypeSanitizer()
325 PushTDSub(ConstantInt::get(IntptrTy, 2)); in generateBaseTypeDescriptor()
326 PushTDSub(ConstantInt::get(IntptrTy, Members.size())); in generateBaseTypeDescriptor()
337 PushTDSub(ConstantInt::get(IntptrTy, Member.second)); in generateBaseTypeDescriptor()
422 StructType::get(IntptrTy, Base->getType(), Access->getType(), IntptrTy); in generateTypeDescriptor()
424 ConstantStruct::get(TDTy, ConstantInt::get(IntptrTy, 1), Base, Access, in generateTypeDescriptor()
425 ConstantInt::get(IntptrTy, Offset)); in generateTypeDescriptor()
452 F.getParent()->getOrInsertGlobal(kTysanShadowMemoryAddress, IntptrTy); in getShadowBase()
[all …]
H A DMemProfInstrumentation.cpp186 IntptrTy = Type::getIntNTy(*C, LongSize); in MemProfiler()
214 Type *IntptrTy; member in __anonef5aa81b0111::MemProfiler
278 IRB.CreateIntCast(MI->getOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic()
284 IRB.CreateIntCast(MI->getOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic()
389 auto *Zero = ConstantInt::get(IntptrTy, 0); in instrumentMaskedLoadOrStore()
411 IRB.CreateGEP(VTy, Addr, {Zero, ConstantInt::get(IntptrTy, Idx)}); in instrumentMaskedLoadOrStore()
447 Value *AddrLong = IRB.CreatePointerCast(Addr, IntptrTy); in instrumentAddress()
554 SmallVector<Type *, 2> Args1{1, IntptrTy}; in initializeCallbacks()
560 ClMemoryAccessCallbackPrefix + "memmove", PtrTy, PtrTy, PtrTy, IntptrTy); in initializeCallbacks()
562 PtrTy, PtrTy, PtrTy, IntptrTy); in initializeCallbacks()
[all …]
H A DHWAddressSanitizer.cpp440 Type *IntptrTy = M.getDataLayout().getIntPtrType(M.getContext()); member in __anon1b7bdbef0211::HWAddressSanitizer
696 ThreadPtrGlobal = M.getOrInsertGlobal("__hwasan_tls", IntptrTy, [&] { in initializeModule()
697 auto *GV = new GlobalVariable(M, IntptrTy, /*isConstant=*/false, in initializeModule()
715 FunctionType::get(VoidTy, {IntptrTy, IntptrTy, Int8Ty}, false); in initializeCallbacks()
717 FunctionType::get(VoidTy, {IntptrTy, Int8Ty}, false); in initializeCallbacks()
719 FunctionType::get(PtrTy, {PtrTy, PtrTy, IntptrTy, Int8Ty}, false); in initializeCallbacks()
721 FunctionType::get(PtrTy, {PtrTy, Int32Ty, IntptrTy, Int8Ty}, false); in initializeCallbacks()
724 FunctionType::get(VoidTy, {IntptrTy, IntptrTy}, false); in initializeCallbacks()
726 FunctionType::get(VoidTy, {IntptrTy}, false); in initializeCallbacks()
728 FunctionType::get(PtrTy, {PtrTy, PtrTy, IntptrTy}, false); in initializeCallbacks()
[all …]
H A DSanitizerCoverage.cpp300 Type *PtrTy, *IntptrTy, *Int64Ty, *Int32Ty, *Int16Ty, *Int8Ty, *Int1Ty; member in __anon0eb498d60111::ModuleSanitizerCoverage
367 IRB.CreatePtrAdd(SecStart, ConstantInt::get(IntptrTy, sizeof(uint64_t))); in CreateSecStartEnd()
422 IntptrTy = Type::getIntNTy(*C, DL->getPointerSizeInBits()); in instrumentModule()
433 M.getOrInsertFunction(SanCovTracePCIndirName, VoidTy, IntptrTy); in instrumentModule()
485 M.getOrInsertFunction(SanCovTraceGep, VoidTy, IntptrTy); in instrumentModule()
489 SanCovLowestStack = M.getOrInsertGlobal(SanCovLowestStackName, IntptrTy); in instrumentModule()
490 if (SanCovLowestStack->getValueType() != IntptrTy) { in instrumentModule()
498 SanCovLowestStack->setInitializer(Constant::getAllOnesValue(IntptrTy)); in instrumentModule()
543 auto SecStartEnd = CreateSecStartEnd(M, SanCovPCsSectionName, IntptrTy); in instrumentModule()
551 auto SecStartEnd = CreateSecStartEnd(M, SanCovCFsSectionName, IntptrTy); in instrumentModule()
[all …]
H A DNumericalStabilitySanitizer.cpp383 Value *getValue(Type *IntptrTy, IRBuilder<> &Builder) const { in getValue() argument
389 return ConstantInt::get(IntptrTy, 0); in getValue()
391 return ConstantInt::get(IntptrTy, ArgId); in getValue()
394 return Builder.CreatePtrToInt(Address, IntptrTy); in getValue()
509 IntegerType *IntptrTy = M.getDataLayout().getIntPtrType(Ctx); in NsanMemOpFn() local
517 M.getOrInsertFunction(Fallback, Attr, VoidTy, PtrTy, PtrTy, IntptrTy)); in NsanMemOpFn()
521 M.getOrInsertFunction(Fallback, Attr, VoidTy, PtrTy, IntptrTy)); in NsanMemOpFn()
600 IntegerType *IntptrTy = nullptr; member in __anon1c7024df0111::NumericalStabilitySanitizer
661 IntptrTy = DL.getIntPtrType(Context);
679 GetterPrefix + "_store", Attr, PtrTy, PtrTy, IntptrTy);
[all …]
H A DMemorySanitizer.cpp636 Type *IntptrTy; ///< Integer type with the size of a ptr in default AS. member in __anonb346f5430211::MemorySanitizer
878 M, "__msan_metadata_ptr_for_load_n", PtrTy, IntptrTy); in createKernelApi()
880 M, "__msan_metadata_ptr_for_store_n", PtrTy, IntptrTy); in createKernelApi()
884 "__msan_poison_alloca", IRB.getVoidTy(), PtrTy, IntptrTy, PtrTy); in createKernelApi()
886 "__msan_unpoison_alloca", IRB.getVoidTy(), PtrTy, IntptrTy); in createKernelApi()
962 IRB.getVoidTy(), PtrTy, IntptrTy, PtrTy, PtrTy); in createUserspaceApi()
965 IRB.getVoidTy(), PtrTy, IntptrTy, PtrTy); in createUserspaceApi()
967 IRB.getVoidTy(), PtrTy, IntptrTy); in createUserspaceApi()
986 IRB.getVoidTy(), PtrTy, IntptrTy, IRB.getInt32Ty()); in initializeCallbacks()
988 M.getOrInsertFunction("__msan_memmove", PtrTy, PtrTy, PtrTy, IntptrTy); in initializeCallbacks()
[all …]
H A DDataFlowSanitizer.cpp458 IntegerType *IntptrTy; member in __anon5712215c0211::DataFlowSanitizer
1155 IntptrTy = DL.getIntPtrType(*Ctx); in initializeModule()
1159 Type *DFSanUnionLoadArgs[2] = {PrimitiveShadowPtrTy, IntptrTy}; in initializeModule()
1162 Type *DFSanLoadLabelAndOriginArgs[2] = {Int8Ptr, IntptrTy}; in initializeModule()
1173 PointerType::getUnqual(*Ctx), IntptrTy}; in initializeModule()
1206 Int8Ptr, IntptrTy, OriginTy}; in initializeModule()
1209 Type *DFSanMemOriginTransferArgs[3] = {Int8Ptr, Int8Ptr, IntptrTy}; in initializeModule()
1212 Type *DFSanMemShadowOriginTransferArgs[3] = {Int8Ptr, Int8Ptr, IntptrTy}; in initializeModule()
1217 IntegerType::get(*Ctx, 8), Int8Ptr, Int8Ptr, Int8Ptr, IntptrTy}; in initializeModule()
1225 Type *DFSanMemTransferCallbackArgs[2] = {PrimitiveShadowPtrTy, IntptrTy}; in initializeModule()
[all …]
H A DThreadSanitizer.cpp144 Type *IntptrTy; member
202 IntptrTy = DL.getIntPtrType(Ctx); in initialize()
337 IRB.getPtrTy(), IRB.getPtrTy(), IntptrTy); in initialize()
340 IRB.getPtrTy(), IRB.getPtrTy(), IntptrTy); in initialize()
344 IRB.getPtrTy(), IRB.getPtrTy(), IRB.getInt32Ty(), IntptrTy); in initialize()
692 Value *Cast2 = IRB.CreateIntCast(M->getArgOperand(2), IntptrTy, false); in instrumentMemIntrinsic()
704 IRB.CreateIntCast(M->getArgOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUAsanInstrumentation.cpp79 static Value *createSlowPathCmp(Module &M, IRBuilder<> &IRB, Type *IntptrTy, in createSlowPathCmp() argument
85 IRB.CreateAnd(AddrLong, ConstantInt::get(IntptrTy, Granularity - 1)); in createSlowPathCmp()
89 LastAccessedByte, ConstantInt::get(IntptrTy, TypeStoreSize / 8 - 1)); in createSlowPathCmp()
98 Type *IntptrTy, Instruction *InsertBefore, in generateCrashCode() argument
113 SmallVector<Type *, 3> Args2 = {IntptrTy, IntptrTy}; in generateCrashCode()
118 SmallVector<Type *, 2> Args1{1, IntptrTy}; in generateCrashCode()
139 static Value *memToShadow(Module &M, IRBuilder<> &IRB, Type *IntptrTy, in memToShadow() argument
146 Value *ShadowBase = ConstantInt::get(IntptrTy, AsanOffset); in memToShadow()
158 Type *IntptrTy = M.getDataLayout().getIntPtrType( in instrumentAddressImpl() local
165 Value *AddrLong = IRB.CreatePtrToInt(Addr, IntptrTy); in instrumentAddressImpl()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64StackTagging.cpp482 auto *IntptrTy = IRB.getIntPtrTy(M.getDataLayout()); in insertBaseTaggedPointer() local
484 auto *ThreadLong = IRB.CreateLoad(IntptrTy, SlotPtr); in insertBaseTaggedPointer()
486 Value *Tag = IRB.CreateAnd(IRB.CreatePtrToInt(Base, IntptrTy), TagMask); in insertBaseTaggedPointer()
491 IRB.CreateStore(TaggedFP, IRB.CreateConstGEP1_64(IntptrTy, RecordPtr, 1)); in insertBaseTaggedPointer()