LLVM API Documentation
#include <PPCMCExpr.h>
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 } |
![]() | |
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 MCSection * | FindAssociatedSection () const |
void | fixELFSymbolsInTLSFixups (MCAssembler &Asm) const |
Accessors | |
VariantKind | getKind () const |
getOpcode - Get the kind of this expression. More... | |
const MCExpr * | getSubExpr () const |
getSubExpr - Get the child of this expression. More... | |
bool | isDarwinSyntax () const |
isDarwinSyntax - True if expression is to be printed using Darwin syntax. 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 PPCMCExpr * | Create (VariantKind Kind, const MCExpr *Expr, bool isDarwin, MCContext &Ctx) |
static const PPCMCExpr * | CreateLo (const MCExpr *Expr, bool isDarwin, MCContext &Ctx) |
static const PPCMCExpr * | CreateHi (const MCExpr *Expr, bool isDarwin, MCContext &Ctx) |
static const PPCMCExpr * | CreateHa (const MCExpr *Expr, bool isDarwin, MCContext &Ctx) |
![]() | |
static bool | classof (const MCExpr *E) |
Additional Inherited Members | |
![]() | |
MCTargetExpr () | |
virtual | ~MCTargetExpr () |
![]() | |
MCExpr (ExprKind _Kind) | |
bool | EvaluateAsRelocatableImpl (MCValue &Res, const MCAssembler *Asm, const MCAsmLayout *Layout, const SectionAddrMap *Addrs, bool InSet) const |
Definition at line 19 of file PPCMCExpr.h.
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.
|
virtual |
Implements llvm::MCTargetExpr.
Definition at line 153 of file PPCMCExpr.cpp.
References AddValueSymbols_(), and getSubExpr().
Definition at line 90 of file PPCMCExpr.h.
References llvm::MCExpr::getKind(), and llvm::MCExpr::Target.
|
static |
Definition at line 19 of file PPCMCExpr.cpp.
Referenced by CreateHa(), CreateHi(), and CreateLo().
|
inlinestatic |
Definition at line 58 of file PPCMCExpr.h.
References Create(), and VK_PPC_HA.
Referenced by GetSymbolRef().
|
inlinestatic |
Definition at line 53 of file PPCMCExpr.h.
|
inlinestatic |
Definition at line 48 of file PPCMCExpr.h.
References Create(), and VK_PPC_LO.
Referenced by GetSymbolRef().
|
virtual |
Implements llvm::MCTargetExpr.
Definition at line 53 of file PPCMCExpr.cpp.
References llvm::MCSymbolRefExpr::Create(), llvm::MCExpr::EvaluateAsRelocatable(), llvm::MCValue::get(), llvm::MCAsmLayout::getAssembler(), llvm::MCValue::getConstant(), llvm::MCAssembler::getContext(), llvm::MCSymbolRefExpr::getKind(), getSubExpr(), llvm::MCValue::getSymA(), llvm::MCValue::getSymB(), llvm::MCSymbolRefExpr::getSymbol(), llvm::MCValue::isAbsolute(), llvm_unreachable, llvm::MCSymbolRefExpr::VK_None, VK_PPC_HA, llvm::MCSymbolRefExpr::VK_PPC_HA, VK_PPC_HI, llvm::MCSymbolRefExpr::VK_PPC_HI, VK_PPC_HIGHER, llvm::MCSymbolRefExpr::VK_PPC_HIGHER, VK_PPC_HIGHERA, llvm::MCSymbolRefExpr::VK_PPC_HIGHERA, VK_PPC_HIGHEST, llvm::MCSymbolRefExpr::VK_PPC_HIGHEST, VK_PPC_HIGHESTA, llvm::MCSymbolRefExpr::VK_PPC_HIGHESTA, VK_PPC_LO, and llvm::MCSymbolRefExpr::VK_PPC_LO.
|
inlinevirtual |
Implements llvm::MCTargetExpr.
Definition at line 83 of file PPCMCExpr.h.
References llvm::MCExpr::FindAssociatedSection(), and getSubExpr().
|
inlinevirtual |
Implements llvm::MCTargetExpr.
Definition at line 88 of file PPCMCExpr.h.
|
inline |
getOpcode - Get the kind of this expression.
Definition at line 68 of file PPCMCExpr.h.
|
inline |
getSubExpr - Get the child of this expression.
Definition at line 71 of file PPCMCExpr.h.
Referenced by AddValueSymbols(), EvaluateAsRelocatableImpl(), FindAssociatedSection(), and PrintImpl().
|
inline |
isDarwinSyntax - True if expression is to be printed using Darwin syntax.
Definition at line 74 of file PPCMCExpr.h.
Referenced by PrintImpl().
|
virtual |
Implements llvm::MCTargetExpr.
Definition at line 24 of file PPCMCExpr.cpp.
References getSubExpr(), isDarwinSyntax(), llvm_unreachable, llvm::MCExpr::print(), VK_PPC_HA, VK_PPC_HI, VK_PPC_HIGHER, VK_PPC_HIGHERA, VK_PPC_HIGHEST, VK_PPC_HIGHESTA, and VK_PPC_LO.