[llvm] [TableGen][DecoderEmitter] Add option to emit type-specialized `decodeToMCInst` (PR #146593)
Sergei Barannikov via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 12 03:44:44 PDT 2025
================
@@ -2603,7 +2755,7 @@ namespace {
OpcMap;
std::map<unsigned, std::vector<OperandInfo>> Operands;
std::vector<unsigned> InstrLen;
- bool IsVarLenInst = Target.hasVariableLengthEncodings();
+ const bool IsVarLenInst = Target.hasVariableLengthEncodings();
----------------
s-barannikov wrote:
We don't usually use `const` with non-pointers. Unrelated change anyway.
https://github.com/llvm/llvm-project/pull/146593
More information about the llvm-commits
mailing list