13#ifndef LLVM_TABLEGEN_CODEGENHELPERS_H
14#define LLVM_TABLEGEN_CODEGENHELPERS_H
28 OS <<
"#ifdef " << Name <<
"\n"
29 <<
"#undef " << Name <<
"\n\n";
42 : Name(Name.str()), OS(OS) {
43 OS <<
"#ifndef " << Name <<
"\n"
44 <<
"#define " << Name <<
"\n\n";
59 : Name(trim(NameUntrimmed).str()), OS(OS) {
61 OS <<
"namespace " << Name <<
" {\n\n";
68 if (!Closed && !Name.empty())
69 OS <<
"\n} // namespace " << Name <<
"\n";
82 Name.consume_front(
"::");
IfDefEmitter(raw_ostream &OS, StringRef Name)
IncludeGuardEmitter(raw_ostream &OS, StringRef Name)
NamespaceEmitter(raw_ostream &OS, StringRef NameUntrimmed)
StringRef - Represent a constant reference to a string, i.e.
This class implements an extremely fast bulk output stream that can only output to a stream.
This is an optimization pass for GlobalISel generic memory operations.