LLVM: include/llvm/TableGen/TableGenBackend.h Source File (original) (raw)
1
2
3
4
5
6
7
8
9
10
11
12
13#ifndef LLVM_TABLEGEN_TABLEGENBACKEND_H
14#define LLVM_TABLEGEN_TABLEGENBACKEND_H
15
20
21namespace llvm {
22
25
27
28
29
48
49
50
51
52
56
57
58
62 std::string S;
64 EmitterC(RK).run(OS);
65 return {S, {}};
66 }
67
68public:
70};
71
72
76 return EmitterC(RK).run(FilenamePrefix);
77 }
78
79public:
81};
82
83
84
87
88}
89
90
91
94
95}
96
97#endif
StringRef - Represent a constant reference to a string, i.e.
MultiFileOptClass(StringRef Name, StringRef Desc)
Definition TableGenBackend.h:80
OptClass(StringRef Name, StringRef Desc)
Definition TableGenBackend.h:69
This class implements an extremely fast bulk output stream that can only output to a stream.
A raw_ostream that writes to an std::string.
Definition TableGenBackend.h:26
bool ApplyCallback(const RecordKeeper &Records, TableGenOutputFiles &OutFiles, StringRef FilenamePrefix)
Apply callback for any command line option registered above.
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.
Represents the emitting function.
Definition TableGenBackend.h:30
FnT(MultiFileGeneratorType *Gen)
Definition TableGenBackend.h:41
bool operator==(const FnT &Other) const
Definition TableGenBackend.h:43
void(const RecordKeeper &Records, raw_ostream &OS) SingleFileGeneratorType
Definition TableGenBackend.h:31
FnT(SingleFileGeneratorType *Gen)
Definition TableGenBackend.h:40
TableGenOutputFiles( StringRef FilenamePrefix, const RecordKeeper &Records) MultiFileGeneratorType
Definition TableGenBackend.h:33
MultiFileGeneratorType * MultiFileGenerator
Definition TableGenBackend.h:37
SingleFileGeneratorType * SingleFileGenerator
Definition TableGenBackend.h:36
Opt(StringRef Name, FnT CB, StringRef Desc, bool ByDefault=false)