Lines Matching refs:TableInfo

270   void emitTableEntry(DecoderTableInfo &TableInfo) const;
435 unsigned getPredicateIndex(DecoderTableInfo &TableInfo, StringRef P) const;
436 void emitPredicateTableEntry(DecoderTableInfo &TableInfo,
439 void emitSoftFailTableEntry(DecoderTableInfo &TableInfo,
443 void emitSingletonTableEntry(DecoderTableInfo &TableInfo,
447 void emitSingletonTableEntry(DecoderTableInfo &TableInfo,
480 void emitTableEntries(DecoderTableInfo &TableInfo) const;
610 void Filter::emitTableEntry(DecoderTableInfo &TableInfo) const { in emitTableEntry()
611 TableInfo.Table.push_back(MCD::OPC_ExtractField); in emitTableEntry()
612 TableInfo.Table.push_back(StartBit); in emitTableEntry()
613 TableInfo.Table.push_back(NumBits); in emitTableEntry()
616 TableInfo.FixupStack.emplace_back(); in emitTableEntry()
618 DecoderTable &Table = TableInfo.Table; in emitTableEntry()
631 FixupList &CurScope = TableInfo.FixupStack.back(); in emitTableEntry()
653 Filter.second->emitTableEntries(TableInfo); in emitTableEntry()
667 assert(TableInfo.FixupStack.size() > 1 && "fixup stack underflow!"); in emitTableEntry()
668 FixupScopeList::iterator Source = TableInfo.FixupStack.end() - 1; in emitTableEntry()
671 TableInfo.FixupStack.pop_back(); in emitTableEntry()
676 TableInfo.FixupStack.back().push_back(PrevFilter); in emitTableEntry()
1197 unsigned FilterChooser::getPredicateIndex(DecoderTableInfo &TableInfo, in getPredicateIndex() argument
1206 TableInfo.Predicates.insert(Predicate.str()); in getPredicateIndex()
1208 PredicateSet::const_iterator P = std::find(TableInfo.Predicates.begin(), in getPredicateIndex()
1209 TableInfo.Predicates.end(), in getPredicateIndex()
1211 return (unsigned)(P - TableInfo.Predicates.begin()); in getPredicateIndex()
1214 void FilterChooser::emitPredicateTableEntry(DecoderTableInfo &TableInfo, in emitPredicateTableEntry() argument
1229 unsigned PIdx = getPredicateIndex(TableInfo, PS.str()); in emitPredicateTableEntry()
1234 TableInfo.Table.push_back(MCD::OPC_CheckPredicate); in emitPredicateTableEntry()
1237 TableInfo.Table.push_back(PBytes[i]); in emitPredicateTableEntry()
1239 TableInfo.FixupStack.back().push_back(TableInfo.Table.size()); in emitPredicateTableEntry()
1240 TableInfo.Table.push_back(0); in emitPredicateTableEntry()
1241 TableInfo.Table.push_back(0); in emitPredicateTableEntry()
1244 void FilterChooser::emitSoftFailTableEntry(DecoderTableInfo &TableInfo, in emitSoftFailTableEntry() argument
1285 TableInfo.Table.push_back(MCD::OPC_SoftFail); in emitSoftFailTableEntry()
1292 TableInfo.Table.push_back(MaskBytes[i]); in emitSoftFailTableEntry()
1294 TableInfo.Table.push_back(0); in emitSoftFailTableEntry()
1299 TableInfo.Table.push_back(MaskBytes[i]); in emitSoftFailTableEntry()
1301 TableInfo.Table.push_back(0); in emitSoftFailTableEntry()
1305 void FilterChooser::emitSingletonTableEntry(DecoderTableInfo &TableInfo, in emitSingletonTableEntry() argument
1319 emitPredicateTableEntry(TableInfo, Opc); in emitSingletonTableEntry()
1324 TableInfo.Table.push_back(MCD::OPC_CheckField); in emitSingletonTableEntry()
1325 TableInfo.Table.push_back(StartBits[I-1]); in emitSingletonTableEntry()
1326 TableInfo.Table.push_back(NumBits); in emitSingletonTableEntry()
1330 TableInfo.Table.push_back(*p); in emitSingletonTableEntry()
1331 TableInfo.Table.push_back(*p); in emitSingletonTableEntry()
1333 TableInfo.FixupStack.back().push_back(TableInfo.Table.size()); in emitSingletonTableEntry()
1337 TableInfo.Table.push_back(0); in emitSingletonTableEntry()
1338 TableInfo.Table.push_back(0); in emitSingletonTableEntry()
1342 emitSoftFailTableEntry(TableInfo, Opc); in emitSingletonTableEntry()
1345 unsigned DIdx = getDecoderIndex(TableInfo.Decoders, Opc, HasCompleteDecoder); in emitSingletonTableEntry()
1356 TableInfo.Table.push_back(HasCompleteDecoder ? MCD::OPC_Decode : in emitSingletonTableEntry()
1361 TableInfo.Table.push_back(*p); in emitSingletonTableEntry()
1362 TableInfo.Table.push_back(*p); in emitSingletonTableEntry()
1370 TableInfo.Table.push_back(Bytes[i]); in emitSingletonTableEntry()
1374 TableInfo.FixupStack.back().push_back(TableInfo.Table.size()); in emitSingletonTableEntry()
1376 TableInfo.Table.push_back(0); in emitSingletonTableEntry()
1377 TableInfo.Table.push_back(0); in emitSingletonTableEntry()
1382 void FilterChooser::emitSingletonTableEntry(DecoderTableInfo &TableInfo, in emitSingletonTableEntry() argument
1388 TableInfo.FixupStack.emplace_back(); in emitSingletonTableEntry()
1390 emitSingletonTableEntry(TableInfo, Opc); in emitSingletonTableEntry()
1392 resolveTableFixups(TableInfo.Table, TableInfo.FixupStack.back(), in emitSingletonTableEntry()
1393 TableInfo.Table.size()); in emitSingletonTableEntry()
1394 TableInfo.FixupStack.pop_back(); in emitSingletonTableEntry()
1396 Best.getVariableFC().emitTableEntries(TableInfo); in emitSingletonTableEntry()
1680 void FilterChooser::emitTableEntries(DecoderTableInfo &TableInfo) const { in emitTableEntries()
1685 emitSingletonTableEntry(TableInfo, Opcodes[0]); in emitTableEntries()
1693 emitSingletonTableEntry(TableInfo, Best); in emitTableEntries()
1695 Best.emitTableEntry(TableInfo); in emitTableEntries()
2277 DecoderTableInfo TableInfo; in run() local
2286 TableInfo.Table.clear(); in run()
2287 TableInfo.FixupStack.clear(); in run()
2288 TableInfo.Table.reserve(16384); in run()
2289 TableInfo.FixupStack.emplace_back(); in run()
2290 FC.emitTableEntries(TableInfo); in run()
2293 assert(TableInfo.FixupStack.size() == 1 && "fixup stack phasing error!"); in run()
2295 resolveTableFixups(TableInfo.Table, TableInfo.FixupStack.back(), in run()
2296 TableInfo.Table.size()); in run()
2297 TableInfo.FixupStack.clear(); in run()
2299 TableInfo.Table.push_back(MCD::OPC_Fail); in run()
2302 emitTable(OS, TableInfo.Table, 0, FC.getBitWidth(), Opc.first.first); in run()
2307 emitPredicateFunction(OS, TableInfo.Predicates, 0); in run()
2310 emitDecoderFunction(OS, TableInfo.Decoders, 0); in run()