LLVM API Documentation
MCUnaryExpr - Unary assembler expressions. More...
#include <MCExpr.h>
Public Types | |
enum | Opcode { LNot, Minus, Not, Plus } |
![]() | |
enum | ExprKind { Binary, Constant, SymbolRef, Unary, Target } |
Public Member Functions | |
Accessors | |
Opcode | getOpcode () const |
getOpcode - Get the kind of this unary expression. More... | |
const MCExpr * | getSubExpr () const |
getSubExpr - Get the child of this unary expression. More... | |
![]() | |
ExprKind | getKind () const |
void | print (raw_ostream &OS) const |
void | dump () const |
bool | EvaluateAsAbsolute (int64_t &Res, const MCAsmLayout &Layout, const SectionAddrMap &Addrs) const |
bool | EvaluateAsAbsolute (int64_t &Res) const |
bool | EvaluateAsAbsolute (int64_t &Res, const MCAssembler &Asm) const |
bool | EvaluateAsAbsolute (int64_t &Res, const MCAsmLayout &Layout) const |
bool | EvaluateAsRelocatable (MCValue &Res, const MCAsmLayout &Layout) const |
const MCSection * | FindAssociatedSection () const |
Static Public Member Functions | |
static bool | classof (const MCExpr *E) |
Construction | |
static const MCUnaryExpr * | Create (Opcode Op, const MCExpr *Expr, MCContext &Ctx) |
static const MCUnaryExpr * | CreateLNot (const MCExpr *Expr, MCContext &Ctx) |
static const MCUnaryExpr * | CreateMinus (const MCExpr *Expr, MCContext &Ctx) |
static const MCUnaryExpr * | CreateNot (const MCExpr *Expr, MCContext &Ctx) |
static const MCUnaryExpr * | CreatePlus (const MCExpr *Expr, MCContext &Ctx) |
Additional Inherited Members | |
![]() | |
MCExpr (ExprKind _Kind) | |
bool | EvaluateAsRelocatableImpl (MCValue &Res, const MCAssembler *Asm, const MCAsmLayout *Layout, const SectionAddrMap *Addrs, bool InSet) const |
MCUnaryExpr - Unary assembler expressions.
Definition at line 350 of file MCExpr.h.
References llvm::MCExpr::getKind(), and llvm::MCExpr::Unary.
|
static |
Definition at line 147 of file MCExpr.cpp.
Referenced by CreateLNot(), CreateMinus(), CreateNot(), and CreatePlus().
|
inlinestatic |
|
inlinestatic |
Definition at line 328 of file MCExpr.h.
References Create(), and Minus.
Referenced by llvm::MCExternalSymbolizer::tryAddingSymbolicOperand().
|
inlinestatic |
|
inlinestatic |
|
inline |
getOpcode - Get the kind of this unary expression.
Definition at line 343 of file MCExpr.h.
Referenced by llvm::MCExpr::EvaluateAsRelocatableImpl(), and llvm::MCExpr::print().
|
inline |
getSubExpr - Get the child of this unary expression.
Definition at line 346 of file MCExpr.h.
Referenced by llvm::MCExpr::EvaluateAsRelocatableImpl(), and llvm::MCExpr::print().