LLVM: lib/Target/Lanai/MCTargetDesc/LanaiMCExpr.cpp Source File (original) (raw)

1

2

3

4

5

6

7

8

13using namespace llvm;

14

15#define DEBUG_TYPE "lanaimcexpr"

16

20}

21

25 return;

26 }

27

28 switch (Kind) {

29 default:

32 OS << "hi";

33 break;

35 OS << "lo";

36 break;

37 }

38

39 OS << '(';

42 OS << ')';

43}

44

47}

48

53 return false;

54

55 Res =

57

58 return true;

59}

PowerPC TLS Dynamic Call Fixup

bool evaluateAsRelocatableImpl(MCValue &Res, const MCAssembler *Asm, const MCFixup *Fixup) const override

VariantKind getKind() const

static const LanaiMCExpr * create(VariantKind Kind, const MCExpr *Expr, MCContext &Ctx)

void printImpl(raw_ostream &OS, const MCAsmInfo *MAI) const override

const MCExpr * getSubExpr() const

void visitUsedExpr(MCStreamer &Streamer) const override

This class is intended to be used as a base class for asm properties and features specific to the tar...

Context object for machine code objects.

Base class for the full range of assembler expressions which are needed for parsing.

bool evaluateAsRelocatable(MCValue &Res, const MCAssembler *Asm, const MCFixup *Fixup) const

Try to evaluate the expression to a relocatable value, i.e.

void print(raw_ostream &OS, const MCAsmInfo *MAI, bool InParens=false) const

Encode information on a single operation to perform on a byte sequence (e.g., an encoded instruction)...

Streaming machine code generation interface.

void visitUsedExpr(const MCExpr &Expr)

This represents an "assembler immediate".

int64_t getConstant() const

static MCValue get(const MCSymbolRefExpr *SymA, const MCSymbolRefExpr *SymB=nullptr, int64_t Val=0, uint32_t RefKind=0)

const MCSymbolRefExpr * getSymB() const

const MCSymbolRefExpr * getSymA() const

This class implements an extremely fast bulk output stream that can only output to a stream.

#define llvm_unreachable(msg)

Marks that the current location is not supposed to be reachable.

This is an optimization pass for GlobalISel generic memory operations.