LLVM: lib/Target/BPF/BPFAsmPrinter.h Source File (original) (raw)

1

2

3

4

5

6

7

8

9#ifndef LLVM_LIB_TARGET_BPF_BPFASMPRINTER_H

10#define LLVM_LIB_TARGET_BPF_BPFASMPRINTER_H

11

15

16namespace llvm {

17

19public:

21 std::unique_ptr Streamer)

23

29 const char *ExtraCode, raw_ostream &O) override;

31 const char *ExtraCode, raw_ostream &O) override;

32

36

37 static char ID;

38

39private:

42 bool SawTrapCall = false;

43

45};

46

47}

48

49#endif

This file contains support for writing BTF debug info.

AsmPrinter(TargetMachine &TM, std::unique_ptr< MCStreamer > Streamer, char &ID=AsmPrinter::ID)

static char ID

Definition BPFAsmPrinter.h:37

StringRef getPassName() const override

getPassName - Return a nice clean name for a pass.

Definition BPFAsmPrinter.h:24

MCSymbol * getJTPublicSymbol(unsigned JTI)

void printOperand(const MachineInstr *MI, int OpNum, raw_ostream &O)

bool PrintAsmMemoryOperand(const MachineInstr *MI, unsigned OpNum, const char *ExtraCode, raw_ostream &O) override

Print the specified operand of MI, an INLINEASM instruction, using the specified assembler variant as...

BPFAsmPrinter(TargetMachine &TM, std::unique_ptr< MCStreamer > Streamer)

Definition BPFAsmPrinter.h:20

bool doFinalization(Module &M) override

Shut down the asmprinter.

bool PrintAsmOperand(const MachineInstr *MI, unsigned OpNo, const char *ExtraCode, raw_ostream &O) override

Print the specified operand of MI, an INLINEASM instruction, using the specified assembler variant.

bool doInitialization(Module &M) override

Set up the AsmPrinter when we are working on a new module.

void emitJumpTableInfo() override

Print assembly representations of the jump tables used by the current function to the current output ...

void emitInstruction(const MachineInstr *MI) override

Targets should implement this to emit instructions.

Collect and emit BTF information.

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

Representation of each machine instruction.

A Module instance is used to store all the information related to an LLVM module.

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

Primary interface to the complete machine description for the target machine.

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

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.