llvm::MCUnaryExpr

Unary assembler expressions.

Synopsis

Declared in <llvm/MC/MCExpr.h>

class MCUnaryExpr
    : public MCExpr

Base Classes

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

Enums

NameDescription
ExprKind Discriminator for concrete MCExpr subclasses.
Opcode Unary operator applied to a subexpression.

Member Functions

NameDescription
operator= [deleted]Deleted copy assignment.
dump Dump this expression to stderr.
evaluateAsAbsolute evaluateAsAbsolute overloads
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 fragment associated with this expression.
getKind Return the kind of this expression.
getLoc Return the source location of this expression.
getOpcode Get the kind of this unary expression.
getSubExpr Get the child of this unary expression.

Static Member Functions

NameDescription
classof Return true if E is a unary expression.
create Create a unary expression with operator Op applied to Expr.
createLNot Create a logical-not unary expression of Expr.
createMinus Create a unary minus of Expr.
createNot Create a bitwise-not unary expression of Expr.
createPlus Create a unary plus of Expr (a no-op in assembly expressions).
evaluateSymbolicAdd Add two symbolic relocatable values, folding resolved differences when possible.

Protected Type Aliases

NameDescription
Spec Relocation specifier type stored in subclass data.

Protected Member Functions

NameDescription
evaluateAsRelocatableImpl Evaluate this expression as a relocatable value.
getSubclassData Return subclass-specific data stored in this expression.