LLVM API Documentation

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

#include <MipsMCExpr.h>

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

List of all members.

Public Types

enum  VariantKind {
  VK_Mips_None, VK_Mips_LO, VK_Mips_HI, VK_Mips_HIGHER,
  VK_Mips_HIGHEST
}

Public Member Functions

VariantKind getKind () const
 getOpcode - Get the kind of this expression.
const MCExprgetSubExpr () const
 getSubExpr - Get the child of this expression.
void PrintImpl (raw_ostream &OS) const override
bool EvaluateAsRelocatableImpl (MCValue &Res, const MCAsmLayout *Layout, const MCFixup *Fixup) const override
void visitUsedExpr (MCStreamer &Streamer) const override
const MCSectionFindAssociatedSection () const override
void fixELFSymbolsInTLSFixups (MCAssembler &Asm) const override

Static Public Member Functions

static bool isSupportedBinaryExpr (MCSymbolRefExpr::VariantKind VK, const MCBinaryExpr *BE)
static const MipsMCExprCreate (MCSymbolRefExpr::VariantKind VK, const MCExpr *Expr, MCContext &Ctx)
static bool classof (const MCExpr *E)

Detailed Description

Definition at line 19 of file MipsMCExpr.h.


Member Enumeration Documentation

Enumerator:
VK_Mips_None 
VK_Mips_LO 
VK_Mips_HI 
VK_Mips_HIGHER 
VK_Mips_HIGHEST 

Definition at line 21 of file MipsMCExpr.h.


Member Function Documentation

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

Reimplemented from llvm::MCTargetExpr.

Definition at line 61 of file MipsMCExpr.h.

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

bool MipsMCExpr::EvaluateAsRelocatableImpl ( MCValue Res,
const MCAsmLayout Layout,
const MCFixup Fixup 
) const [override, virtual]

Implements llvm::MCTargetExpr.

Definition at line 82 of file MipsMCExpr.cpp.

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

const MCSection* llvm::MipsMCExpr::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 54 of file MipsMCExpr.h.

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

void llvm::MipsMCExpr::fixELFSymbolsInTLSFixups ( MCAssembler Asm) const [inline, override, virtual]

Implements llvm::MCTargetExpr.

Definition at line 59 of file MipsMCExpr.h.

getOpcode - Get the kind of this expression.

Reimplemented from llvm::MCExpr.

Definition at line 44 of file MipsMCExpr.h.

getSubExpr - Get the child of this expression.

Definition at line 47 of file MipsMCExpr.h.

Referenced by EvaluateAsRelocatableImpl(), FindAssociatedSection(), and visitUsedExpr().

void MipsMCExpr::PrintImpl ( raw_ostream OS) const [override, virtual]
void MipsMCExpr::visitUsedExpr ( MCStreamer Streamer) const [override, virtual]

Implements llvm::MCTargetExpr.

Definition at line 88 of file MipsMCExpr.cpp.

References getSubExpr(), and llvm::MCStreamer::visitUsedExpr().


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