[llvm] [NFC][DecoderEmitter] Predicate generation code cleanup (PR #158140)

Sergei Barannikov via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 14 17:32:56 PDT 2025


================
@@ -1214,41 +1213,14 @@ bool DecoderTableBuilder::emitPredicateMatchAux(const Init &Val,
   return true;
 }
 
-bool DecoderTableBuilder::emitPredicateMatch(raw_ostream &OS,
+void DecoderTableBuilder::emitPredicateMatch(raw_ostream &OS,
                                              unsigned EncodingID) const {
-  const ListInit *Predicates =
+  const ListInit *PredicateList =
       Encodings[EncodingID].getRecord()->getValueAsListInit("Predicates");
----------------
s-barannikov wrote:

There is `getValueAsListOfDefs()` that returns a vector of records.

https://github.com/llvm/llvm-project/pull/158140


More information about the llvm-commits mailing list