34 size_t Pos = (size_t)
OS.
tell();
36 "header line exceeds max limit");
46 printLine(
OS,
"/*===- TableGen'erated file ",
'-',
"*- C++ -*-===*\\");
50 size_t PSLen = Prefix.size() + Suffix.
size();
57 }
while (Pos <
Desc.size());
59 printLine(
OS, Prefix +
"Automatically generated file, do not edit!",
' ',
63 if (!
Record.getInputFilename().empty())
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
const size_t MAX_LINE_LEN
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.
ManagedStatic< cl::opt< FnT >, OptCreatorT > Action
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.
Description of the encoding of one expression Op.