mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
[TableGen] Rename ListInit::getSize to just 'size' to be more consistent.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238806 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1113,7 +1113,7 @@ bool FilterChooser::emitPredicateMatch(raw_ostream &o, unsigned &Indentation,
|
||||
ListInit *Predicates =
|
||||
AllInstructions[Opc]->TheDef->getValueAsListInit("Predicates");
|
||||
bool IsFirstEmission = true;
|
||||
for (unsigned i = 0; i < Predicates->getSize(); ++i) {
|
||||
for (unsigned i = 0; i < Predicates->size(); ++i) {
|
||||
Record *Pred = Predicates->getElementAsRecord(i);
|
||||
if (!Pred->getValue("AssemblerMatcherPredicate"))
|
||||
continue;
|
||||
@@ -1136,13 +1136,13 @@ bool FilterChooser::emitPredicateMatch(raw_ostream &o, unsigned &Indentation,
|
||||
emitSinglePredicateMatch(o, pairs.first, Emitter->PredicateNamespace);
|
||||
IsFirstEmission = false;
|
||||
}
|
||||
return Predicates->getSize() > 0;
|
||||
return !Predicates->empty();
|
||||
}
|
||||
|
||||
bool FilterChooser::doesOpcodeNeedPredicate(unsigned Opc) const {
|
||||
ListInit *Predicates =
|
||||
AllInstructions[Opc]->TheDef->getValueAsListInit("Predicates");
|
||||
for (unsigned i = 0; i < Predicates->getSize(); ++i) {
|
||||
for (unsigned i = 0; i < Predicates->size(); ++i) {
|
||||
Record *Pred = Predicates->getElementAsRecord(i);
|
||||
if (!Pred->getValue("AssemblerMatcherPredicate"))
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user