[PATCH] D119996: [safestack] Support safestack in stack size diagnostics
Paul Kirth via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 4 17:41:55 PST 2022
paulkirth created this revision.
Herald added a subscriber: hiraditya.
paulkirth updated this revision to Diff 409705.
paulkirth added a comment.
paulkirth updated this revision to Diff 409797.
tstellar added a subscriber: serge-sans-paille.
paulkirth edited the summary of this revision.
paulkirth added reviewers: phosek, mcgrathr, tstellar.
Herald added a project: All.
paulkirth published this revision for review.
Herald added projects: clang, LLVM.
Herald added subscribers: llvm-commits, cfe-commits.
Fix ARM test breakage
paulkirth added a comment.
Actually fix the ARM test
Current stack size diagnostics ignore the size of the unsafe stack.
This patch attaches the size of the static portion of the unsafe stack
to the function as metadata, which can be used by the backend to emit
diagnostics regarding stack usage.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D119996
Files:
clang/test/Frontend/stack-usage-safestack.c
llvm/include/llvm/CodeGen/MachineFrameInfo.h
llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
llvm/lib/CodeGen/MachineFunction.cpp
llvm/lib/CodeGen/PrologEpilogInserter.cpp
llvm/lib/CodeGen/SafeStack.cpp
llvm/test/Transforms/SafeStack/ARM/debug.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119996.409797.patch
Type: text/x-patch
Size: 6326 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220305/1c8a9918/attachment.bin>
More information about the cfe-commits
mailing list