[PATCH] D129315: [hwasan] Refactor frame record info into function

Leonard Chan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 7 11:42:21 PDT 2022


leonardchan created this revision.
leonardchan added reviewers: vitalybuka, eugenis.
leonardchan added a project: Sanitizers.
Herald added subscribers: Enna1, hiraditya, arichardson.
Herald added a project: All.
leonardchan requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This way it can be reused easily in D128387 <https://reviews.llvm.org/D128387>.

Note this changes the IR slightly. Before The steps for calculating and storing the frame record info were:

1. getPC
2. getSP
3. inttoptr
4. or SP, PC
5. store

Now the steps are:

1. getPC
2. getSP
3. or SP, PC
4. inttoptr
5. store


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D129315

Files:
  llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
  llvm/test/Instrumentation/HWAddressSanitizer/use-after-scope.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129315.442999.patch
Type: text/x-patch
Size: 20467 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220707/5eefd83e/attachment.bin>


More information about the llvm-commits mailing list