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

Name
ExprKind
Opcode

Member Functions

NameDescription
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 @{
getLoc
getOpcode Get the kind of this unary expression.
getSubExpr Get the child of this unary expression.

Static Member Functions

NameDescription
classof @}
create @{
createLNot
createMinus
createNot
createPlus
evaluateSymbolicAdd @}

Protected Type Aliases

Name
Spec

Protected Member Functions

Name
evaluateAsRelocatableImpl
getSubclassData