|
LLVM
10.0.0
|
A remark type used for both emission and parsing. More...
#include "llvm/Remarks/Remark.h"
Public Member Functions | |
| Remark ()=default | |
| Remark (Remark &&)=default | |
| Remark & | operator= (Remark &&)=default |
| std::string | getArgsAsMsg () const |
| Return a message composed from the arguments as a string. More... | |
| Remark | clone () const |
| Clone this remark to explicitly ask for a copy. More... | |
Public Attributes | |
| Type | RemarkType = Type::Unknown |
| The type of the remark. More... | |
| StringRef | PassName |
| Name of the pass that triggers the emission of this remark. More... | |
| StringRef | RemarkName |
| Textual identifier for the remark (single-word, camel-case). More... | |
| StringRef | FunctionName |
| Mangled name of the function that triggers the emssion of this remark. More... | |
| Optional< RemarkLocation > | Loc |
| The location in the source file of the remark. More... | |
| Optional< uint64_t > | Hotness |
| If profile information is available, this is the number of times the corresponding code was executed in a profile instrumentation run. More... | |
| SmallVector< Argument, 5 > | Args |
| Arguments collected via the streaming interface. More... | |
|
default |
|
default |
|
inline |
Clone this remark to explicitly ask for a copy.
Definition at line 100 of file Remark.h.
References DEFINE_SIMPLE_CONVERSION_FUNCTIONS.
| std::string Remark::getArgsAsMsg | ( | ) | const |
Return a message composed from the arguments as a string.
Definition at line 21 of file Remark.cpp.
References Arg, Args, DEFINE_SIMPLE_CONVERSION_FUNCTIONS, and llvm::raw_string_ostream::str().
| SmallVector<Argument, 5> llvm::remarks::Remark::Args |
Arguments collected via the streaming interface.
Definition at line 90 of file Remark.h.
Referenced by llvm::remarks::BitstreamRemarkSerializerHelper::emitRemarkBlock(), getArgsAsMsg(), llvm::remarks::StringTable::internalize(), LLVMRemarkEntryGetFirstArg(), LLVMRemarkEntryGetNextArg(), llvm::yaml::MappingTraits< remarks::Remark * >::mapping(), llvm::remarks::operator<(), llvm::remarks::operator==(), and toRemarkLocation().
| StringRef llvm::remarks::Remark::FunctionName |
Mangled name of the function that triggers the emssion of this remark.
Definition at line 80 of file Remark.h.
Referenced by llvm::remarks::BitstreamRemarkSerializerHelper::emitRemarkBlock(), llvm::remarks::StringTable::internalize(), LLVMRemarkEntryGetFunctionName(), llvm::yaml::MappingTraits< remarks::Remark * >::mapping(), llvm::remarks::operator<(), llvm::remarks::operator==(), and toRemarkLocation().
| Optional<uint64_t> llvm::remarks::Remark::Hotness |
If profile information is available, this is the number of times the corresponding code was executed in a profile instrumentation run.
Definition at line 87 of file Remark.h.
Referenced by llvm::remarks::BitstreamRemarkSerializerHelper::emitRemarkBlock(), LLVMRemarkEntryGetHotness(), llvm::yaml::MappingTraits< remarks::Remark * >::mapping(), llvm::remarks::operator<(), llvm::remarks::operator==(), and toRemarkLocation().
| Optional<RemarkLocation> llvm::remarks::Remark::Loc |
The location in the source file of the remark.
Definition at line 83 of file Remark.h.
Referenced by llvm::remarks::BitstreamRemarkSerializerHelper::emitRemarkBlock(), llvm::remarks::StringTable::internalize(), LLVMRemarkArgGetDebugLoc(), LLVMRemarkEntryGetDebugLoc(), llvm::yaml::MappingTraits< remarks::Remark * >::mapping(), llvm::remarks::operator<(), llvm::remarks::operator==(), shouldKeepRemark(), and toRemarkLocation().
| StringRef llvm::remarks::Remark::PassName |
Name of the pass that triggers the emission of this remark.
Definition at line 72 of file Remark.h.
Referenced by llvm::remarks::BitstreamRemarkSerializerHelper::emitRemarkBlock(), llvm::remarks::StringTable::internalize(), LLVMRemarkEntryGetPassName(), llvm::yaml::MappingTraits< remarks::Remark * >::mapping(), llvm::remarks::operator<(), llvm::remarks::operator==(), and toRemarkLocation().
| StringRef llvm::remarks::Remark::RemarkName |
Textual identifier for the remark (single-word, camel-case).
Can be used by external tools reading the output file for remarks to identify the remark.
Definition at line 77 of file Remark.h.
Referenced by llvm::remarks::BitstreamRemarkSerializerHelper::emitRemarkBlock(), llvm::remarks::StringTable::internalize(), LLVMRemarkEntryGetRemarkName(), llvm::yaml::MappingTraits< remarks::Remark * >::mapping(), llvm::remarks::operator<(), llvm::remarks::operator==(), and toRemarkLocation().
| Type llvm::remarks::Remark::RemarkType = Type::Unknown |
The type of the remark.
Definition at line 69 of file Remark.h.
Referenced by llvm::remarks::BitstreamRemarkSerializerHelper::emitRemarkBlock(), llvm::yaml::MappingTraits< remarks::Remark * >::mapping(), llvm::remarks::operator<(), llvm::remarks::operator==(), and toRemarkLocation().
1.8.13