[PATCH] D136954: DiagnosticInfo: Report function location for resource limits

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 28 07:53:00 PDT 2022


arsenm created this revision.
arsenm added reviewers: anemet, paulkirth, MaskRay, craig.topper, aeubanks, nickdesaulniers.
Herald added subscribers: kosarev, StephenFan, kerbowa, pengfei, hiraditya, jvesely.
Herald added a project: All.
arsenm requested review of this revision.
Herald added a subscriber: wdng.
Herald added a project: LLVM.

We have some odd redundancy where clang specially handles
the stack size case. If clang prints it, the source location is first
followed by "warning". The backend diagnostic, as printed by other tools
puts "warning" first.


https://reviews.llvm.org/D136954

Files:
  clang/test/Misc/backend-resource-limit-diagnostics.cl
  clang/test/Misc/backend-resource-limit-diagnostics.hip
  llvm/include/llvm/IR/DiagnosticInfo.h
  llvm/lib/IR/DiagnosticInfo.cpp
  llvm/test/CodeGen/AMDGPU/exceed-max-sgprs.ll
  llvm/test/CodeGen/AMDGPU/stack-size-overflow.ll
  llvm/test/CodeGen/ARM/warn-stack.ll
  llvm/test/CodeGen/X86/warn-stack.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136954.471551.patch
Type: text/x-patch
Size: 12707 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221028/a94f38e3/attachment.bin>


More information about the llvm-commits mailing list