[llvm] [LLVM][MC] Add support to cull inactive decoders in decoder emitter (PR #154865)

Sergei Barannikov via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 25 19:48:05 PDT 2025


================
@@ -1158,6 +1158,13 @@ class InstrInfo {
   //
   // This option is a temporary migration help. It will go away.
   bit guessInstructionProperties = true;
+
+  // Generate decoders that are specialized per bit width in the generated
+  // decoder/disassembler. This requires use of different `InsnType` for
+  // different bitwidths and defining `InsnBitWidth` template specialization for
+  // the `InsnType` types used. Some common specializations are already defined
+  // in MCDecoder.h.
+  bit SpecializeDecodersPerBitwidth = false;
----------------
s-barannikov wrote:

I don't remember if we discussed it; I think this should be a command line option (as it is not a static property of the target).

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


More information about the llvm-commits mailing list