/freebsd/contrib/llvm-project/compiler-rt/lib/hwasan/ |
H A D | hwasan_linux.cpp | 365 static AccessInfo GetAccessInfo(siginfo_t *info, ucontext_t *uc) { in GetAccessInfo() 378 return AccessInfo{}; // Not ours. in GetAccessInfo() 385 return AccessInfo{}; // Not ours. in GetAccessInfo() 396 return AccessInfo{}; // Not ours. in GetAccessInfo() 404 return AccessInfo{}; // Not ours. in GetAccessInfo() 427 return AccessInfo{}; in GetAccessInfo() 445 return AccessInfo{}; // Not our case in GetAccessInfo() 453 return AccessInfo{addr, size, is_store, !is_store, recover}; in GetAccessInfo() 457 AccessInfo ai = GetAccessInfo(info, uc); in HwasanOnSIGTRAP()
|
H A D | hwasan.h | 171 struct AccessInfo { struct 181 void HandleTagMismatch(AccessInfo ai, uptr pc, uptr frame, void *uc, argument 184 // This dispatches to HandleTagMismatch but sets up the AccessInfo, program
|
H A D | hwasan_checks.h | 46 AccessInfo access_info = { in SigTrap() 95 AccessInfo access_info = { in SigTrap()
|
H A D | hwasan.cpp | 225 void HandleTagMismatch(AccessInfo ai, uptr pc, uptr frame, void *uc, in HandleTagMismatch() 249 __hwasan::AccessInfo ai; in HwasanTagMismatch()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVAsmPrinter.cpp | 512 uint32_t AccessInfo = MI.getOperand(1).getImm(); in LowerHWASAN_CHECK_MEMACCESS() local 514 HwasanMemaccessSymbols[HwasanMemaccessTuple(Reg, AccessInfo)]; in LowerHWASAN_CHECK_MEMACCESS() 521 utostr(AccessInfo) + "_short"; in LowerHWASAN_CHECK_MEMACCESS() 641 uint32_t AccessInfo = std::get<1>(P.first); in EmitHwasanMemaccessSymbols() local 645 1 << ((AccessInfo >> HWASanAccessInfo::AccessSizeShift) & 0xf); in EmitHwasanMemaccessSymbols() 815 .addImm(AccessInfo & HWASanAccessInfo::RuntimeMask), in EmitHwasanMemaccessSymbols()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
H A D | HWAddressSanitizer.cpp | 946 const int64_t AccessInfo = getAccessInfo(IsWrite, AccessSizeIndex); in instrumentMemAccessOutline() local 973 {Ptr, ConstantInt::get(Int32Ty, AccessInfo), in instrumentMemAccessOutline() 980 {ShadowBase, Ptr, ConstantInt::get(Int32Ty, AccessInfo)}); in instrumentMemAccessOutline() 989 const int64_t AccessInfo = getAccessInfo(IsWrite, AccessSizeIndex); in instrumentMemAccessInline() local 1026 itostr(0x40 + (AccessInfo & HWASanAccessInfo::RuntimeMask)) + in instrumentMemAccessInline() 1036 "brk #" + itostr(0x900 + (AccessInfo & HWASanAccessInfo::RuntimeMask)), in instrumentMemAccessInline() 1045 itostr(0x40 + (AccessInfo & HWASanAccessInfo::RuntimeMask)), in instrumentMemAccessInline()
|
H A D | AddressSanitizer.cpp | 1850 const ASanAccessInfo AccessInfo(IsWrite, CompileKernel, AccessSizeIndex); in instrumentAddress() local 1853 const ASanAccessInfo AccessInfo(IsWrite, CompileKernel, AccessSizeIndex); in instrumentAddress() local 1858 ConstantInt::get(Int32Ty, AccessInfo.Packed)}); in instrumentAddress()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64AsmPrinter.cpp | 592 uint32_t AccessInfo = MI.getOperand(1).getImm(); in LowerHWASAN_CHECK_MEMACCESS() local 600 Reg, IsShort, AccessInfo, IsFixedShadow, FixedShadowOffset)]; in LowerHWASAN_CHECK_MEMACCESS() 607 utostr(AccessInfo); in LowerHWASAN_CHECK_MEMACCESS() 643 uint32_t AccessInfo = std::get<2>(P.first); in emitHwasanMemaccessSymbols() local 651 (AccessInfo >> HWASanAccessInfo::HasMatchAllShift) & 1; in emitHwasanMemaccessSymbols() 653 (AccessInfo >> HWASanAccessInfo::MatchAllShift) & 0xff; in emitHwasanMemaccessSymbols() 655 1 << ((AccessInfo >> HWASanAccessInfo::AccessSizeShift) & 0xf); in emitHwasanMemaccessSymbols() 657 (AccessInfo >> HWASanAccessInfo::CompileKernelShift) & 1; in emitHwasanMemaccessSymbols() 834 .addImm(AccessInfo & HWASanAccessInfo::RuntimeMask) in emitHwasanMemaccessSymbols()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86MCInstLower.cpp | 955 ASanAccessInfo AccessInfo(MI.getOperand(1).getImm()); in LowerASAN_CHECK_MEMACCESS() local 961 AccessInfo.CompileKernel, &ShadowBase, in LowerASAN_CHECK_MEMACCESS() 964 StringRef Name = AccessInfo.IsWrite ? "store" : "load"; in LowerASAN_CHECK_MEMACCESS() 967 Twine(1ULL << AccessInfo.AccessSizeIndex) + "_" + in LowerASAN_CHECK_MEMACCESS()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | Intrinsics.td | 2441 // validity, AccessInfo (AccessInfo is defined in HWAddressSanitizer.h) 2453 // Parameters: Pointer to be checked for validity, AccessInfo, Shadow base
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
H A D | AttributorAttributes.cpp | 8451 for (const AccessInfo &AI : *Accesses) in checkForAllAccessesToMemoryKind() 8477 struct AccessInfo { struct 8488 bool operator==(const AccessInfo &RHS) const { in operator ==() argument 8491 bool operator()(const AccessInfo &LHS, const AccessInfo &RHS) const { in operator ()() argument 8504 using AccessSet = SmallSet<AccessInfo, 2, AccessInfo>; 8540 Changed |= Accesses->insert(AccessInfo{I, Ptr, AK}).second; in updateStateAndAccessesMap()
|