LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Static Public Member Functions | List of all members
llvm::MCConstantExpr Class Reference

#include <MCExpr.h>

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

Public Member Functions

Accessors
int64_t getValue () const
 
- Public Member Functions inherited from llvm::MCExpr
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 MCSectionFindAssociatedSection () const
 

Static Public Member Functions

static bool classof (const MCExpr *E)
 
Construction
static const MCConstantExprCreate (int64_t Value, MCContext &Ctx)
 

Additional Inherited Members

- Public Types inherited from llvm::MCExpr
enum  ExprKind {
  Binary, Constant, SymbolRef, Unary,
  Target
}
 
- Protected Member Functions inherited from llvm::MCExpr
 MCExpr (ExprKind _Kind)
 
bool EvaluateAsRelocatableImpl (MCValue &Res, const MCAssembler *Asm, const MCAsmLayout *Layout, const SectionAddrMap *Addrs, bool InSet) const
 

Detailed Description

Definition at line 110 of file MCExpr.h.

Member Function Documentation

static bool llvm::MCConstantExpr::classof ( const MCExpr E)
inlinestatic

Definition at line 130 of file MCExpr.h.

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

const MCConstantExpr * MCConstantExpr::Create ( int64_t  Value,
MCContext Ctx 
)
static
int64_t llvm::MCConstantExpr::getValue ( ) const
inline

Definition at line 126 of file MCExpr.h.

Referenced by llvm::MipsGetSymAndOffset().


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