LLVM: include/llvm/ObjectYAML/OffloadYAML.h Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15#ifndef LLVM_OBJECTYAML_OFFLOADYAML_H

16#define LLVM_OBJECTYAML_OFFLOADYAML_H

17

21#include

22

23namespace llvm {

25

31

39

41 std::optional<uint64_t> Size;

45};

46

47}

48}

49

52

53namespace llvm {

54namespace yaml {

55

59

63

67

71

75

76}

77}

78

79#endif

#define LLVM_YAML_IS_SEQUENCE_VECTOR(type)

Utility for declaring that a std::vector of a particular type should be considered a YAML sequence.

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

LLVM Value Representation.

Definition OffloadYAML.h:24

OffloadKind

The producer of the associated offloading image.

ImageKind

The type of contents the offloading image contains.

This is an optimization pass for GlobalISel generic memory operations.

Definition OffloadYAML.h:32

std::optional< uint32_t > Flags

Definition OffloadYAML.h:35

std::optional< object::OffloadKind > OffloadKind

Definition OffloadYAML.h:34

std::optional< std::vector< StringEntry > > StringEntries

Definition OffloadYAML.h:36

std::optional< yaml::BinaryRef > Content

Definition OffloadYAML.h:37

std::optional< object::ImageKind > ImageKind

Definition OffloadYAML.h:33

Definition OffloadYAML.h:27

StringRef Key

Definition OffloadYAML.h:28

StringRef Value

Definition OffloadYAML.h:29

Definition OffloadYAML.h:26

std::optional< uint32_t > Version

Definition OffloadYAML.h:40

std::optional< uint64_t > EntryOffset

Definition OffloadYAML.h:42

std::optional< uint64_t > Size

Definition OffloadYAML.h:41

std::optional< uint64_t > EntrySize

Definition OffloadYAML.h:43

std::vector< Member > Members

Definition OffloadYAML.h:44

static void mapping(IO &IO, OffloadYAML::Binary &O)

static void mapping(IO &IO, OffloadYAML::Binary::Member &M)

static void mapping(IO &IO, OffloadYAML::Binary::StringEntry &M)

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

static void enumeration(IO &IO, object::ImageKind &Value)

static void enumeration(IO &IO, object::OffloadKind &Value)

This class should be specialized by any integral type that converts to/from a YAML scalar where there...