LLVM API Documentation

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

MCBinaryExpr - Binary assembler expressions. More...

#include <MCExpr.h>

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

List of all members.

Public Types

enum  Opcode {
  Add, And, Div, EQ,
  GT, GTE, LAnd, LOr,
  LT, LTE, Mod, Mul,
  NE, Or, Shl, Shr,
  Sub, Xor
}

Public Member Functions

Opcode getOpcode () const
 getOpcode - Get the kind of this binary expression.
const MCExprgetLHS () const
 getLHS - Get the left-hand side expression of the binary operator.
const MCExprgetRHS () const
 getRHS - Get the right-hand side expression of the binary operator.

Static Public Member Functions

static bool classof (const MCExpr *E)
Construction
static const MCBinaryExprCreate (Opcode Op, const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx)
static const MCBinaryExprCreateAdd (const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx)
static const MCBinaryExprCreateAnd (const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx)
static const MCBinaryExprCreateDiv (const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx)
static const MCBinaryExprCreateEQ (const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx)
static const MCBinaryExprCreateGT (const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx)
static const MCBinaryExprCreateGTE (const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx)
static const MCBinaryExprCreateLAnd (const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx)
static const MCBinaryExprCreateLOr (const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx)
static const MCBinaryExprCreateLT (const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx)
static const MCBinaryExprCreateLTE (const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx)
static const MCBinaryExprCreateMod (const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx)
static const MCBinaryExprCreateMul (const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx)
static const MCBinaryExprCreateNE (const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx)
static const MCBinaryExprCreateOr (const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx)
static const MCBinaryExprCreateShl (const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx)
static const MCBinaryExprCreateShr (const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx)
static const MCBinaryExprCreateSub (const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx)
static const MCBinaryExprCreateXor (const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx)

Detailed Description

MCBinaryExpr - Binary assembler expressions.

Definition at line 395 of file MCExpr.h.


Member Enumeration Documentation

Enumerator:
Add 

Addition.

And 

Bitwise and.

Div 

Signed division.

EQ 

Equality comparison.

GT 

Signed greater than comparison (result is either 0 or some target-specific non-zero value)

GTE 

Signed greater than or equal comparison (result is either 0 or some target-specific non-zero value).

LAnd 

Logical and.

LOr 

Logical or.

LT 

Signed less than comparison (result is either 0 or some target-specific non-zero value).

LTE 

Signed less than or equal comparison (result is either 0 or some target-specific non-zero value).

Mod 

Signed remainder.

Mul 

Multiplication.

NE 

Inequality comparison.

Or 

Bitwise or.

Shl 

Shift left.

Shr 

Shift right (arithmetic or logical, depending on target)

Sub 

Subtraction.

Xor 

Bitwise exclusive or.

Definition at line 397 of file MCExpr.h.


Member Function Documentation

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

Definition at line 521 of file MCExpr.h.

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

const MCBinaryExpr * MCBinaryExpr::Create ( Opcode  Op,
const MCExpr LHS,
const MCExpr RHS,
MCContext Ctx 
) [static]
static const MCBinaryExpr* llvm::MCBinaryExpr::CreateAdd ( const MCExpr LHS,
const MCExpr RHS,
MCContext Ctx 
) [inline, static]
static const MCBinaryExpr* llvm::MCBinaryExpr::CreateAnd ( const MCExpr LHS,
const MCExpr RHS,
MCContext Ctx 
) [inline, static]

Definition at line 439 of file MCExpr.h.

References And, and Create().

Referenced by llvm::AsmPrinter::lowerConstant().

static const MCBinaryExpr* llvm::MCBinaryExpr::CreateDiv ( const MCExpr LHS,
const MCExpr RHS,
MCContext Ctx 
) [inline, static]

Definition at line 443 of file MCExpr.h.

References Create(), and Div.

Referenced by llvm::ARMAsmPrinter::EmitJump2Table(), and llvm::AsmPrinter::lowerConstant().

static const MCBinaryExpr* llvm::MCBinaryExpr::CreateEQ ( const MCExpr LHS,
const MCExpr RHS,
MCContext Ctx 
) [inline, static]

