Displaying 1 result from an estimated 1 matches for "assemblermatcherpredicate".
2012 Nov 27
0
[LLVMdev] question about code in FixedLenDecoderEmitter.cpp
...unsigned Opc) const {
ListInit *Predicates =
AllInstructions[Opc]->TheDef->getValueAsListInit("Predicates");
for (unsigned i = 0; i < Predicates->getSize(); ++i) {
Record *Pred = Predicates->getElementAsRecord(i);
if (!Pred->getValue("AssemblerMatcherPredicate"))
continue;
The code above seems to be checking whether there exists a field named
"AssemblerMatcherPredicate" in record "Pred", but It seems to me that it
should be checking whether the field AssemblerMatcherPredicate's value is 1
or 0. class "Predicate&qu...