[llvm] [hwasan] Optimize outlined memaccess for fixed shadow on Aarch64 (PR #88544)

Thurston Dang via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 12 11:02:25 PDT 2024


================
@@ -117,6 +117,7 @@ class AArch64AsmPrinter : public AsmPrinter {
   void LowerPATCHABLE_EVENT_CALL(const MachineInstr &MI, bool Typed);
 
   typedef std::tuple<unsigned, bool, uint32_t> HwasanMemaccessTuple;
+  unsigned long long HwasanFixedShadowBase = (unsigned long long)-1;
----------------
thurstond wrote:

> I would just use an optional

Will do
 
> do i understand correctly that this is just to make sure the offsets of all the `HWASAN_CHECK_MEMACCESS_FIXEDSHADOW_SHORTGRANULES` are the same?

Yes.


https://github.com/llvm/llvm-project/pull/88544


More information about the llvm-commits mailing list