LLVM: include/llvm/CodeGen/DwarfStringPoolEntry.h Source File (original) (raw)

1

2

3

4

5

6

7

8

9#ifndef LLVM_CODEGEN_DWARFSTRINGPOOLENTRY_H

10#define LLVM_CODEGEN_DWARFSTRINGPOOLENTRY_H

11

14

15namespace llvm {

16

18

19

22

26

28};

29

30

33};

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

50

52

53

55

56

58

59public:

61

62

63

65 : MapEntry(&Entry) {}

66

67

68

70 : MapEntry(&Entry) {}

71

72 explicit operator bool() const { return !MapEntry.isNull(); }

73

74

78 }

79

80

82

83

85 assert(getEntry().isIndexed() && "Index is not set!");

87 }

88

89

91 if (isa(MapEntry))

92 return cast(MapEntry)->first();

93

94 return cast(MapEntry)->String;

95 }

96

97

99 if (isa(MapEntry))

100 return cast(MapEntry)->second;

101

102 return *cast(MapEntry);

103 }

104

106 return MapEntry.getOpaqueValue() == X.MapEntry.getOpaqueValue();

107 }

108

110 return MapEntry.getOpaqueValue() != X.MapEntry.getOpaqueValue();

111 }

112};

113

114}

115

116#endif

This file defines the StringMap class.

static GCMetadataPrinterRegistry::Add< ErlangGCPrinter > X("erlang", "erlang-compatible garbage collector")

This file defines the PointerUnion class, which is a discriminated union of pointer types.

assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())

DwarfStringPoolEntryRef: Dwarf string pool entry reference.

bool operator!=(const DwarfStringPoolEntryRef &X) const

const DwarfStringPoolEntry & getEntry() const

unsigned getIndex() const

StringRef getString() const

DwarfStringPoolEntryRef(const StringMapEntry< DwarfStringPoolEntry > &Entry)

ASSUMPTION: DwarfStringPoolEntryRef keeps pointer to Entry, thus specified entry mustn`t be reallocat...

DwarfStringPoolEntryRef()=default

uint64_t getOffset() const

bool operator==(const DwarfStringPoolEntryRef &X) const

DwarfStringPoolEntryRef(const DwarfStringPoolEntryWithExtString &Entry)

ASSUMPTION: DwarfStringPoolEntryRef keeps pointer to Entry, thus specified entry mustn`t be reallocat...

MCSymbol * getSymbol() const

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

A discriminated union of two or more pointer types, with the discriminator in the low bit of the poin...

bool isNull() const

Test if the pointer held in the union is null, regardless of which type it is.

void * getOpaqueValue() const

StringMapEntry - This is used to represent one value that is inserted into a StringMap.

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

This is an optimization pass for GlobalISel generic memory operations.

DwarfStringPoolEntry with string keeping externally.

Data for a string pool entry.

static constexpr unsigned NotIndexed