#include "llvm/Support/NativeFormatting.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/Support/Format.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/raw_ostream.h"
#include <cmath>
#if defined(_WIN32) && !defined(__MINGW32__)
#include <float.h>
#endif
usingnamespacellvm;
template<typename T, std::size_t N>
static int format_to_buffer(T Value, char (&Buffer)[N]) { … }
static void writeWithCommas(raw_ostream &S, ArrayRef<char> Buffer) { … }
template <typename T>
static void write_unsigned_impl(raw_ostream &S, T N, size_t MinDigits,
IntegerStyle Style, bool IsNegative) { … }
template <typename T>
static void write_unsigned(raw_ostream &S, T N, size_t MinDigits,
IntegerStyle Style, bool IsNegative = false) { … }
template <typename T>
static void write_signed(raw_ostream &S, T N, size_t MinDigits,
IntegerStyle Style) { … }
void llvm::write_integer(raw_ostream &S, unsigned int N, size_t MinDigits,
IntegerStyle Style) { … }
void llvm::write_integer(raw_ostream &S, int N, size_t MinDigits,
IntegerStyle Style) { … }
void llvm::write_integer(raw_ostream &S, unsigned long N, size_t MinDigits,
IntegerStyle Style) { … }
void llvm::write_integer(raw_ostream &S, long N, size_t MinDigits,
IntegerStyle Style) { … }
void llvm::write_integer(raw_ostream &S, unsigned long long N, size_t MinDigits,
IntegerStyle Style) { … }
void llvm::write_integer(raw_ostream &S, long long N, size_t MinDigits,
IntegerStyle Style) { … }
void llvm::write_hex(raw_ostream &S, uint64_t N, HexPrintStyle Style,
std::optional<size_t> Width) { … }
void llvm::write_double(raw_ostream &S, double N, FloatStyle Style,
std::optional<size_t> Precision) { … }
bool llvm::isPrefixedHexStyle(HexPrintStyle S) { … }
size_t llvm::getDefaultPrecision(FloatStyle Style) { … }