Definition at line 447 of file MCExpr.h.

References Create(), and EQ.

static const MCBinaryExpr* llvm::MCBinaryExpr::CreateGT ( const MCExpr LHS,
const MCExpr RHS,
MCContext Ctx 
) [inline, static]

Definition at line 451 of file MCExpr.h.

References Create(), and GT.

static const MCBinaryExpr* llvm::MCBinaryExpr::CreateGTE ( const MCExpr LHS,
const MCExpr RHS,
MCContext Ctx 
) [inline, static]

Definition at line 455 of file MCExpr.h.

References Create(), and GTE.

static const MCBinaryExpr* llvm::MCBinaryExpr::CreateLAnd ( const MCExpr LHS,
const MCExpr RHS,
MCContext Ctx 
) [inline, static]

Definition at line 459 of file MCExpr.h.

References Create(), and LAnd.

static const MCBinaryExpr* llvm::MCBinaryExpr::CreateLOr ( const MCExpr LHS,
const MCExpr RHS,
MCContext Ctx 
) [inline, static]

Definition at line 463 of file MCExpr.h.

References Create(), and LOr.

static const MCBinaryExpr* llvm::MCBinaryExpr::CreateLT ( const MCExpr LHS,
const MCExpr RHS,
MCContext Ctx 
) [inline, static]

Definition at line 467 of file MCExpr.h.

References Create(), and LT.

static const MCBinaryExpr* llvm::MCBinaryExpr::CreateLTE ( const MCExpr LHS,
const MCExpr RHS,
MCContext Ctx 
) [inline, static]

Definition at line 471 of file MCExpr.h.

References Create(), and LTE.

static const MCBinaryExpr* llvm::MCBinaryExpr::CreateMod ( const MCExpr LHS,
const MCExpr RHS,
MCContext Ctx 
) [inline, static]

Definition at line 475 of file MCExpr.h.

References Create(), and Mod.

Referenced by llvm::AsmPrinter::lowerConstant().

static const MCBinaryExpr* llvm::MCBinaryExpr::CreateMul ( const MCExpr LHS,
const MCExpr RHS,
MCContext Ctx 
) [inline, static]

Definition at line 479 of file MCExpr.h.

References Create(), and Mul.

static const MCBinaryExpr* llvm::MCBinaryExpr::CreateNE ( const MCExpr LHS,
const MCExpr RHS,
MCContext Ctx 
) [inline, static]

Definition at line 483 of file MCExpr.h.

References Create(), and NE.

static const MCBinaryExpr* llvm::MCBinaryExpr::CreateOr ( const MCExpr LHS,
const MCExpr RHS,
MCContext Ctx 
) [inline, static]

Definition at line 487 of file MCExpr.h.

References Create(), and Or.

Referenced by llvm::AsmPrinter::lowerConstant().

static const MCBinaryExpr* llvm::MCBinaryExpr::CreateShl ( const MCExpr LHS,
const MCExpr RHS,
MCContext Ctx 
) [inline, static]

Definition at line 491 of file MCExpr.h.

References Create(), and Shl.

Referenced by llvm::AsmPrinter::lowerConstant().

static const MCBinaryExpr* llvm::MCBinaryExpr::CreateShr ( const MCExpr LHS,
const MCExpr RHS,
MCContext Ctx 
) [inline, static]

Definition at line 495 of file MCExpr.h.

References Create(), and Shr.

static const MCBinaryExpr* llvm::MCBinaryExpr::CreateSub ( const MCExpr LHS,
const MCExpr RHS,
MCContext Ctx 
) [inline, static]
static const MCBinaryExpr* llvm::MCBinaryExpr::CreateXor ( const MCExpr LHS,
const MCExpr RHS,
MCContext Ctx 
) [inline, static]

Definition at line 503 of file MCExpr.h.

References Create(), and Xor.

Referenced by llvm::AsmPrinter::lowerConstant().

getOpcode - Get the kind of this binary expression.

Definition at line 511 of file MCExpr.h.

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


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