LLVM 20.0.0git
GOFFYAML.h
Go to the documentation of this file.
1//===- GOFFYAML.h - GOFF YAMLIO implementation ------------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9// This file declares classes for handling the YAML representation of GOFF.
10//
11//===----------------------------------------------------------------------===//
12
13#ifndef LLVM_OBJECTYAML_GOFFYAML_H
14#define LLVM_OBJECTYAML_GOFFYAML_H
15
16#include "llvm/ADT/StringRef.h"
19#include <cstdint>
20#include <vector>
21
22namespace llvm {
23
24// The structure of the yaml files is not an exact 1:1 match to GOFF. In order
25// to use yaml::IO, we use these structures which are closer to the source.
26namespace GOFFYAML {
27
28struct FileHeader {
35 std::optional<uint16_t> InternalCCSID;
36 std::optional<uint8_t> TargetSoftwareEnvironment;
37};
38
39struct Object {
41 Object();
42};
43} // end namespace GOFFYAML
44} // end namespace llvm
45
46LLVM_YAML_DECLARE_MAPPING_TRAITS(GOFFYAML::FileHeader)
48
49#endif // LLVM_OBJECTYAML_GOFFYAML_H
#define LLVM_YAML_DECLARE_MAPPING_TRAITS(Type)
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:50
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
std::optional< uint8_t > TargetSoftwareEnvironment
Definition: GOFFYAML.h:36
StringRef LanguageProductIdentifier
Definition: GOFFYAML.h:33
StringRef CharacterSetName
Definition: GOFFYAML.h:32
uint32_t TargetOperatingSystem
Definition: GOFFYAML.h:30
std::optional< uint16_t > InternalCCSID
Definition: GOFFYAML.h:35
FileHeader Header
Definition: GOFFYAML.h:40