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

1

2

3

4

5

6

7

8

9

10

11

12

14

15namespace llvm {

17

19

20}

21

22namespace yaml {

23

25 IO &IO, GOFFYAML::FileHeader &FileHdr) {

26 IO.mapOptional("TargetEnvironment", FileHdr.TargetEnvironment, 0);

27 IO.mapOptional("TargetOperatingSystem", FileHdr.TargetOperatingSystem, 0);

29 IO.mapOptional("CharacterSetName", FileHdr.CharacterSetName, "");

30 IO.mapOptional("LanguageProductIdentifier", FileHdr.LanguageProductIdentifier,

31 "");

32 IO.mapOptional("ArchitectureLevel", FileHdr.ArchitectureLevel, 1);

33 IO.mapOptional("InternalCCSID", FileHdr.InternalCCSID);

35 FileHdr.TargetSoftwareEnvironment);

36}

37

41}

42

43}

44}

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

void mapOptional(StringRef Key, T &Val)

void mapRequired(StringRef Key, T &Val)

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.