Lines Matching refs:OS
16 raw_ostream &OS, ArrayRef<RuleMatcher> Rules) { in emitSubtargetFeatureBitsetImpl() argument
18 OS, &HwModes); in emitSubtargetFeatureBitsetImpl()
36 ModuleFeatures, OS, "", &HwModes); in emitSubtargetFeatureBitsetImpl()
38 OS << "void " << getClassName() in emitSubtargetFeatureBitsetImpl()
48 FunctionFeatures, OS, "const MachineFunction *MF"); in emitSubtargetFeatureBitsetImpl()
76 OS << "// Feature bitsets.\n" in emitSubtargetFeatureBitsetImpl()
82 OS << " " in emitSubtargetFeatureBitsetImpl()
86 OS << "};\n" in emitSubtargetFeatureBitsetImpl()
92 OS << " {"; in emitSubtargetFeatureBitsetImpl()
96 OS << I->second.getEnumBitName() << ", "; in emitSubtargetFeatureBitsetImpl()
100 OS << "Feature_HwMode" << FeatureBitset.second << "Bit, "; in emitSubtargetFeatureBitsetImpl()
102 OS << "},\n"; in emitSubtargetFeatureBitsetImpl()
104 OS << "};\n\n"; in emitSubtargetFeatureBitsetImpl()
108 raw_ostream &OS, ArrayRef<Record *> ComplexOperandMatchers) { in emitComplexPredicates() argument
110 OS << "// ComplexPattern predicates.\n" in emitComplexPredicates()
114 OS << " GICP_" << Record->getName() << ",\n"; in emitComplexPredicates()
115 OS << "};\n" in emitComplexPredicates()
118 OS << getClassName() << "::ComplexMatcherMemFn\n" in emitComplexPredicates()
122 OS << " &" << getClassName() in emitComplexPredicates()
125 OS << "};\n\n"; in emitComplexPredicates()
129 raw_ostream &OS, ArrayRef<StringRef> CustomOperandRenderers) { in emitCustomOperandRenderers() argument
130 OS << "// Custom renderers.\n" in emitCustomOperandRenderers()
134 OS << " GICR_" << Fn << ",\n"; in emitCustomOperandRenderers()
135 OS << "};\n"; in emitCustomOperandRenderers()
137 OS << getClassName() << "::CustomRendererFn\n" in emitCustomOperandRenderers()
141 OS << " &" << getClassName() << "::" << Fn << ",\n"; in emitCustomOperandRenderers()
142 OS << "};\n\n"; in emitCustomOperandRenderers()
146 raw_ostream &OS, ArrayRef<LLTCodeGen> TypeObjects) { in emitTypeObjects() argument
147 OS << "// LLT Objects.\n" in emitTypeObjects()
150 OS << " "; in emitTypeObjects()
151 TypeObject.emitCxxEnumValue(OS); in emitTypeObjects()
152 OS << ",\n"; in emitTypeObjects()
154 OS << "};\n" in emitTypeObjects()
158 OS << " "; in emitTypeObjects()
159 TypeObject.emitCxxConstructorCall(OS); in emitTypeObjects()
160 OS << ",\n"; in emitTypeObjects()
162 OS << "};\n\n"; in emitTypeObjects()
166 raw_ostream &OS, const MatchTable &Table) { in emitMatchTable() argument
167 emitEncodingMacrosDef(OS); in emitMatchTable()
168 OS << "const uint8_t *" << getClassName() << "::getMatchTable() const {\n"; in emitMatchTable()
169 Table.emitDeclaration(OS); in emitMatchTable()
170 OS << " return "; in emitMatchTable()
171 Table.emitUse(OS); in emitMatchTable()
172 OS << ";\n}\n"; in emitMatchTable()
173 emitEncodingMacrosUndef(OS); in emitMatchTable()
174 OS << "\n"; in emitMatchTable()
178 raw_ostream &OS, const MatchTable &Table, ArrayRef<LLTCodeGen> TypeObjects, in emitExecutorImpl() argument
181 OS << "#ifdef " << IfDefName << "\n"; in emitExecutorImpl()
182 emitTypeObjects(OS, TypeObjects); in emitExecutorImpl()
183 emitSubtargetFeatureBitsetImpl(OS, Rules); in emitExecutorImpl()
184 emitComplexPredicates(OS, ComplexOperandMatchers); in emitExecutorImpl()
185 emitMIPredicateFns(OS); in emitExecutorImpl()
186 emitI64ImmPredicateFns(OS); in emitExecutorImpl()
187 emitAPFloatImmPredicateFns(OS); in emitExecutorImpl()
188 emitAPIntImmPredicateFns(OS); in emitExecutorImpl()
189 emitTestSimplePredicate(OS); in emitExecutorImpl()
190 emitCustomOperandRenderers(OS, CustomOperandRenderers); in emitExecutorImpl()
191 emitAdditionalImpl(OS); in emitExecutorImpl()
192 emitRunCustomAction(OS); in emitExecutorImpl()
194 emitMatchTable(OS, Table); in emitExecutorImpl()
196 OS << "#endif // ifdef " << IfDefName << "\n\n"; in emitExecutorImpl()
200 raw_ostream &OS, StringRef IfDefName) { in emitPredicateBitset() argument
202 OS << "#ifdef " << IfDefName << "\n" in emitPredicateBitset()
210 raw_ostream &OS, StringRef IfDefName) { in emitTemporariesDecl() argument
211 OS << "#ifdef " << IfDefName << "\n" in emitTemporariesDecl()
242 emitAdditionalTemporariesDecl(OS, " "); in emitTemporariesDecl()
243 OS << "#endif // ifdef " << IfDefName << "\n\n"; in emitTemporariesDecl()
247 raw_ostream &OS, unsigned MaxTemporaries, StringRef IfDefName) { in emitTemporariesInit() argument
248 OS << "#ifdef " << IfDefName << "\n" in emitTemporariesInit()
254 emitAdditionalTemporariesInit(OS); in emitTemporariesInit()
258 raw_ostream &OS, StringRef IfDefName) { in emitPredicatesDecl() argument
259 OS << "#ifdef " << IfDefName << "\n" in emitPredicatesDecl()
277 raw_ostream &OS, StringRef IfDefName) { in emitPredicatesInit() argument
278 OS << "#ifdef " << IfDefName << "\n" in emitPredicatesInit()