|
10 | 10 | #define MLIR_TABLEGEN_GENINFO_H_ |
11 | 11 |
|
12 | 12 | #include "mlir/Support/LLVM.h" |
| 13 | + |
13 | 14 | #include "llvm/ADT/StringRef.h" |
14 | | -#include "llvm/Support/CommandLine.h" |
| 15 | + |
15 | 16 | #include <functional> |
16 | 17 | #include <utility> |
17 | 18 |
|
@@ -70,87 +71,6 @@ struct GenRegistration { |
70 | 71 | const GenFunction &function); |
71 | 72 | }; |
72 | 73 |
|
73 | | -namespace tblgen { |
74 | | -bool emitBCRW(const llvm::RecordKeeper &records, raw_ostream &os, |
75 | | - const std::string &selectedBcDialect); |
76 | | - |
77 | | -bool emitOpDecls(const llvm::RecordKeeper &recordKeeper, raw_ostream &os, |
78 | | - const std::string &opIncFilter, const std::string &opExcFilter, |
79 | | - unsigned opShardCount, bool formatErrorIsFatal); |
80 | | -bool emitOpDefs(const llvm::RecordKeeper &recordKeeper, raw_ostream &os, |
81 | | - const std::string &opIncFilter, const std::string &opExcFilter, |
82 | | - unsigned opShardCount, bool formatErrorIsFatal); |
83 | | - |
84 | | -bool emitDialectDecls(const llvm::RecordKeeper &recordKeeper, raw_ostream &os, |
85 | | - const std::string &selectedDialect); |
86 | | -bool emitDialectDefs(const llvm::RecordKeeper &recordKeeper, raw_ostream &os, |
87 | | - const std::string &selectedDialect); |
88 | | -bool emitDirectiveDecls(const llvm::RecordKeeper &recordKeeper, |
89 | | - llvm::StringRef dialect, raw_ostream &os); |
90 | | - |
91 | | -bool emitPythonEnums(const llvm::RecordKeeper &recordKeeper, raw_ostream &os); |
92 | | -bool emitAllPythonOps(const llvm::RecordKeeper &records, raw_ostream &os, |
93 | | - const std::string &clDialectName, |
94 | | - const std::string &clDialectExtensionName); |
95 | | - |
96 | | -bool emitEnumDecls(const llvm::RecordKeeper &recordKeeper, raw_ostream &os); |
97 | | -bool emitEnumDefs(const llvm::RecordKeeper &recordKeeper, raw_ostream &os); |
98 | | - |
99 | | -bool emitLLVMBuilders(const llvm::RecordKeeper &recordKeeper, raw_ostream &os); |
100 | | -bool emitLLVMOpMLIRBuilders(const llvm::RecordKeeper &recordKeeper, |
101 | | - raw_ostream &os); |
102 | | -bool emitLLVMIntrMLIRBuilders(const llvm::RecordKeeper &recordKeeper, |
103 | | - raw_ostream &os); |
104 | | -template <bool ConvertTo> |
105 | | -bool emitLLVMEnumConversionDefs(const llvm::RecordKeeper &recordKeeper, |
106 | | - raw_ostream &os); |
107 | | -bool emitLLVMConvertibleIntrinsics(const llvm::RecordKeeper &recordKeeper, |
108 | | - raw_ostream &os); |
109 | | -bool emitLLVMIntrinsics(const llvm::RecordKeeper &records, |
110 | | - llvm::raw_ostream &os, const std::string &nameFilter, |
111 | | - const std::string &accessGroupRegexp, |
112 | | - const std::string &aliasAnalysisRegexp, |
113 | | - const std::string &opBaseClass); |
114 | | - |
115 | | -void emitAttrOrTypeDefDoc(const llvm::RecordKeeper &recordKeeper, |
116 | | - raw_ostream &os, StringRef recordTypeName); |
117 | | -void emitOpDoc(const llvm::RecordKeeper &recordKeeper, raw_ostream &os, |
118 | | - const std::string &emitOpDoc, bool allowHugoSpecificFeatures, |
119 | | - const std::string &opIncFilter, const std::string &opExcFilter); |
120 | | -bool emitDialectDoc(const llvm::RecordKeeper &recordKeeper, raw_ostream &os, |
121 | | - const std::string &selectedDialect, |
122 | | - const std::string &opIncFilter, |
123 | | - const std::string &opExcFilter, |
124 | | - const std::string &stripPrefix, |
125 | | - bool allowHugoSpecificFeatures); |
126 | | -void emitDocs(const llvm::RecordKeeper &recordKeeper, raw_ostream &os); |
127 | | - |
128 | | -bool emitCAPIHeader(const llvm::RecordKeeper &records, raw_ostream &os, |
129 | | - std::string groupPrefix); |
130 | | -bool emitCAPIImpl(const llvm::RecordKeeper &records, raw_ostream &os, |
131 | | - std::string groupPrefix); |
132 | | -void emitPasses(const llvm::RecordKeeper &recordKeeper, raw_ostream &os, |
133 | | - const std::string &opIncFilter, const std::string &groupName); |
134 | | -void emitRewriters(const llvm::RecordKeeper &recordKeeper, raw_ostream &os); |
135 | | - |
136 | | -bool emitSPIRVInterfaceDefs(const llvm::RecordKeeper &recordKeeper, |
137 | | - raw_ostream &os); |
138 | | -bool emitSPIRVInterfaceDecls(const llvm::RecordKeeper &recordKeeper, |
139 | | - raw_ostream &os); |
140 | | -bool emitSPIRVEnumDecls(const llvm::RecordKeeper &recordKeeper, |
141 | | - raw_ostream &os); |
142 | | -bool emitSPIRVEnumDefs(const llvm::RecordKeeper &recordKeeper, raw_ostream &os); |
143 | | -bool emitSPIRVCapabilityImplication(const llvm::RecordKeeper &recordKeeper, |
144 | | - raw_ostream &os); |
145 | | -bool emitSPIRVSerializationFns(const llvm::RecordKeeper &recordKeeper, |
146 | | - raw_ostream &os); |
147 | | -bool emitSPIRVAttrUtils(const llvm::RecordKeeper &recordKeeper, |
148 | | - raw_ostream &os); |
149 | | -bool emitSPIRVAvailabilityImpl(const llvm::RecordKeeper &recordKeeper, |
150 | | - raw_ostream &os); |
151 | | - |
152 | | -} // namespace tblgen |
153 | | - |
154 | 74 | } // namespace mlir |
155 | 75 |
|
156 | 76 | #endif // MLIR_TABLEGEN_GENINFO_H_ |
0 commit comments