| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
| H A D | AddressSanitizer.cpp | 739 IntptrTy = Type::getIntNTy(*C, LongSize); in AddressSanitizer() 783 Type *IntptrTy, Value *Mask, Value *EVL, 837 Type *IntptrTy; member 899 IntptrTy = Type::getIntNTy(*C, LongSize); in ModuleAddressSanitizer() 957 Type *IntptrTy; member in __anon4b8f1cd00211::ModuleAddressSanitizer 990 Type *IntptrTy; member 1028 IntptrTy(ASan.IntptrTy), IntptrPtrTy(PointerType::get(IntptrTy, 0)), in FunctionStackPoisoner() 1096 Value *DynamicAreaPtr = IRB.CreatePtrToInt(SavedStack, IntptrTy); in unpoisonDynamicAllocasBeforeInst() 1104 {IntptrTy}); in unpoisonDynamicAllocasBeforeInst() 1108 DynamicAreaPtr = IRB.CreateAdd(IRB.CreatePtrToInt(SavedStack, IntptrTy), in unpoisonDynamicAllocasBeforeInst() [all …]
|
| H A D | HWAddressSanitizer.cpp | 410 Type *IntptrTy = M.getDataLayout().getIntPtrType(M.getContext()); member in __anon1b7bdbef0111::HWAddressSanitizer 658 Constant *C = M.getOrInsertGlobal("__hwasan_tls", IntptrTy, [&] { in initializeModule() 659 auto *GV = new GlobalVariable(M, IntptrTy, /*isConstant=*/false, in initializeModule() 678 FunctionType::get(VoidTy, {IntptrTy, IntptrTy, Int8Ty}, false); in initializeCallbacks() 680 FunctionType::get(VoidTy, {IntptrTy, Int8Ty}, false); in initializeCallbacks() 682 FunctionType::get(PtrTy, {PtrTy, PtrTy, IntptrTy, Int8Ty}, false); in initializeCallbacks() 684 FunctionType::get(PtrTy, {PtrTy, Int32Ty, IntptrTy, Int8Ty}, false); in initializeCallbacks() 687 FunctionType::get(VoidTy, {IntptrTy, IntptrTy}, false); in initializeCallbacks() 689 FunctionType::get(VoidTy, {IntptrTy}, false); in initializeCallbacks() 691 FunctionType::get(PtrTy, {PtrTy, PtrTy, IntptrTy}, false); in initializeCallbacks() [all …]
|
| H A D | SanitizerCoverage.cpp | 268 Type *PtrTy, *IntptrTy, *Int64Ty, *Int32Ty, *Int16Ty, *Int8Ty, *Int1Ty; member in __anon0eb498d60111::ModuleSanitizerCoverage 338 IRB.CreatePtrAdd(SecStart, ConstantInt::get(IntptrTy, sizeof(uint64_t))); in CreateSecStartEnd() 392 IntptrTy = Type::getIntNTy(*C, DL->getPointerSizeInBits()); in instrumentModule() 403 M.getOrInsertFunction(SanCovTracePCIndirName, VoidTy, IntptrTy); in instrumentModule() 464 M.getOrInsertFunction(SanCovTraceGep, VoidTy, IntptrTy); in instrumentModule() 469 M.getOrInsertGlobal(SanCovLowestStackName, IntptrTy); in instrumentModule() 471 if (!SanCovLowestStack || SanCovLowestStack->getValueType() != IntptrTy) { in instrumentModule() 479 SanCovLowestStack->setInitializer(Constant::getAllOnesValue(IntptrTy)); in instrumentModule() 504 auto SecStartEnd = CreateSecStartEnd(M, SanCovPCsSectionName, IntptrTy); in instrumentModule() 512 auto SecStartEnd = CreateSecStartEnd(M, SanCovCFsSectionName, IntptrTy); in instrumentModule() [all …]
|
| H A D | MemorySanitizer.cpp | 581 Type *IntptrTy; ///< Integer type with the size of a ptr in default AS. member in __anonb346f5430211::MemorySanitizer 829 "__msan_poison_alloca", IRB.getVoidTy(), PtrTy, IntptrTy, PtrTy); in createKernelApi() 831 "__msan_unpoison_alloca", IRB.getVoidTy(), PtrTy, IntptrTy); in createKernelApi() 904 IRB.getVoidTy(), PtrTy, IntptrTy, PtrTy, PtrTy); in createUserspaceApi() 907 IRB.getVoidTy(), PtrTy, IntptrTy, PtrTy); in createUserspaceApi() 909 IRB.getVoidTy(), PtrTy, IntptrTy); in createUserspaceApi() 927 IRB.getVoidTy(), PtrTy, IntptrTy, IRB.getInt32Ty()); in initializeCallbacks() 929 M.getOrInsertFunction("__msan_memmove", PtrTy, PtrTy, PtrTy, IntptrTy); in initializeCallbacks() 931 M.getOrInsertFunction("__msan_memcpy", PtrTy, PtrTy, PtrTy, IntptrTy); in initializeCallbacks() 934 PtrTy, PtrTy, IRB.getInt32Ty(), IntptrTy); in initializeCallbacks() [all …]
|
| H A D | NumericalStabilitySanitizer.cpp | 387 Value *getValue(Type *IntptrTy, IRBuilder<> &Builder) const { in getValue() argument 393 return ConstantInt::get(IntptrTy, 0); in getValue() 395 return ConstantInt::get(IntptrTy, ArgId); in getValue() 398 return Builder.CreatePtrToInt(Address, IntptrTy); in getValue() 552 IntegerType *IntptrTy = nullptr; member in __anon1c7024df0111::NumericalStabilitySanitizer 602 IntptrTy = DL.getIntPtrType(Context); in NumericalStabilitySanitizer() 620 GetterPrefix + "_store", Attr, PtrTy, PtrTy, IntptrTy); in NumericalStabilitySanitizer() 622 GetterPrefix + "_load", Attr, PtrTy, PtrTy, IntptrTy); in NumericalStabilitySanitizer() 630 Attr, Int32Ty, VTTy, ShadowTy, Int32Ty, IntptrTy); in NumericalStabilitySanitizer() 638 PtrTy, PtrTy, IntptrTy); in NumericalStabilitySanitizer() [all …]
|
| H A D | MemProfiler.cpp | 222 IntptrTy = Type::getIntNTy(*C, LongSize); in MemProfiler() 250 Type *IntptrTy; member in __anon3967f7130111::MemProfiler 316 IRB.CreateIntCast(MI->getOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic() 322 IRB.CreateIntCast(MI->getOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic() 427 auto *Zero = ConstantInt::get(IntptrTy, 0); in instrumentMaskedLoadOrStore() 449 IRB.CreateGEP(VTy, Addr, {Zero, ConstantInt::get(IntptrTy, Idx)}); in instrumentMaskedLoadOrStore() 485 Value *AddrLong = IRB.CreatePointerCast(Addr, IntptrTy); in instrumentAddress() 569 SmallVector<Type *, 2> Args1{1, IntptrTy}; in initializeCallbacks() 575 ClMemoryAccessCallbackPrefix + "memmove", PtrTy, PtrTy, PtrTy, IntptrTy); in initializeCallbacks() 577 PtrTy, PtrTy, PtrTy, IntptrTy); in initializeCallbacks() [all …]
|
| H A D | DataFlowSanitizer.cpp | 458 IntegerType *IntptrTy; member in __anon5712215c0211::DataFlowSanitizer 1157 IntptrTy = DL.getIntPtrType(*Ctx); in initializeModule() 1161 Type *DFSanUnionLoadArgs[2] = {PrimitiveShadowPtrTy, IntptrTy}; in initializeModule() 1164 Type *DFSanLoadLabelAndOriginArgs[2] = {Int8Ptr, IntptrTy}; in initializeModule() 1175 PointerType::getUnqual(*Ctx), IntptrTy}; in initializeModule() 1208 Int8Ptr, IntptrTy, OriginTy}; in initializeModule() 1211 Type *DFSanMemOriginTransferArgs[3] = {Int8Ptr, Int8Ptr, IntptrTy}; in initializeModule() 1214 Type *DFSanMemShadowOriginTransferArgs[3] = {Int8Ptr, Int8Ptr, IntptrTy}; in initializeModule() 1219 IntegerType::get(*Ctx, 8), Int8Ptr, Int8Ptr, Int8Ptr, IntptrTy}; in initializeModule() 1227 Type *DFSanMemTransferCallbackArgs[2] = {PrimitiveShadowPtrTy, IntptrTy}; in initializeModule() [all …]
|
| H A D | ThreadSanitizer.cpp | 145 Type *IntptrTy; member 200 IntptrTy = DL.getIntPtrType(Ctx); in initialize() 335 IRB.getPtrTy(), IRB.getPtrTy(), IntptrTy); in initialize() 338 IRB.getPtrTy(), IRB.getPtrTy(), IntptrTy); in initialize() 342 IRB.getPtrTy(), IRB.getPtrTy(), IRB.getInt32Ty(), IntptrTy); in initialize() 689 Value *Cast2 = IRB.CreateIntCast(M->getArgOperand(2), IntptrTy, false); in instrumentMemIntrinsic() 701 IRB.CreateIntCast(M->getArgOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64StackTagging.cpp | 496 auto *IntptrTy = IRB.getIntPtrTy(M.getDataLayout()); in insertBaseTaggedPointer() local 498 auto *ThreadLong = IRB.CreateLoad(IntptrTy, SlotPtr); in insertBaseTaggedPointer() 500 Value *Tag = IRB.CreateAnd(IRB.CreatePtrToInt(Base, IntptrTy), TagMask); in insertBaseTaggedPointer() 505 IRB.CreateStore(TaggedFP, IRB.CreateConstGEP1_64(IntptrTy, RecordPtr, 1)); in insertBaseTaggedPointer() 515 ConstantInt::get(IntptrTy, (uint64_t)-1)); in insertBaseTaggedPointer() 517 IRB.CreateAdd(ThreadLong, ConstantInt::get(IntptrTy, 16)), WrapMask); in insertBaseTaggedPointer()
|