Binary assembler expressions.

Synopsis

Declared in <llvm/MC/MCExpr.h>

class MCBinaryExpr
    : public MCExpr

Base Classes

Name

Description

MCExpr

Base class for the full range of assembler expressions which are needed for parsing.

Enums

Member Functions

Name

Description

operator= [deleted]

Copy assignment operator

dump

@}

evaluateAsAbsolute

Try to evaluate the expression to an absolute value.

evaluateAsRelocatable

Try to evaluate the expression to a relocatable value, i.e. an expression of the fixed form (a ‐ b + constant).

evaluateAsValue

Try to evaluate the expression to the form (a ‐ b + constant) where neither a nor b are variables.

evaluateKnownAbsolute

Aggressive variant of evaluateAsRelocatable when relocations are unavailable (e.g. .fill). Expects callers to handle errors when true is returned.

findAssociatedFragment

Find the "associated section" for this expression, which is currently defined as the absolute section for constants, or otherwise the section associated with the first defined symbol in the expression.

getKind

@{

getLHS

Get the left‐hand side expression of the binary operator.

getLoc

getOpcode

Get the kind of this binary expression.

getRHS

Get the right‐hand side expression of the binary operator.

Static Member Functions

Protected Type Aliases

Name

Spec

Protected Member Functions