LLVM API Documentation

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

#include <PPCMCExpr.h>

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

Public Types

enum  VariantKind {
  VK_PPC_None, VK_PPC_LO, VK_PPC_HI, VK_PPC_HA,
  VK_PPC_HIGHER, VK_PPC_HIGHERA, VK_PPC_HIGHEST, VK_PPC_HIGHESTA
}
 
- Public Types inherited from llvm::MCExpr
enum  ExprKind {
  Binary, Constant, SymbolRef, Unary,
  Target
}
 

Public Member Functions

void PrintImpl (raw_ostream &OS) const
 
bool EvaluateAsRelocatableImpl (MCValue &Res, const MCAsmLayout *Layout) const
 
void AddValueSymbols (MCAssembler *) const
 
const MCSectionFindAssociatedSection () const
 
void fixELFSymbolsInTLSFixups (MCAssembler &Asm) const
 
Accessors
VariantKind getKind () const
 getOpcode - Get the kind of this expression. More...
 
const MCExprgetSubExpr () const
 getSubExpr - Get the child of this expression. More...
 
bool isDarwinSyntax () const
 isDarwinSyntax - True if expression is to be printed using Darwin syntax. More...
 
- 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 PPCMCExprCreate (VariantKind Kind, const MCExpr *Expr, bool isDarwin, MCContext &Ctx)
 
static const PPCMCExprCreateLo (const MCExpr *Expr, bool isDarwin, MCContext &Ctx)
 
static const PPCMCExprCreateHi (const MCExpr *Expr, bool isDarwin, MCContext &Ctx)
 
static const PPCMCExprCreateHa (const MCExpr *Expr, bool isDarwin, MCContext &Ctx)
 
- Static Public Member Functions inherited from llvm::MCTargetExpr
static bool classof (const MCExpr *E)
 

Additional Inherited Members

- Protected Member Functions inherited from llvm::MCTargetExpr
 MCTargetExpr ()
 
virtual ~MCTargetExpr ()
 
- 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 19 of file PPCMCExpr.h.

Member Enumeration Documentation

Enumerator
VK_PPC_None 
VK_PPC_LO 
VK_PPC_HI 
VK_PPC_HA 
VK_PPC_HIGHER 
VK_PPC_HIGHERA 
VK_PPC_HIGHEST 
VK_PPC_HIGHESTA 

Definition at line 21 of file PPCMCExpr.h.

Member Function Documentation

void PPCMCExpr::AddValueSymbols ( MCAssembler Asm) const
virtual

Implements llvm::MCTargetExpr.

Definition at line 153 of file PPCMCExpr.cpp.

References AddValueSymbols_(), and getSubExpr().

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

Definition at line 90 of file PPCMCExpr.h.

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

const PPCMCExpr * PPCMCExpr::Create ( VariantKind  Kind,
const MCExpr Expr,
bool  isDarwin,
MCContext Ctx 
)
static

Definition at line 19 of file PPCMCExpr.cpp.

Referenced by CreateHa(), CreateHi(), and CreateLo().

static const PPCMCExpr* llvm::PPCMCExpr::CreateHa ( const MCExpr Expr,
bool  isDarwin,
MCContext Ctx 
)
inlinestatic

Definition at line 58 of file PPCMCExpr.h.

References Create(), and VK_PPC_HA.

Referenced by GetSymbolRef().

static const PPCMCExpr* llvm::PPCMCExpr::CreateHi ( const MCExpr Expr,
bool  isDarwin,
MCContext Ctx 
)
inlinestatic

Definition at line 53 of file PPCMCExpr.h.

References Create(), and VK_PPC_HI.

static const PPCMCExpr* llvm::PPCMCExpr::CreateLo ( const MCExpr Expr,
bool  isDarwin,
MCContext Ctx 
)
inlinestatic

Definition at line 48 of file PPCMCExpr.h.

References Create(), and VK_PPC_LO.

Referenced by GetSymbolRef().

bool PPCMCExpr::EvaluateAsRelocatableImpl ( MCValue Res,
const MCAsmLayout Layout 
) const
virtual
const MCSection* llvm::PPCMCExpr::FindAssociatedSection ( ) const
inlinevirtual

Implements llvm::MCTargetExpr.

Definition at line 83 of file PPCMCExpr.h.

References llvm::MCExpr::FindAssociatedSection(), and getSubExpr().

void llvm::PPCMCExpr::fixELFSymbolsInTLSFixups ( MCAssembler Asm) const
inlinevirtual

Implements llvm::MCTargetExpr.

Definition at line 88 of file PPCMCExpr.h.

VariantKind llvm::PPCMCExpr::getKind ( ) const
inline

getOpcode - Get the kind of this expression.

Definition at line 68 of file PPCMCExpr.h.

const MCExpr* llvm::PPCMCExpr::getSubExpr ( ) const
inline

getSubExpr - Get the child of this expression.

Definition at line 71 of file PPCMCExpr.h.

Referenced by AddValueSymbols(), EvaluateAsRelocatableImpl(), FindAssociatedSection(), and PrintImpl().

bool llvm::PPCMCExpr::isDarwinSyntax ( ) const
inline

isDarwinSyntax - True if expression is to be printed using Darwin syntax.

Definition at line 74 of file PPCMCExpr.h.

Referenced by PrintImpl().

void PPCMCExpr::PrintImpl ( raw_ostream OS) const
virtual

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