LLVM 20.0.0git
|
Diagnostic information for stack size etc. More...
#include "llvm/IR/DiagnosticInfo.h"
Public Member Functions | |
DiagnosticInfoResourceLimit (const Function &Fn, const char *ResourceName, uint64_t ResourceSize, uint64_t ResourceLimit, DiagnosticSeverity Severity=DS_Warning, DiagnosticKind Kind=DK_ResourceLimit) | |
The function that is concerned by this stack size diagnostic. | |
const Function & | getFunction () const |
const char * | getResourceName () const |
uint64_t | getResourceSize () const |
uint64_t | getResourceLimit () const |
void | print (DiagnosticPrinter &DP) const override |
Public Member Functions inherited from llvm::DiagnosticInfoWithLocationBase | |
DiagnosticInfoWithLocationBase (enum DiagnosticKind Kind, enum DiagnosticSeverity Severity, const Function &Fn, const DiagnosticLocation &Loc) | |
Fn is the function where the diagnostic is being emitted. | |
bool | isLocationAvailable () const |
Return true if location information is available for this diagnostic. | |
std::string | getLocationStr () const |
Return a string with the location information for this diagnostic in the format "file:line:col". | |
void | getLocation (StringRef &RelativePath, unsigned &Line, unsigned &Column) const |
Return location information for this diagnostic in three parts: the relative source file path, line number and column. | |
std::string | getAbsolutePath () const |
Return the absolute path tot the file. | |
const Function & | getFunction () const |
DiagnosticLocation | getLocation () const |
Public Member Functions inherited from llvm::DiagnosticInfo | |
DiagnosticInfo (int Kind, DiagnosticSeverity Severity) | |
virtual | ~DiagnosticInfo ()=default |
int | getKind () const |
DiagnosticSeverity | getSeverity () const |
virtual void | print (DiagnosticPrinter &DP) const =0 |
Print using the given DP a user-friendly message. | |
Static Public Member Functions | |
static bool | classof (const DiagnosticInfo *DI) |
Diagnostic information for stack size etc.
reporting. This is basically a function and a size.
Definition at line 431 of file DiagnosticInfo.h.
DiagnosticInfoResourceLimit::DiagnosticInfoResourceLimit | ( | const Function & | Fn, |
const char * | ResourceName, | ||
uint64_t | ResourceSize, | ||
uint64_t | ResourceLimit, | ||
DiagnosticSeverity | Severity = DS_Warning , |
||
DiagnosticKind | Kind = DK_ResourceLimit |
||
) |
The
function that is concerned by this stack size diagnostic.
The
computed stack size.
Definition at line 101 of file DiagnosticInfo.cpp.
|
inlinestatic |
Definition at line 461 of file DiagnosticInfo.h.
References llvm::DK_ResourceLimit, llvm::DK_StackSize, and llvm::DiagnosticInfo::getKind().
Definition at line 453 of file DiagnosticInfo.h.
Referenced by print().
|
inline |
Definition at line 456 of file DiagnosticInfo.h.
Referenced by llvm::DiagnosticInfoStackSize::getStackLimit(), and print().
Definition at line 454 of file DiagnosticInfo.h.
Referenced by print().
|
inline |
Definition at line 455 of file DiagnosticInfo.h.
Referenced by llvm::DiagnosticInfoStackSize::getStackSize(), and print().
|
overridevirtual |
Implements llvm::DiagnosticInfo.
Definition at line 108 of file DiagnosticInfo.cpp.
References getFunction(), llvm::DiagnosticInfoWithLocationBase::getLocationStr(), getResourceLimit(), getResourceName(), and getResourceSize().