[llvm-branch-commits] [SPARC][IAS] Rework ASI tag matching in prep for `ParseForAllFeatures` (PR #96020)

Sergei Barannikov via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sun Jun 23 08:01:50 PDT 2024


================
@@ -107,10 +107,15 @@ class SparcAsmParser : public MCTargetAsmParser {
 
   ParseStatus parseBranchModifiers(OperandVector &Operands);
 
+  ParseStatus parseExpression(OperandVector &Operands, int64_t &Val);
+
   // Helper function for dealing with %lo / %hi in PIC mode.
   const SparcMCExpr *adjustPICRelocation(SparcMCExpr::VariantKind VK,
                                          const MCExpr *subExpr);
 
+  // Helper function to see if current token can start an expression.
+  bool isPossibleExpression(AsmToken &Token);
----------------
s-barannikov wrote:

```suggestion
  bool isPossibleExpression(const AsmToken &Token);
```

https://github.com/llvm/llvm-project/pull/96020


More information about the llvm-branch-commits mailing list