[PATCH] D135488: [codegen][WIP] Display stack layouts in console

Paul Kirth via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 11 08:24:44 PDT 2022


paulkirth added inline comments.


================
Comment at: clang/test/Frontend/frame-diags.c:1
+// TODO: This is not really a functional test yet, and needs to be rewritten. 
+// currently its just a copy of backend-diagnostics.c, and all of the run/test 
----------------
probinson wrote:
> I know this is a draft and has a TODO but:
> Something like this could go into cross-project-tests, but an llvm change should have an llvm test, not a clang test.  You could use clang to generate IR once, and keep instructions for regenerating the IR as comments in the test file.  We do this a lot for debug info tests.
I totally agree.  I planned to follow the existing examples for ‘frame-larger-than’ with tests in llvm on behavior etc., and checks for the diagnostics being plumbed correctly in clang. 


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D135488/new/

https://reviews.llvm.org/D135488



More information about the llvm-commits mailing list