[llvm] [TableGen][DecoderEmitter] Fix decoder reading bytes past instruction (PR #154916)

Rahul Joshi via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 22 05:16:59 PDT 2025


================
@@ -488,8 +502,9 @@ class FilterChooser {
   // Links to the FilterChooser above us in the decoding tree.
   const FilterChooser *Parent;
 
-  // Width of instructions
-  unsigned BitWidth;
+  /// Some targets (ARM) specify more encoding bits in Inst that Size allows.
+  /// This field allows us to ignore the extra bits.
+  unsigned MaxFilterWidth;
----------------
jurahul wrote:

FYI: https://github.com/llvm/llvm-project/pull/154934

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


More information about the llvm-commits mailing list