[all-commits] [llvm/llvm-project] 61e36e: [safestack] Support safestack in stack size diagno...

Paul Kirth via All-commits all-commits at lists.llvm.org
Wed Apr 20 11:29:56 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 61e36e87df1a4ad11f752d66c90e124101fe4023
  Author: Paul Kirth <paulkirth at google.com>
  Date:   2022-04-20 (Wed, 20 Apr 2022)

  Changed paths:
    A clang/test/Frontend/stack-usage-safestack.c
    M llvm/include/llvm/CodeGen/MachineFrameInfo.h
    M llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
    M llvm/lib/CodeGen/MachineFunction.cpp
    M llvm/lib/CodeGen/PrologEpilogInserter.cpp
    M llvm/lib/CodeGen/SafeStack.cpp
    M llvm/test/CodeGen/X86/warn-stack.ll
    M llvm/test/Transforms/SafeStack/ARM/debug.ll

  Log Message:
  [safestack] Support safestack in stack size diagnostics

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.

Reviewed By: phosek, mcgrathr

Differential Revision: https://reviews.llvm.org/D119996

More information about the All-commits mailing list