LLVM: lib/ObjectYAML/CodeViewYAMLTypeHashing.cpp Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

13

15

18

19using namespace llvm;

23

24namespace llvm {

25namespace yaml {

26

31}

32

34 raw_ostream &OS) {

36}

37

39 GlobalHash &GH) {

41}

42

43}

44}

45

49

55

59 DHS.Hashes.emplace_back(S);

60 }

62 return DHS;

63}

64

71

76 for (const auto &H : DebugH.Hashes) {

79 H.Hash.writeAsBinary(OS);

80 assert((Hash.size() == 8) && "Invalid hash size!");

82 }

84 return Buffer;

85}

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

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

size_t size() const

size - Get the array size.

Provides read only access to a subclass of BinaryStream.

LLVM_ABI Error readBytes(ArrayRef< uint8_t > &Buffer, uint32_t Size)

Read Size bytes from the underlying stream at the current offset and and set Buffer to the resulting ...

Error readInteger(T &Dest)

Read an integer of the specified endianness into Dest and update the stream's offset.

uint64_t bytesRemaining() const

Provides write only access to a subclass of WritableBinaryStream.

Error writeInteger(T Value)

Write the integer Value to the underlying stream in the specified endianness.

uint64_t bytesRemaining() const

LLVM_ABI Error writeFixedString(StringRef Str)

Write the string Str to the underlying stream without a null terminator.

MutableArrayRef - Represent a mutable reference to an array (0 or more elements consecutively in memo...

SmallString - A SmallString is just a SmallVector with methods and accessors that make it work better...

A raw_ostream that writes to an SmallVector or SmallString.

void mapOptional(StringRef Key, T &Val)

void mapRequired(StringRef Key, T &Val)

ArrayRef< uint8_t > toDebugH(const DebugHSection &DebugH, BumpPtrAllocator &Alloc)

Definition CodeViewYAMLTypeHashing.cpp:65

DebugHSection fromDebugH(ArrayRef< uint8_t > DebugH)

Definition CodeViewYAMLTypeHashing.cpp:46

This is an optimization pass for GlobalISel generic memory operations.

void cantFail(Error Err, const char *Msg=nullptr)

Report a fatal error if Err is a failure value.

FunctionAddr VTableAddr uintptr_t uintptr_t Data

BumpPtrAllocatorImpl<> BumpPtrAllocator

The standard BumpPtrAllocator which just uses the default template parameters.

std::vector< GlobalHash > Hashes

This class should be specialized by any type that needs to be converted to/from a YAML mapping.

This class should be specialized by type that requires custom conversion to/from a yaml scalar.