[PATCH] D63703: [stack-safety] Refactoring StackSafetyAnalysis to be accsessible from other passes

Gilang Mentari Hamidy via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 24 01:04:30 PDT 2019


gilang created this revision.
gilang added reviewers: vitalybuka, eugenis, vlad.tsyrklevich.
gilang added a project: LLVM.
Herald added subscribers: llvm-commits, hiraditya.

Refactoring StackSafetyAnalysis to expose information about params and allocas outside of its compilation unit. Previously, the analysis does not expose params and allocas information externally and only provides print method for the user. In order to use the information programmatically from other passes, the data structure has to be exposed in the header files under llvm namespace, instead of anonymous namespace.

No modification of the original algorithm, therefore, it can utilize the original test scripts for testing.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D63703

Files:
  llvm/include/llvm/Analysis/StackSafetyAnalysis.h
  llvm/lib/Analysis/StackSafetyAnalysis.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63703.206162.patch
Type: text/x-patch
Size: 9904 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190624/9e8c811f/attachment.bin>


More information about the llvm-commits mailing list