LLVM  14.0.0git
Functions
llvm::MCParserUtils Namespace Reference

Functions

bool parseAssignmentExpression (StringRef Name, bool allow_redef, MCAsmParser &Parser, MCSymbol *&Symbol, const MCExpr *&Value)
 Parse a value expression and return whether it can be assigned to a symbol with the given name. More...
 
static bool isSymbolUsedInExpression (const MCSymbol *Sym, const MCExpr *Value)
 Returns whether the given symbol is used anywhere in the given expression, or subexpressions. More...
 

Function Documentation

◆ isSymbolUsedInExpression()

static bool llvm::MCParserUtils::isSymbolUsedInExpression ( const MCSymbol Sym,
const MCExpr Value 
)
static

Returns whether the given symbol is used anywhere in the given expression, or subexpressions.

Definition at line 6327 of file AsmParser.cpp.

References llvm::MCExpr::Binary, llvm::MCExpr::Constant, llvm::MCBinaryExpr::getLHS(), llvm::MCBinaryExpr::getRHS(), llvm_unreachable, S, llvm::MCExpr::SymbolRef, llvm::MCExpr::Target, and llvm::MCExpr::Unary.

Referenced by parseAssignmentExpression().

◆ parseAssignmentExpression()

bool llvm::MCParserUtils::parseAssignmentExpression ( StringRef  Name,
bool  allow_redef,
MCAsmParser Parser,
MCSymbol *&  Symbol,
const MCExpr *&  Value 
)