[llvm] [TargetParser][NFC] Make FeatureBitset iterable (PR #206394)
Mark Zhuang via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 30 01:23:35 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) {
----------------
zqb-all wrote:
thanks, addressed
https://github.com/llvm/llvm-project/pull/206394
More information about the llvm-commits
mailing list