[llvm] [DecoderEmitter] Support for DecodeOrder and `resolve-conflicts-try-all` (PR #157948)

Sergei Barannikov via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 15 19:02:21 PDT 2025


================
@@ -1598,6 +1726,19 @@ void FilterChooser::doFilter() {
     return;
   }
 
+  // If we were unable to find a useful filter and there are multiple decode
+  // orders involved, split the candidates by decode order and create per decode
+  // order choosers.
+  if (hasMultipleDecodeOrders()) {
----------------
s-barannikov wrote:

> For DecodeOp, that's not true. It asserts DecodeComplete and always return, irrespective of whether the status was Success or not.

This is the intended behavior, which is controlled by `hasCompleteDecoder` flag. Are you suggesting to ignore this flag and always emit TryDecode?
If not, what's the difference between Decode and TryDecode?


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


More information about the llvm-commits mailing list