LLVM API Documentation

Public Types | Public Member Functions | Static Public Member Functions
llvm::MCUnaryExpr Class Reference

MCUnaryExpr - Unary assembler expressions. More...

#include <MCExpr.h>

Inheritance diagram for llvm::MCUnaryExpr:
Inheritance graph
[legend]
Collaboration diagram for llvm::MCUnaryExpr:
Collaboration graph
[legend]

List of all members.

Public Types

enum  Opcode { LNot, Minus, Not, Plus }

Public Member Functions

Opcode getOpcode () const
 getOpcode - Get the kind of this unary expression.
const MCExprgetSubExpr () const
 getSubExpr - Get the child of this unary expression.

Static Public Member Functions

static bool classof (const MCExpr *E)
Construction
static const MCUnaryExprCreate (Opcode Op, const MCExpr *Expr, MCContext &Ctx)
static const MCUnaryExprCreateLNot (const MCExpr *Expr, MCContext &Ctx)
static const MCUnaryExprCreateMinus (const MCExpr *Expr, MCContext &Ctx)
static const MCUnaryExprCreateNot (const MCExpr *Expr, MCContext &Ctx)
static const MCUnaryExprCreatePlus (const MCExpr *Expr, MCContext &Ctx)

Detailed Description

MCUnaryExpr - Unary assembler expressions.

Definition at line 339 of file MCExpr.h.


Member Enumeration Documentation

Enumerator:
LNot 

Logical negation.

Minus 

Unary minus.

Not 

Bitwise negation.

Plus 

Unary plus.

Definition at line 341 of file MCExpr.h.


Member Function Documentation

static bool llvm::MCUnaryExpr::classof ( const MCExpr E) [inline, static]

Definition at line 384 of file MCExpr.h.

References llvm::MCExpr::getKind(), and llvm::MCExpr::Unary.

const MCUnaryExpr * MCUnaryExpr::Create ( Opcode  Op,
const MCExpr Expr,
MCContext Ctx 
) [static]

Definition at line 142 of file MCExpr.cpp.

Referenced by CreateLNot(), CreateMinus(), CreateNot(), and CreatePlus().

static const MCUnaryExpr* llvm::MCUnaryExpr::CreateLNot ( const MCExpr Expr,
MCContext Ctx 
) [inline, static]

Definition at line 361 of file MCExpr.h.

References Create(), and LNot.

static const MCUnaryExpr* llvm::MCUnaryExpr::CreateMinus ( const MCExpr Expr,
MCContext Ctx 
) [inline, static]
static const MCUnaryExpr* llvm::MCUnaryExpr::CreateNot ( const MCExpr Expr,
MCContext Ctx 
) [inline, static]

Definition at line 367 of file MCExpr.h.

References Create(), and Not.

static const MCUnaryExpr* llvm::MCUnaryExpr::CreatePlus ( const MCExpr Expr,
MCContext Ctx 
) [inline, static]

Definition at line 370 of file MCExpr.h.

References Create(), and Plus.

getOpcode - Get the kind of this unary expression.

Definition at line 377 of file MCExpr.h.

Referenced by llvm::MCExpr::EvaluateAsRelocatableImpl(), and llvm::MCExpr::print().

getSubExpr - Get the child of this unary expression.

Definition at line 380 of file MCExpr.h.

Referenced by llvm::MCExpr::EvaluateAsRelocatableImpl(), and llvm::MCExpr::print().


The documentation for this class was generated from the following files: