[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
Tue Aug 26 10:23:19 PDT 2025
================
@@ -93,6 +94,15 @@ static cl::opt<bool> UseFnTableInDecodeToMCInst(
"of the generated code."),
cl::init(false), cl::cat(DisassemblerEmitterCat));
+static cl::opt<bool> SpecializeDecodersPerBitwidth(
+ "specialize-decoders-per-bitwidth",
+ cl::desc("Specialize the generated `decodeToMCInst` function per bitwidth. "
+ "Can help reduce the code size. This requires use of different "
+ "`InsnType` for different bitwidths and defining `InsnBitWidth` "
----------------
s-barannikov wrote:
InsnType/InsnBitWidth are probably not very useful in the help message as they require some knowledge of what happens behind the scenes.
https://github.com/llvm/llvm-project/pull/154865
More information about the llvm-commits
mailing list