LLVM: include/llvm/MC/MCWasmStreamer.h Source File (original) (raw)

1

2

3

4

5

6

7

8

9#ifndef LLVM_MC_MCWASMSTREAMER_H

10#define LLVM_MC_MCWASMSTREAMER_H

11

18

19namespace llvm {

22

24public:

26 std::unique_ptr OW,

27 std::unique_ptr Emitter)

30 SeenIdent(false) {}

31

33

34

36 SeenIdent = false;

38 }

39

40

41

42

49 Align ByteAlignment) override;

50

52

54 Align ByteAlignment) override;

55

57

59

60private:

61 bool SeenIdent;

62};

63

64}

65

66#endif

dxil DXContainer Global Emitter

Functions, function parameters, and return types can have attributes to indicate how they should be t...

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.

void reset() override

state management

MCObjectStreamer(MCContext &Context, std::unique_ptr< MCAsmBackend > TAB, std::unique_ptr< MCObjectWriter > OW, std::unique_ptr< MCCodeEmitter > Emitter)

Instances of this class represent a uniqued identifier for a section in the current translation unit.

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

void emitCommonSymbol(MCSymbol *Symbol, uint64_t Size, Align ByteAlignment) override

Emit a common symbol.

void emitLocalCommonSymbol(MCSymbol *Symbol, uint64_t Size, Align ByteAlignment) override

Emit a local common (.lcomm) symbol.

MCWasmStreamer(MCContext &Context, std::unique_ptr< MCAsmBackend > TAB, std::unique_ptr< MCObjectWriter > OW, std::unique_ptr< MCCodeEmitter > Emitter)

Definition MCWasmStreamer.h:25

void emitLabelAtPos(MCSymbol *Symbol, SMLoc Loc, MCFragment &F, uint64_t Offset) override

void emitIdent(StringRef IdentString) override

Emit the "identifiers" directive.

void emitLabel(MCSymbol *Symbol, SMLoc Loc=SMLoc()) override

Emit a label for Symbol into the current section.

~MCWasmStreamer() override

void changeSection(MCSection *Section, uint32_t Subsection) override

This is called by popSection and switchSection, if the current section changes.

void finishImpl() override

Streamer specific finalization.

void reset() override

state management

Definition MCWasmStreamer.h:35

void emitELFSize(MCSymbol *Symbol, const MCExpr *Value) override

Emit an ELF .size directive.

bool emitSymbolAttribute(MCSymbol *Symbol, MCSymbolAttr Attribute) override

Add the given Attribute to Symbol.

Represents a location in source code.

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

LLVM Value Representation.

This is an optimization pass for GlobalISel generic memory operations.

OutputIt move(R &&Range, OutputIt Out)

Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.

Implement std::hash so that hash_code can be used in STL containers.

This struct is a compact representation of a valid (non-zero power of two) alignment.