24using namespace TableGen::Emitter;
74 size_t Pos = (size_t)
OS.
tell();
76 "header line exceeds max limit");
86 printLine(
OS,
"/*===- TableGen'erated file ",
'-',
"*- C++ -*-===*\\");
90 size_t PSLen = Prefix.size() + Suffix.
size();
97 }
while (Pos <
Desc.size());
99 printLine(
OS, Prefix +
"Automatically generated file, do not edit!",
' ',
103 if (!
Record.getInputFilename().empty())
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
const size_t MAX_LINE_LEN
static ManagedStatic< cl::opt< FnT >, OptCreatorT > CallbackFunction
static void printLine(raw_ostream &OS, const Twine &Prefix, char Fill, StringRef Suffix)
ManagedStatic - This transparently changes the behavior of global statics to be lazily constructed on...
StringRef - Represent a constant reference to a string, i.e.
constexpr size_t size() const
size - Get the string size.
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
An efficient, type-erasing, non-owning reference to a callable.
This class implements an extremely fast bulk output stream that can only output to a stream.
uint64_t tell() const
tell - Return the current offset with the file.
bool ApplyCallback(const RecordKeeper &Records, raw_ostream &OS)
Apply callback for any command line option registered above.
StringRef filename(StringRef path, Style style=Style::native)
Get filename.
This is an optimization pass for GlobalISel generic memory operations.
void emitSourceFileHeader(StringRef Desc, raw_ostream &OS, const RecordKeeper &Record=RecordKeeper())
emitSourceFileHeader - Output an LLVM style file header to the specified raw_ostream.
OptionValue< FnT > & operator=(const FnT &V)
OptionValue(const FnT &V)
Description of the encoding of one expression Op.
Opt(StringRef Name, FnT CB, StringRef Desc, bool ByDefault=false)
void setValue(const DT &)