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

Go to the documentation of this file.

1

2

3

4

5

6

7

8

9

10

11

12

13

15

16namespace llvm {

17

18namespace yaml {

19

22#define ECase(X) IO.enumCase(Value, #X, object::X)

24 ECase(IMG_Object);

25 ECase(IMG_Bitcode);

27 ECase(IMG_Fatbinary);

30#undef ECase

32}

33

36#define ECase(X) IO.enumCase(Value, #X, object::X)

38 ECase(OFK_OpenMP);

42#undef ECase

44}

45

58

65

75

76}

77

78}

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

This file declares classes for handling the YAML representation of offloading binaries.

LLVM Value Representation.

virtual bool mapTag(StringRef Tag, bool Default=false)=0

void mapOptional(StringRef Key, T &Val)

void * getContext() const

void enumFallback(T &Val)

void mapRequired(StringRef Key, T &Val)

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.

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

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