LLVM: lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.h Source File (original) (raw)

1

2

3

4

5

6

7

8

9#ifndef LLVM_LIB_TARGET_RISCV_MCTARGETDESC_RISCVASMBACKEND_H

10#define LLVM_LIB_TARGET_RISCV_MCTARGETDESC_RISCVASMBACKEND_H

11

18

19namespace llvm {

23

27 bool Is64Bit;

29

30 MCSymbol *PCRelTemp = nullptr;

31

33

35

36public:

40

44 uint64_t &FixedValue, bool IsResolved);

45

47

50

51 std::unique_ptr

53

56 bool) const override;

57

59

61

66

71 int64_t &Value) const override;

72

75

77};

78}

79

80#endif

This file defines the StringMap class.

ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...

MCAsmBackend(llvm::endianness Endian)

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

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

Base class for classes that define behaviour that is specific to both the target and the object forma...

Generic base class for all target subtargets.

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

std::optional< bool > evaluateFixup(const MCFragment &, MCFixup &, MCValue &, uint64_t &) override

std::unique_ptr< MCObjectTargetWriter > createObjectTargetWriter() const override

void relaxInstruction(MCInst &Inst, const MCSubtargetInfo &STI) const override

Relax the instruction in the given fragment to the next wider instruction.

bool relaxAlign(MCFragment &F, unsigned &Size) override

const MCTargetOptions & getTargetOptions() const

Definition RISCVAsmBackend.h:76

bool addReloc(const MCFragment &, const MCFixup &, const MCValue &, uint64_t &FixedValue, bool IsResolved)

MCFixupKindInfo getFixupKindInfo(MCFixupKind Kind) const override

Get information on a fixup kind.

RISCVAsmBackend(const MCSubtargetInfo &STI, uint8_t OSABI, bool Is64Bit, bool IsLittleEndian, const MCTargetOptions &Options)

std::pair< bool, bool > relaxLEB128(MCFragment &LF, int64_t &Value) const override

void applyFixup(const MCFragment &, const MCFixup &, const MCValue &Target, uint8_t *Data, uint64_t Value, bool IsResolved) override

bool writeNopData(raw_ostream &OS, uint64_t Count, const MCSubtargetInfo *STI) const override

Write an (optimal) nop sequence of Count bytes to the given output.

void maybeAddVendorReloc(const MCFragment &, const MCFixup &)

bool mayNeedRelaxation(unsigned Opcode, ArrayRef< MCOperand > Operands, const MCSubtargetInfo &STI) const override

Check whether the given instruction (encoded as Opcode+Operands) may need relaxation.

bool fixupNeedsRelaxationAdvanced(const MCFragment &, const MCFixup &, const MCValue &, uint64_t, bool) const override

Target specific predicate for whether a given fixup requires the associated instruction to be relaxed...

~RISCVAsmBackend() override=default

std::optional< MCFixupKind > getFixupKind(StringRef Name) const override

Map a relocation name used in .reloc to a fixup kind.

bool relaxDwarfCFA(MCFragment &) const override

bool relaxDwarfLineAddr(MCFragment &) const override

StringMap - This is an unconventional map that is specialized for handling keys that are "strings",...

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

Target - Wrapper for Target specific information.

LLVM Value Representation.

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.

uint16_t MCFixupKind

Extensible enumeration to represent the type of a fixup.

FunctionAddr VTableAddr Count

FunctionAddr VTableAddr uintptr_t uintptr_t Data

Target independent information on a fixup kind.