[llvm] 6947fb4 - [TableGen] Use structured binding in one place (NFC)
Sergei Barannikov via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 17 13:50:33 PDT 2025
Author: Sergei Barannikov
Date: 2025-08-17T23:50:23+03:00
New Revision: 6947fb455638593567e1754cf3ef04e1b379aa00
URL: https://github.com/llvm/llvm-project/commit/6947fb455638593567e1754cf3ef04e1b379aa00
DIFF: https://github.com/llvm/llvm-project/commit/6947fb455638593567e1754cf3ef04e1b379aa00.diff
LOG: [TableGen] Use structured binding in one place (NFC)
Added:
Modified:
llvm/utils/TableGen/DecoderEmitter.cpp
Removed:
################################################################################
diff --git a/llvm/utils/TableGen/DecoderEmitter.cpp b/llvm/utils/TableGen/DecoderEmitter.cpp
index b6d4363c7e4d5..b01a79e37ce48 100644
--- a/llvm/utils/TableGen/DecoderEmitter.cpp
+++ b/llvm/utils/TableGen/DecoderEmitter.cpp
@@ -708,18 +708,18 @@ void Filter::recurse() {
}
// Otherwise, create sub choosers.
- for (const auto &Inst : FilteredIDs) {
+ for (const auto &[FilterVal, EncodingIDs] : FilteredIDs) {
// Marks all the segment positions with either BIT_TRUE or BIT_FALSE.
for (unsigned bitIndex = 0; bitIndex < NumBits; ++bitIndex)
- BitValueArray[StartBit + bitIndex] = Inst.first & (1ULL << bitIndex)
+ BitValueArray[StartBit + bitIndex] = FilterVal & (1ULL << bitIndex)
? BitValue::BIT_TRUE
: BitValue::BIT_FALSE;
// Delegates to an inferior filter chooser for further processing on this
// category of instructions.
FilterChooserMap.try_emplace(
- Inst.first,
- std::make_unique<FilterChooser>(Owner.AllInstructions, Inst.second,
+ FilterVal,
+ std::make_unique<FilterChooser>(Owner.AllInstructions, EncodingIDs,
Owner.Operands, BitValueArray, Owner));
}
}
More information about the llvm-commits
mailing list