LLVM 20.0.0git
Classes | Namespaces | Functions
Format.h File Reference
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/DataTypes.h"
#include <cassert>
#include <cstdio>
#include <optional>
#include <tuple>
#include <utility>

Go to the source code of this file.

Classes

class  llvm::format_object_base
 This is a helper class used for handling formatted output. More...
 
struct  llvm::validate_format_parameters< Arg, Args... >
 
struct  llvm::validate_format_parameters<>
 
class  llvm::format_object< Ts >
 
class  llvm::FormattedString
 This is a helper class for left_justify, right_justify, and center_justify. More...
 
class  llvm::FormattedNumber
 This is a helper class used for format_hex() and format_decimal(). More...
 
class  llvm::FormattedBytes
 

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
 

Functions

template<typename... Ts>
format_object< Ts... > llvm::format (const char *Fmt, const Ts &... Vals)
 These are helper functions used to produce formatted output.
 
FormattedString llvm::left_justify (StringRef Str, unsigned Width)
 left_justify - append spaces after string so total output is Width characters.
 
FormattedString llvm::right_justify (StringRef Str, unsigned Width)
 right_justify - add spaces before string so total output is Width characters.
 
FormattedString llvm::center_justify (StringRef Str, unsigned Width)
 center_justify - add spaces before and after string so total output is Width characters.
 
FormattedNumber llvm::format_hex (uint64_t N, unsigned Width, bool Upper=false)
 format_hex - Output N as a fixed width hexadecimal.
 
FormattedNumber llvm::format_hex_no_prefix (uint64_t N, unsigned Width, bool Upper=false)
 format_hex_no_prefix - Output N as a fixed width hexadecimal.
 
FormattedNumber llvm::format_decimal (int64_t N, unsigned Width)
 format_decimal - Output N as a right justified, fixed-width decimal.
 
FormattedBytes llvm::format_bytes (ArrayRef< uint8_t > Bytes, std::optional< uint64_t > FirstByteOffset=std::nullopt, uint32_t NumPerLine=16, uint8_t ByteGroupSize=4, uint32_t IndentLevel=0, bool Upper=false)
 
FormattedBytes llvm::format_bytes_with_ascii (ArrayRef< uint8_t > Bytes, std::optional< uint64_t > FirstByteOffset=std::nullopt, uint32_t NumPerLine=16, uint8_t ByteGroupSize=4, uint32_t IndentLevel=0, bool Upper=false)