================ @@ -1088,6 +1115,34 @@ ParseStatus SparcAsmParser::parseASITag(OperandVector &Operands) { return ParseStatus::Success; } +ParseStatus SparcAsmParser::parsePrefetchTag(OperandVector &Operands) { + SMLoc S = Parser.getTok().getLoc(); + SMLoc E = Parser.getTok().getEndLoc(); + int64_t PrefetchVal = 0; + + if (getLexer().getKind() == AsmToken::Hash) { + SMLoc TagStart = getLexer().peekTok(false).getLoc(); + Parser.Lex(); // Eat the '#'. + auto PrefetchName = Parser.getTok().getString(); + auto PrefetchTag = SparcPrefetchTag::lookupPrefetchTagByName(PrefetchName); ---------------- s-barannikov wrote:
Yes, please. This will make clang-tidy a little bit happier. https://github.com/llvm/llvm-project/pull/94249 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits