DiagnosticInfo: Report function location for resource limits
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 27 Oct 2022 23:29:26 +0000 (16:29 -0700)
committerMatt Arsenault <arsenm2@gmail.com>
Sat, 29 Oct 2022 04:42:57 +0000 (21:42 -0700)
commitc62745e1678e26185dc93ea30f858c91c03323f9
tree021e9c52d511dfdb593b6dfe89e44d56fd3f0bc5
parent756ee72a845049ea8dd2281645311967d6aae702
DiagnosticInfo: Report function location for resource limits

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.
clang/test/Misc/backend-resource-limit-diagnostics.cl
clang/test/Misc/backend-resource-limit-diagnostics.hip
clang/test/Misc/backend-stack-frame-diagnostics-fallback.cpp
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