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

29

30

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

71

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

73

74

79

80

82

83

88

89

96

97

104

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

107 }

108

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

111 }

112};

113

114}

115

116#endif

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

This file defines the StringMap class.

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

static TableGen::Emitter::OptClass< SkeletonEmitter > X("gen-skeleton-class", "Generate example skeleton class")

bool operator!=(const DwarfStringPoolEntryRef &X) const

Definition DwarfStringPoolEntry.h:109

const DwarfStringPoolEntry & getEntry() const

Definition DwarfStringPoolEntry.h:98

unsigned getIndex() const

Definition DwarfStringPoolEntry.h:84

StringRef getString() const

Definition DwarfStringPoolEntry.h:90

DwarfStringPoolEntryRef()=default

uint64_t getOffset() const

Definition DwarfStringPoolEntry.h:81

bool operator==(const DwarfStringPoolEntryRef &X) const

Definition DwarfStringPoolEntry.h:105

DwarfStringPoolEntryRef(const DwarfStringPoolEntryWithExtString &Entry)

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

Definition DwarfStringPoolEntry.h:69

MCSymbol * getSymbol() const

Definition DwarfStringPoolEntry.h:75

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...

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.

bool isa(const From &Val)

isa - Return true if the parameter to the template is an instance of one of the template type argu...

decltype(auto) cast(const From &Val)

cast - Return the argument parameter cast to the specified type.

DwarfStringPoolEntry with string keeping externally.

Definition DwarfStringPoolEntry.h:31

StringRef String

Definition DwarfStringPoolEntry.h:32

Data for a string pool entry.

Definition DwarfStringPoolEntry.h:20

bool isIndexed() const

Definition DwarfStringPoolEntry.h:27

unsigned Index

Definition DwarfStringPoolEntry.h:25

static constexpr unsigned NotIndexed

Definition DwarfStringPoolEntry.h:21

uint64_t Offset

Definition DwarfStringPoolEntry.h:24

MCSymbol * Symbol

Definition DwarfStringPoolEntry.h:23