|
LLVM
7.0.0
|
#include "Target/Nios2/MCTargetDesc/Nios2MCExpr.h"
Public Types | |
| enum | Nios2ExprKind { CEK_None, CEK_ABS_HI, CEK_ABS_LO, CEK_Special } |
Public Types inherited from llvm::MCExpr | |
| enum | ExprKind { Binary, Constant, SymbolRef, Unary, Target } |
Public Member Functions | |
| Nios2ExprKind | getKind () const |
| Get the kind of this expression. More... | |
| const MCExpr * | getSubExpr () const |
| Get the child of this expression. More... | |
| void | printImpl (raw_ostream &OS, const MCAsmInfo *MAI) const override |
| bool | evaluateAsRelocatableImpl (MCValue &Res, const MCAsmLayout *Layout, const MCFixup *Fixup) const override |
| void | visitUsedExpr (MCStreamer &Streamer) const override |
| MCFragment * | findAssociatedFragment () const override |
| void | fixELFSymbolsInTLSFixups (MCAssembler &Asm) const override |
Public Member Functions inherited from llvm::MCTargetExpr | |
| virtual bool | isEqualTo (const MCExpr *x) const |
| virtual bool | inlineAssignedExpr () const |
Public Member Functions inherited from llvm::MCExpr | |
| MCExpr (const MCExpr &)=delete | |
| MCExpr & | operator= (const MCExpr &)=delete |
| ExprKind | getKind () const |
| SMLoc | getLoc () const |
| void | print (raw_ostream &OS, const MCAsmInfo *MAI, bool InParens=false) const |
| void | dump () const |
| bool | evaluateAsAbsolute (int64_t &Res, const MCAsmLayout &Layout, const SectionAddrMap &Addrs) const |
| Try to evaluate the expression to an absolute value. More... | |
| bool | evaluateAsAbsolute (int64_t &Res) const |
| bool | evaluateAsAbsolute (int64_t &Res, const MCAssembler &Asm) const |
| bool | evaluateAsAbsolute (int64_t &Res, const MCAssembler *Asm) const |
| bool | evaluateAsAbsolute (int64_t &Res, const MCAsmLayout &Layout) const |
| bool | evaluateKnownAbsolute (int64_t &Res, const MCAsmLayout &Layout) const |
| bool | evaluateAsRelocatable (MCValue &Res, const MCAsmLayout *Layout, const MCFixup *Fixup) const |
| Try to evaluate the expression to a relocatable value, i.e. More... | |
| bool | evaluateAsValue (MCValue &Res, const MCAsmLayout &Layout) const |
| Try to evaluate the expression to the form (a - b + constant) where neither a nor b are variables. More... | |
| MCFragment * | findAssociatedFragment () const |
| 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. More... | |
Static Public Member Functions | |
| static const Nios2MCExpr * | create (Nios2ExprKind Kind, const MCExpr *Expr, MCContext &Ctx) |
| static const Nios2MCExpr * | create (const MCSymbol *Symbol, Nios2MCExpr::Nios2ExprKind Kind, 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 ()=default |
Protected Member Functions inherited from llvm::MCExpr | |
| MCExpr (ExprKind Kind, SMLoc Loc) | |
| bool | evaluateAsRelocatableImpl (MCValue &Res, const MCAssembler *Asm, const MCAsmLayout *Layout, const MCFixup *Fixup, const SectionAddrMap *Addrs, bool InSet) const |
Definition at line 19 of file Nios2MCExpr.h.
| Enumerator | |
|---|---|
| CEK_None | |
| CEK_ABS_HI | |
| CEK_ABS_LO | |
| CEK_Special | |
Definition at line 21 of file Nios2MCExpr.h.
|
static |
Definition at line 23 of file Nios2MCExpr.cpp.
Referenced by LowerSymbolOperand().
|
static |
Definition at line 28 of file Nios2MCExpr.cpp.
References llvm::MCSymbolRefExpr::create(), and llvm::MCSymbolRefExpr::VK_None.
|
overridevirtual |
Implements llvm::MCTargetExpr.
Definition at line 56 of file Nios2MCExpr.cpp.
References llvm::MCExpr::evaluateAsRelocatable(), and getSubExpr().
Referenced by getSubExpr().
|
inlineoverridevirtual |
Implements llvm::MCTargetExpr.
Definition at line 52 of file Nios2MCExpr.h.
References llvm::HexStyle::Asm, llvm::MCExpr::findAssociatedFragment(), fixELFSymbolsInTLSFixups(), and getSubExpr().
|
overridevirtual |
Implements llvm::MCTargetExpr.
Definition at line 66 of file Nios2MCExpr.cpp.
References CEK_ABS_HI, CEK_ABS_LO, CEK_None, CEK_Special, getKind(), and llvm_unreachable.
Referenced by findAssociatedFragment().
|
inline |
Get the kind of this expression.
Definition at line 43 of file Nios2MCExpr.h.
Referenced by fixELFSymbolsInTLSFixups().
Get the child of this expression.
Definition at line 46 of file Nios2MCExpr.h.
References evaluateAsRelocatableImpl(), Fixup, printImpl(), and visitUsedExpr().
Referenced by evaluateAsRelocatableImpl(), findAssociatedFragment(), and visitUsedExpr().
|
overridevirtual |
Implements llvm::MCTargetExpr.
Definition at line 36 of file Nios2MCExpr.cpp.
References CEK_ABS_HI, CEK_ABS_LO, CEK_None, CEK_Special, llvm_unreachable, and llvm::MCExpr::print().
Referenced by getSubExpr().
|
overridevirtual |
Implements llvm::MCTargetExpr.
Definition at line 62 of file Nios2MCExpr.cpp.
References getSubExpr(), and llvm::MCStreamer::visitUsedExpr().
Referenced by getSubExpr().
1.8.13