Internal helper to stringify arguments into a C++ call format.
More...
#include "lib/CppInterOp/Tracing.h"
|
| | ReproBuffer () |
| |
| void | append (Cpp::DeclRef h) |
| |
| void | append (Cpp::TypeRef h) |
| |
| void | append (Cpp::FuncRef h) |
| |
| void | append (Cpp::ObjectRef h) |
| |
| void | append (Cpp::InterpRef h) |
| |
| void | append (Cpp::ConstDeclRef h) |
| |
| void | append (Cpp::ConstTypeRef h) |
| |
| void | append (Cpp::ConstFuncRef h) |
| |
| void | append (const void *p) |
| |
| void | appendRaw (std::string_view s) |
| |
| void | append (const char *s) |
| |
| void | append (const std::string &s) |
| |
| void | append (bool v) |
| |
| void | append (int v) |
| |
| void | append (unsigned v) |
| |
| void | append (long v) |
| |
| void | append (unsigned long v) |
| |
| void | append (long long v) |
| |
| void | append (unsigned long long v) |
| |
| void | append (double d) |
| |
| void | append (float f) |
| |
| template<typename T > |
| void | append (const std::vector< T > &V) |
| |
| void | append (const Cpp::TemplateArgInfo &tai) |
| |
| template<typename T , std::enable_if_t< std::is_enum_v< T >, int > = 0> |
| void | append (T v) |
| |
| template<typename T , std::enable_if_t<!std::is_enum_v< T > &&!std::is_pointer_v< T >, int > = 0> |
| void | append (const T &) |
| |
| template<typename... Args> |
| void | format (llvm::ArrayRef< unsigned > OutIndices, Args &&... args) |
| | Format a comma-separated argument list.
|
| |
|
| llvm::SmallString< 128 > | Buffer |
| |
| llvm::raw_svector_ostream | OS |
| |
Internal helper to stringify arguments into a C++ call format.
Definition at line 307 of file Tracing.h.
◆ ReproBuffer()
| CppInterOp::Tracing::ReproBuffer::ReproBuffer |
( |
| ) |
|
|
inline |
◆ append() [1/24]
| void CppInterOp::Tracing::ReproBuffer::append |
( |
bool |
v | ) |
|
|
inline |
◆ append() [2/24]
| void CppInterOp::Tracing::ReproBuffer::append |
( |
const char * |
s | ) |
|
|
inline |
◆ append() [3/24]
| void CppInterOp::Tracing::ReproBuffer::append |
( |
const Cpp::TemplateArgInfo & |
tai | ) |
|
|
inline |
◆ append() [4/24]
| void CppInterOp::Tracing::ReproBuffer::append |
( |
const std::string & |
s | ) |
|
|
inline |
◆ append() [5/24]
template<typename T >
| void CppInterOp::Tracing::ReproBuffer::append |
( |
const std::vector< T > & |
V | ) |
|
|
inline |
◆ append() [6/24]
template<typename T , std::enable_if_t<!std::is_enum_v< T > &&!std::is_pointer_v< T >, int > = 0>
| void CppInterOp::Tracing::ReproBuffer::append |
( |
const T & |
| ) |
|
|
inline |
◆ append() [7/24]
| void CppInterOp::Tracing::ReproBuffer::append |
( |
const void * |
p | ) |
|
|
inline |
◆ append() [8/24]
| void CppInterOp::Tracing::ReproBuffer::append |
( |
Cpp::ConstDeclRef |
h | ) |
|
|
inline |
◆ append() [9/24]
| void CppInterOp::Tracing::ReproBuffer::append |
( |
Cpp::ConstFuncRef |
h | ) |
|
|
inline |
◆ append() [10/24]
| void CppInterOp::Tracing::ReproBuffer::append |
( |
Cpp::ConstTypeRef |
h | ) |
|
|
inline |
◆ append() [11/24]
| void CppInterOp::Tracing::ReproBuffer::append |
( |
Cpp::DeclRef |
h | ) |
|
|
inline |
◆ append() [12/24]
| void CppInterOp::Tracing::ReproBuffer::append |
( |
Cpp::FuncRef |
h | ) |
|
|
inline |
◆ append() [13/24]
| void CppInterOp::Tracing::ReproBuffer::append |
( |
Cpp::InterpRef |
h | ) |
|
|
inline |
◆ append() [14/24]
| void CppInterOp::Tracing::ReproBuffer::append |
( |
Cpp::ObjectRef |
h | ) |
|
|
inline |
◆ append() [15/24]
| void CppInterOp::Tracing::ReproBuffer::append |
( |
Cpp::TypeRef |
h | ) |
|
|
inline |
◆ append() [16/24]
| void CppInterOp::Tracing::ReproBuffer::append |
( |
double |
d | ) |
|
|
inline |
◆ append() [17/24]
| void CppInterOp::Tracing::ReproBuffer::append |
( |
float |
f | ) |
|
|
inline |
◆ append() [18/24]
| void CppInterOp::Tracing::ReproBuffer::append |
( |
int |
v | ) |
|
|
inline |
◆ append() [19/24]
| void CppInterOp::Tracing::ReproBuffer::append |
( |
long long |
v | ) |
|
|
inline |
◆ append() [20/24]
| void CppInterOp::Tracing::ReproBuffer::append |
( |
long |
v | ) |
|
|
inline |
◆ append() [21/24]
template<typename T , std::enable_if_t< std::is_enum_v< T >, int > = 0>
| void CppInterOp::Tracing::ReproBuffer::append |
( |
T |
v | ) |
|
|
inline |
◆ append() [22/24]
| void CppInterOp::Tracing::ReproBuffer::append |
( |
unsigned long long |
v | ) |
|
|
inline |
◆ append() [23/24]
| void CppInterOp::Tracing::ReproBuffer::append |
( |
unsigned long |
v | ) |
|
|
inline |
◆ append() [24/24]
| void CppInterOp::Tracing::ReproBuffer::append |
( |
unsigned |
v | ) |
|
|
inline |
◆ appendRaw()
| void CppInterOp::Tracing::ReproBuffer::appendRaw |
( |
std::string_view |
s | ) |
|
|
inline |
◆ format()
template<typename... Args>
| void CppInterOp::Tracing::ReproBuffer::format |
( |
llvm::ArrayRef< unsigned > |
OutIndices, |
|
|
Args &&... |
args |
|
) |
| |
|
inline |
Format a comma-separated argument list.
Pointer-container OUTs emit _outN (next index from OutIndices); scalar pointer OUTs emit nullptr (the replay does not consume the value); non-pointer containers are skipped, matching the legacy rendering.
Definition at line 456 of file Tracing.h.
References append(), and OS.
Referenced by CppInterOp::Tracing::TraceRegion::TraceRegion().
◆ parseEnumName()
| static std::string CppInterOp::Tracing::ReproBuffer::parseEnumName |
( |
const char * |
sig | ) |
|
|
inlinestatic |
◆ Buffer
| llvm::SmallString<128> CppInterOp::Tracing::ReproBuffer::Buffer |
◆ OS
| llvm::raw_svector_ostream CppInterOp::Tracing::ReproBuffer::OS |
Definition at line 309 of file Tracing.h.
Referenced by append(), append(), append(), append(), append(), append(), append(), append(), append(), append(), append(), append(), append(), append(), appendRaw(), and format().
The documentation for this struct was generated from the following file: