Lines Matching refs:Predicate

128   for (Record *Predicate : Predicates) {  in emitPredicates()
129 Record *Target = Predicate->getValueAsDef("Target"); in emitPredicates()
131 emitFirstPredicate(Predicate, IsCommutable, PE, OS); in emitPredicates()
133 emitSecondPredicate(Predicate, IsCommutable, PE, OS); in emitPredicates()
135 emitBothPredicate(Predicate, IsCommutable, PE, OS); in emitPredicates()
142 void MacroFusionPredicatorEmitter::emitFirstPredicate(Record *Predicate, in emitFirstPredicate() argument
146 if (Predicate->isSubClassOf("WildcardPred")) { in emitFirstPredicate()
149 << (Predicate->getValueAsBit("ReturnValue") ? "true" : "false") in emitFirstPredicate()
151 } else if (Predicate->isSubClassOf("OneUsePred")) { in emitFirstPredicate()
158 } else if (Predicate->isSubClassOf("FusionPredicateWithMCInstPredicate")) { in emitFirstPredicate()
164 PE.expandPredicate(OS, Predicate->getValueAsDef("Predicate")); in emitFirstPredicate()
169 PrintFatalError(Predicate->getLoc(), in emitFirstPredicate()
171 Predicate->getType()->getAsString()); in emitFirstPredicate()
175 void MacroFusionPredicatorEmitter::emitSecondPredicate(Record *Predicate, in emitSecondPredicate() argument
179 if (Predicate->isSubClassOf("FusionPredicateWithMCInstPredicate")) { in emitSecondPredicate()
185 PE.expandPredicate(OS, Predicate->getValueAsDef("Predicate")); in emitSecondPredicate()
189 } else if (Predicate->isSubClassOf("SameReg")) { in emitSecondPredicate()
190 int FirstOpIdx = Predicate->getValueAsInt("FirstOpIdx"); in emitSecondPredicate()
191 int SecondOpIdx = Predicate->getValueAsInt("SecondOpIdx"); in emitSecondPredicate()
220 PrintFatalError(Predicate->getLoc(), in emitSecondPredicate()
222 Predicate->getType()->getAsString()); in emitSecondPredicate()
226 void MacroFusionPredicatorEmitter::emitBothPredicate(Record *Predicate, in emitBothPredicate() argument
230 if (Predicate->isSubClassOf("FusionPredicateWithCode")) in emitBothPredicate()
231 OS << Predicate->getValueAsString("Predicate"); in emitBothPredicate()
232 else if (Predicate->isSubClassOf("BothFusionPredicateWithMCInstPredicate")) { in emitBothPredicate()
233 emitFirstPredicate(Predicate, IsCommutable, PE, OS); in emitBothPredicate()
234 emitSecondPredicate(Predicate, IsCommutable, PE, OS); in emitBothPredicate()
235 } else if (Predicate->isSubClassOf("TieReg")) { in emitBothPredicate()
236 int FirstOpIdx = Predicate->getValueAsInt("FirstOpIdx"); in emitBothPredicate()
237 int SecondOpIdx = Predicate->getValueAsInt("SecondOpIdx"); in emitBothPredicate()
267 PrintFatalError(Predicate->getLoc(), in emitBothPredicate()
269 Predicate->getType()->getAsString()); in emitBothPredicate()