LLVM API Documentation
#include <SparcMCExpr.h>
Definition at line 24 of file SparcMCExpr.h.
Definition at line 26 of file SparcMCExpr.h.
static bool llvm::SparcMCExpr::classof | ( | const MCExpr * | E | ) | [inline, static] |
Reimplemented from llvm::MCTargetExpr.
Definition at line 97 of file SparcMCExpr.h.
static bool llvm::SparcMCExpr::classof | ( | const SparcMCExpr * | ) | [inline, static] |
Definition at line 101 of file SparcMCExpr.h.
const SparcMCExpr * SparcMCExpr::Create | ( | VariantKind | Kind, |
const MCExpr * | Expr, | ||
MCContext & | Ctx | ||
) | [static] |
Definition at line 29 of file SparcMCExpr.cpp.
Referenced by createPCXRelExprOp(), createSparcMCOperand(), llvm::SparcELFMCAsmInfo::getExprForFDESymbol(), llvm::SparcELFMCAsmInfo::getExprForPersonalitySymbol(), llvm::SparcELFTargetObjectFile::getTTypeGlobalReference(), and LowerSymbolOperand().
bool SparcMCExpr::EvaluateAsRelocatableImpl | ( | MCValue & | Res, |
const MCAsmLayout * | Layout, | ||
const MCFixup * | Fixup | ||
) | const [override, virtual] |
Implements llvm::MCTargetExpr.
Definition at line 163 of file SparcMCExpr.cpp.
References llvm::MCExpr::EvaluateAsRelocatable(), and getSubExpr().
const MCSection* llvm::SparcMCExpr::FindAssociatedSection | ( | ) | const [inline, override, virtual] |
FindAssociatedSection - Find the "associated section" for this expression, which is currently defined as the absolute section for constants, or otherwise the section associated with the first defined symbol in the expression.
Implements llvm::MCTargetExpr.
Definition at line 91 of file SparcMCExpr.h.
void SparcMCExpr::fixELFSymbolsInTLSFixups | ( | MCAssembler & | Asm | ) | const [override, virtual] |
Implements llvm::MCTargetExpr.
Definition at line 199 of file SparcMCExpr.cpp.
References fixELFSymbolsInTLSFixupsImpl(), getKind(), getSubExpr(), VK_Sparc_TLS_GD_ADD, VK_Sparc_TLS_GD_CALL, VK_Sparc_TLS_GD_HI22, VK_Sparc_TLS_GD_LO10, VK_Sparc_TLS_IE_ADD, VK_Sparc_TLS_IE_HI22, VK_Sparc_TLS_IE_LD, VK_Sparc_TLS_IE_LDX, VK_Sparc_TLS_IE_LO10, VK_Sparc_TLS_LDM_ADD, VK_Sparc_TLS_LDM_CALL, VK_Sparc_TLS_LDM_HI22, VK_Sparc_TLS_LDM_LO10, VK_Sparc_TLS_LDO_ADD, VK_Sparc_TLS_LDO_HIX22, VK_Sparc_TLS_LDO_LOX10, VK_Sparc_TLS_LE_HIX22, and VK_Sparc_TLS_LE_LOX10.
Sparc::Fixups llvm::SparcMCExpr::getFixupKind | ( | ) | const [inline] |
getFixupKind - Get the fixup kind of this expression.
Definition at line 83 of file SparcMCExpr.h.
Sparc::Fixups SparcMCExpr::getFixupKind | ( | SparcMCExpr::VariantKind | Kind | ) | [static] |
Definition at line 126 of file SparcMCExpr.cpp.
References llvm::Sparc::fixup_sparc_got10, llvm::Sparc::fixup_sparc_got22, llvm::Sparc::fixup_sparc_h44, llvm::Sparc::fixup_sparc_hh, llvm::Sparc::fixup_sparc_hi22, llvm::Sparc::fixup_sparc_hm, llvm::Sparc::fixup_sparc_l44, llvm::Sparc::fixup_sparc_lo10, llvm::Sparc::fixup_sparc_m44, llvm::Sparc::fixup_sparc_pc10, llvm::Sparc::fixup_sparc_pc22, llvm::Sparc::fixup_sparc_tls_gd_add, llvm::Sparc::fixup_sparc_tls_gd_call, llvm::Sparc::fixup_sparc_tls_gd_hi22, llvm::Sparc::fixup_sparc_tls_gd_lo10, llvm::Sparc::fixup_sparc_tls_ie_add, llvm::Sparc::fixup_sparc_tls_ie_hi22, llvm::Sparc::fixup_sparc_tls_ie_ld, llvm::Sparc::fixup_sparc_tls_ie_ldx, llvm::Sparc::fixup_sparc_tls_ie_lo10, llvm::Sparc::fixup_sparc_tls_ldm_add, llvm::Sparc::fixup_sparc_tls_ldm_call, llvm::Sparc::fixup_sparc_tls_ldm_hi22, llvm::Sparc::fixup_sparc_tls_ldm_lo10, llvm::Sparc::fixup_sparc_tls_ldo_add, llvm::Sparc::fixup_sparc_tls_ldo_hix22, llvm::Sparc::fixup_sparc_tls_ldo_lox10, llvm::Sparc::fixup_sparc_tls_le_hix22, llvm::Sparc::fixup_sparc_tls_le_lox10, llvm::Sparc::fixup_sparc_wplt30, llvm_unreachable, VK_Sparc_GOT10, VK_Sparc_GOT22, VK_Sparc_H44, VK_Sparc_HH, VK_Sparc_HI, VK_Sparc_HM, VK_Sparc_L44, VK_Sparc_LO, VK_Sparc_M44, VK_Sparc_PC10, VK_Sparc_PC22, VK_Sparc_TLS_GD_ADD, VK_Sparc_TLS_GD_CALL, VK_Sparc_TLS_GD_HI22, VK_Sparc_TLS_GD_LO10, VK_Sparc_TLS_IE_ADD, VK_Sparc_TLS_IE_HI22, VK_Sparc_TLS_IE_LD, VK_Sparc_TLS_IE_LDX, VK_Sparc_TLS_IE_LO10, VK_Sparc_TLS_LDM_ADD, VK_Sparc_TLS_LDM_CALL, VK_Sparc_TLS_LDM_HI22, VK_Sparc_TLS_LDM_LO10, VK_Sparc_TLS_LDO_ADD, VK_Sparc_TLS_LDO_HIX22, VK_Sparc_TLS_LDO_LOX10, VK_Sparc_TLS_LE_HIX22, VK_Sparc_TLS_LE_LOX10, and VK_Sparc_WPLT30.
VariantKind llvm::SparcMCExpr::getKind | ( | ) | const [inline] |
getOpcode - Get the kind of this expression.
Reimplemented from llvm::MCExpr.
Definition at line 77 of file SparcMCExpr.h.
Referenced by fixELFSymbolsInTLSFixups().
const MCExpr* llvm::SparcMCExpr::getSubExpr | ( | ) | const [inline] |
getSubExpr - Get the child of this expression.
Definition at line 80 of file SparcMCExpr.h.
Referenced by EvaluateAsRelocatableImpl(), fixELFSymbolsInTLSFixups(), PrintImpl(), and visitUsedExpr().
SparcMCExpr::VariantKind SparcMCExpr::parseVariantKind | ( | StringRef | name | ) | [static] |
Definition at line 90 of file SparcMCExpr.cpp.
References llvm::StringSwitch< T, R >::Case(), llvm::StringSwitch< T, R >::Default(), VK_Sparc_GOT10, VK_Sparc_GOT22, VK_Sparc_H44, VK_Sparc_HH, VK_Sparc_HI, VK_Sparc_HM, VK_Sparc_L44, VK_Sparc_LO, VK_Sparc_M44, VK_Sparc_None, VK_Sparc_PC10, VK_Sparc_PC22, VK_Sparc_R_DISP32, VK_Sparc_TLS_GD_ADD, VK_Sparc_TLS_GD_CALL, VK_Sparc_TLS_GD_HI22, VK_Sparc_TLS_GD_LO10, VK_Sparc_TLS_IE_ADD, VK_Sparc_TLS_IE_HI22, VK_Sparc_TLS_IE_LD, VK_Sparc_TLS_IE_LDX, VK_Sparc_TLS_IE_LO10, VK_Sparc_TLS_LDM_ADD, VK_Sparc_TLS_LDM_CALL, VK_Sparc_TLS_LDM_HI22, VK_Sparc_TLS_LDM_LO10, VK_Sparc_TLS_LDO_ADD, VK_Sparc_TLS_LDO_HIX22, VK_Sparc_TLS_LDO_LOX10, VK_Sparc_TLS_LE_HIX22, and VK_Sparc_TLS_LE_LOX10.
void SparcMCExpr::PrintImpl | ( | raw_ostream & | OS | ) | const [override, virtual] |
Implements llvm::MCTargetExpr.
Definition at line 36 of file SparcMCExpr.cpp.
References getSubExpr(), llvm::MCExpr::print(), and printVariantKind().
bool SparcMCExpr::printVariantKind | ( | raw_ostream & | OS, |
VariantKind | Kind | ||
) | [static] |
Definition at line 48 of file SparcMCExpr.cpp.
References VK_Sparc_GOT10, VK_Sparc_GOT22, VK_Sparc_H44, VK_Sparc_HH, VK_Sparc_HI, VK_Sparc_HM, VK_Sparc_L44, VK_Sparc_LO, VK_Sparc_M44, VK_Sparc_None, VK_Sparc_PC10, VK_Sparc_PC22, VK_Sparc_R_DISP32, VK_Sparc_TLS_GD_ADD, VK_Sparc_TLS_GD_CALL, VK_Sparc_TLS_GD_HI22, VK_Sparc_TLS_GD_LO10, VK_Sparc_TLS_IE_ADD, VK_Sparc_TLS_IE_HI22, VK_Sparc_TLS_IE_LD, VK_Sparc_TLS_IE_LDX, VK_Sparc_TLS_IE_LO10, VK_Sparc_TLS_LDM_ADD, VK_Sparc_TLS_LDM_CALL, VK_Sparc_TLS_LDM_HI22, VK_Sparc_TLS_LDM_LO10, VK_Sparc_TLS_LDO_ADD, VK_Sparc_TLS_LDO_HIX22, VK_Sparc_TLS_LDO_LOX10, VK_Sparc_TLS_LE_HIX22, VK_Sparc_TLS_LE_LOX10, and VK_Sparc_WPLT30.
Referenced by PrintImpl().
void SparcMCExpr::visitUsedExpr | ( | MCStreamer & | Streamer | ) | const [override, virtual] |
Implements llvm::MCTargetExpr.
Definition at line 224 of file SparcMCExpr.cpp.
References getSubExpr(), and llvm::MCStreamer::visitUsedExpr().