83 size_t Pos = (size_t)OS.
tell();
85 "header line exceeds max limit");
95 printLine(OS,
"/*===- TableGen'erated file ",
'-',
"*- C++ -*-===*\\");
99 size_t PSLen = Prefix.size() + Suffix.
size();
106 }
while (Pos <
Desc.size());
108 printLine(OS, Prefix +
"Automatically generated file, do not edit!",
' ',
112 if (!
Record.getInputFilename().empty())
assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")
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...
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.
A raw_ostream that writes to an std::string.
bool ApplyCallback(const RecordKeeper &Records, TableGenOutputFiles &OutFiles, StringRef FilenamePrefix)
Apply callback for any command line option registered above.
LLVM_ABI StringRef filename(StringRef path LLVM_LIFETIME_BOUND, 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)
Represents the emitting function.
MultiFileGeneratorType * MultiFileGenerator
SingleFileGeneratorType * SingleFileGenerator
Opt(StringRef Name, FnT CB, StringRef Desc, bool ByDefault=false)
void setValue(const DT &)