24 size_t Pos = (size_t)OS.
tell();
26 "header line exceeds max limit");
35 printLine(OS,
"/*===- TableGen'erated file ",
'-',
"*- C++ -*-===*\\");
39 size_t PSLen = Prefix.
size() + Suffix.
size();
46 }
while (Pos < Desc.
size());
48 printLine(OS, Prefix +
"Automatically generated file, do not edit!",
' ',
This class represents lattice values for constants.
LLVM_NODISCARD LLVM_ATTRIBUTE_ALWAYS_INLINE size_t size() const
size - Get the string size.
const size_t MAX_LINE_LEN
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
LLVM_NODISCARD LLVM_ATTRIBUTE_ALWAYS_INLINE StringRef substr(size_t Start, size_t N=npos) const
Return a reference to the substring from [Start, Start + N).
void emitSourceFileHeader(StringRef Desc, raw_ostream &OS)
emitSourceFileHeader - Output an LLVM style file header to the specified raw_ostream.
static void printLine(raw_ostream &OS, const Twine &Prefix, char Fill, StringRef Suffix)
std::string str() const
Return the twine contents as a std::string.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
uint64_t tell() const
tell - Return the current offset with the file.
This class implements an extremely fast bulk output stream that can only output to a stream...
StringRef - Represent a constant reference to a string, i.e.