[llvm] [TargetParser][NFC] Make FeatureBitset iterable (PR #206394)
Alexis Engelke via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 30 00:38:15 PDT 2026
================
@@ -6998,11 +6998,9 @@ bool AArch64AsmParser::matchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
// Special case the error message for the very common case where only
// a single subtarget feature is missing (neon, e.g.).
std::string Msg = "instruction requires:";
- for (unsigned i = 0, e = MissingFeatures.size(); i != e; ++i) {
- if (MissingFeatures[i]) {
- Msg += " ";
- Msg += getSubtargetFeatureName(i);
- }
+ for (unsigned Index : MissingFeatures) {
----------------
aengelke wrote:
Index -> Feature, also elsewhere
https://github.com/llvm/llvm-project/pull/206394
More information about the llvm-commits
mailing list