Go to the documentation of this file.
9 #ifndef LLVM_SUPPORT_FORMATADAPTERS_H
10 #define LLVM_SUPPORT_FORMATADAPTERS_H
54 Adapter.format(Stream,
Style);
68 for (
size_t I = 0;
I < Count; ++
I) {
69 Adapter.format(Stream,
Style);
This is an optimization pass for GlobalISel generic memory operations.
void format(raw_ostream &S, StringRef Options)
detail::ErrorAdapter fmt_consume(Error &&Item)
void format(llvm::raw_ostream &Stream, StringRef Style) override
std::enable_if_t< uses_format_member< T >::value, T > build_format_adapter(T &&Item)
void consumeError(Error Err)
Consume a Error without doing anything.
void format(llvm::raw_ostream &Stream, StringRef Style) override
detail::PadAdapter< T > fmt_pad(T &&Item, size_t Left, size_t Right)
This class implements an extremely fast bulk output stream that can only output to a stream.
RepeatAdapter(T &&Item, size_t Count)
compiles ldr LCPI1_0 ldr ldr mov lsr tst moveq r1 ldr LCPI1_1 and r0 bx lr It would be better to do something like to fold the shift into the conditional move
detail::RepeatAdapter< T > fmt_repeat(T &&Item, size_t Count)
OutputIt move(R &&Range, OutputIt Out)
Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.
StringRef - Represent a constant reference to a string, i.e.
void format(llvm::raw_ostream &Stream, StringRef Style) override
Lightweight error class with error context and mandatory checking.
void format(llvm::raw_ostream &Stream, StringRef Style) override
raw_ostream & indent(unsigned NumSpaces)
indent - Insert 'NumSpaces' spaces.
ErrorAdapter(Error &&Item)
detail::AlignAdapter< T > fmt_align(T &&Item, AlignStyle Where, size_t Amount, char Fill=' ')
PadAdapter(T &&Item, size_t Left, size_t Right)
AlignAdapter(T &&Item, AlignStyle Where, size_t Amount, char Fill)