|
LLDB mainline
|
#include "lldb/DataFormatters/FormatterBytecode.h"#include "lldb/Symbol/CompilerType.h"#include "lldb/Utility/LLDBLog.h"#include "lldb/ValueObject/ValueObject.h"#include "lldb/ValueObject/ValueObjectConstResult.h"#include "lldb/lldb-forward.h"#include "llvm/ADT/APSInt.h"#include "llvm/ADT/SmallPtrSet.h"#include "llvm/ADT/SmallVector.h"#include "llvm/ADT/StringExtras.h"#include "llvm/Support/DataExtractor.h"#include "llvm/Support/Error.h"#include "llvm/Support/ErrorExtras.h"#include "llvm/Support/Format.h"#include "llvm/Support/FormatProviders.h"#include "llvm/Support/FormatVariadicDetails.h"#include <type_traits>#include "lldb/DataFormatters/FormatterBytecode.def"Go to the source code of this file.
Namespaces | |
| namespace | lldb_private |
| A class that represents a running process on the host machine. | |
| namespace | lldb_private::FormatterBytecode |
Macros | |
| #define | DEFINE_OPCODE(OP, MNEMONIC, NAME) |
| #define | DEFINE_SELECTOR(ID, NAME) |
| #define | DEFINE_SIGNATURE(ID, NAME) |
| #define | TYPE_CHECK(...) |
| #define | BINOP_IMPL(OP, CHECK_ZERO) |
| #define | BINOP(OP) |
| #define | BINOP_CHECKZERO(OP) |
| #define | CMPOP(OP) |
| #define | BITOP(OP) |
| #define | SHIFTOP(OP, LEFT) |
| #define | POP_VALOBJ(VALOBJ) |
Typedefs | |
| template<typename T> | |
| using | lldb_private::FormatterBytecode::EnableIfSigned |
| template<typename T> | |
| using | lldb_private::FormatterBytecode::EnableIfUnsigned |
Functions | |
| std::string | lldb_private::toString (FormatterBytecode::OpCodes op) |
| std::string | lldb_private::toString (FormatterBytecode::Selectors sel) |
| std::string | lldb_private::toString (FormatterBytecode::Signatures sig) |
| std::string | lldb_private::toString (const FormatterBytecode::DataStack &data) |
| static llvm::Expected< std::string > | lldb_private::FormatterBytecode::SanitizeFormatString (llvm::StringRef fmt) |
| Check a format string, and remove the layout and options of each replacement. | |
| static llvm::Error | lldb_private::FormatterBytecode::FormatImpl (DataStack &data, uint32_t version) |
| Implement the @format function. | |
| static llvm::Error | lldb_private::FormatterBytecode::TypeCheck (llvm::ArrayRef< DataStackElement > data, DataType type) |
| static llvm::Error | lldb_private::FormatterBytecode::TypeCheck (llvm::ArrayRef< DataStackElement > data, DataType type1, DataType type2) |
| static llvm::Error | lldb_private::FormatterBytecode::TypeCheck (llvm::ArrayRef< DataStackElement > data, DataType type1, DataType type2, DataType type3) |
| static llvm::Error | lldb_private::FormatterBytecode::TypeCheck (llvm::ArrayRef< DataStackElement > data, DataType type1, DataType type2, DataType type3, DataType type4) |
| template<typename T> | |
| static DataStackElement | lldb_private::FormatterBytecode::WrapAPSIntResult (T result, unsigned bit_width, bool is_unsigned) |
| Wrap the result of a binary operator applied to two APSInts back into a DataStackElement. | |
| static bool | lldb_private::FormatterBytecode::Reaches (const Dictionary *from, const Dictionary *target) |
| Returns true if target is transitively reachable via from. | |
| template<typename T, EnableIfSigned< T > = 0> | |
| static DataStackElement | lldb_private::FormatterBytecode::MakeInt (T value, uint32_t version) |
| template<typename T, EnableIfUnsigned< T > = 0> | |
| static DataStackElement | lldb_private::FormatterBytecode::MakeInt (T value, uint32_t version) |
| llvm::Error | lldb_private::FormatterBytecode::Interpret (ControlStack &control, DataStack &data, Signatures sig, uint32_t version) |
Interpret the bytecode on control. | |
| #define BINOP | ( | OP | ) |
Referenced by lldb_private::FormatterBytecode::Interpret().
| #define BINOP_CHECKZERO | ( | OP | ) |
Referenced by lldb_private::FormatterBytecode::Interpret().
| #define BINOP_IMPL | ( | OP, | |
| CHECK_ZERO ) |
| #define BITOP | ( | OP | ) |
Referenced by lldb_private::FormatterBytecode::Interpret().
| #define CMPOP | ( | OP | ) |
Referenced by lldb_private::FormatterBytecode::Interpret().
| #define DEFINE_OPCODE | ( | OP, | |
| MNEMONIC, | |||
| NAME ) |
| #define DEFINE_SELECTOR | ( | ID, | |
| NAME ) |
| #define POP_VALOBJ | ( | VALOBJ | ) |
Referenced by lldb_private::FormatterBytecode::Interpret().
| #define SHIFTOP | ( | OP, | |
| LEFT ) |
Referenced by lldb_private::FormatterBytecode::Interpret().
| #define TYPE_CHECK | ( | ... | ) |
Referenced by lldb_private::FormatterBytecode::Interpret().