LLVM: lib/Target/SystemZ/MCTargetDesc/SystemZTargetStreamer.h Source File (original) (raw)

1

2

3

4

5

6

7

8

9#ifndef LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZTARGETSTREAMER_H

10#define LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZTARGETSTREAMER_H

11

19#include

20#include

21

22namespace llvm {

24

26public:

28

29 typedef std::pair<MCInst, const MCSubtargetInfo *> MCInstSTIPair;

33 if (MCI_STI_A.second != MCI_STI_B.second)

34 return uintptr_t(MCI_STI_A.second) < uintptr_t(MCI_STI_B.second);

35 const MCInst &A = MCI_STI_A.first;

36 const MCInst &B = MCI_STI_B.first;

37 assert(A.getNumOperands() == B.getNumOperands() &&

38 A.getNumOperands() == 5 && A.getOperand(2).getImm() == 1 &&

39 B.getOperand(2).getImm() == 1 && "Unexpected EXRL target MCInst");

40 if (A.getOpcode() != B.getOpcode())

41 return A.getOpcode() < B.getOpcode();

42 if (A.getOperand(0).getReg() != B.getOperand(0).getReg())

43 return A.getOperand(0).getReg() < B.getOperand(0).getReg();

44 if (A.getOperand(1).getImm() != B.getOperand(1).getImm())

45 return A.getOperand(1).getImm() < B.getOperand(1).getImm();

46 if (A.getOperand(3).getReg() != B.getOperand(3).getReg())

47 return A.getOperand(3).getReg() < B.getOperand(3).getReg();

48 if (A.getOperand(4).getImm() != B.getOperand(4).getImm())

49 return A.getOperand(4).getImm() < B.getOperand(4).getImm();

50 return false;

51 }

52 };

53 typedef std::map<MCInstSTIPair, MCSymbol *, CmpMCInst> EXRLT2SymMap;

55

57

59

62

67};

68

75

88

94

97

98public:

102 OS << "\t.machine " << CPUOrCommand << "\n";

103 }

104};

105

106}

107

108#endif

assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")

static GCRegistry::Add< ErlangGC > A("erlang", "erlang-compatible garbage collector")

static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")

Context object for machine code objects.

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

Instances of this class represent a single low-level machine instruction.

Streaming machine code generation interface.

MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...

MCTargetStreamer(MCStreamer &S)

StringRef - Represent a constant reference to a string, i.e.

void emitMachine(StringRef CPUOrCommand) override

Definition SystemZTargetStreamer.h:92

SystemZTargetELFStreamer(MCStreamer &S)

Definition SystemZTargetStreamer.h:91

void emitMachine(StringRef CPUOrCommand) override

Definition SystemZTargetStreamer.h:101

SystemZTargetGNUStreamer(MCStreamer &S, formatted_raw_ostream &OS)

Definition SystemZTargetStreamer.h:99

const MCExpr * createWordDiffExpr(MCContext &Ctx, const MCSymbol *Hi, const MCSymbol *Lo) override

SystemZTargetGOFFStreamer(MCStreamer &S)

Definition SystemZTargetStreamer.h:71

SystemZTargetHLASMStreamer(MCStreamer &S, formatted_raw_ostream &OS)

Definition SystemZTargetStreamer.h:80

void emitExtern(StringRef Sym) override

SystemZHLASMAsmStreamer & getHLASMStreamer()

const MCExpr * createWordDiffExpr(MCContext &Ctx, const MCSymbol *Hi, const MCSymbol *Lo) override

virtual void emitMachine(StringRef CPUOrCommand)

Definition SystemZTargetStreamer.h:58

virtual void emitEnd()

Definition SystemZTargetStreamer.h:61

void emitConstantPools() override

virtual const MCExpr * createWordDiffExpr(MCContext &Ctx, const MCSymbol *Hi, const MCSymbol *Lo)

Definition SystemZTargetStreamer.h:63

SystemZTargetStreamer(MCStreamer &S)

Definition SystemZTargetStreamer.h:27

std::pair< MCInst, const MCSubtargetInfo * > MCInstSTIPair

Definition SystemZTargetStreamer.h:29

EXRLT2SymMap EXRLTargets2Sym

Definition SystemZTargetStreamer.h:54

virtual void emitExtern(StringRef Str)

Definition SystemZTargetStreamer.h:60

std::map< MCInstSTIPair, MCSymbol *, CmpMCInst > EXRLT2SymMap

Definition SystemZTargetStreamer.h:53

formatted_raw_ostream - A raw_ostream that wraps another one and keeps track of line and column posit...

This is an optimization pass for GlobalISel generic memory operations.

bool operator()(const MCInstSTIPair &MCI_STI_A, const MCInstSTIPair &MCI_STI_B) const

Definition SystemZTargetStreamer.h:31