[InstCombine] Signed saturation patterns
[llvm-complete.git] / include / llvm / ObjectYAML / ObjectYAML.h
blob0015fd3dc50152475a15889c86d74bb1a54041e9
1 //===- ObjectYAML.h ---------------------------------------------*- 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 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_OBJECTYAML_OBJECTYAML_H
10 #define LLVM_OBJECTYAML_OBJECTYAML_H
12 #include "llvm/ObjectYAML/COFFYAML.h"
13 #include "llvm/ObjectYAML/ELFYAML.h"
14 #include "llvm/ObjectYAML/MachOYAML.h"
15 #include "llvm/ObjectYAML/MinidumpYAML.h"
16 #include "llvm/ObjectYAML/WasmYAML.h"
17 #include "llvm/Support/YAMLTraits.h"
18 #include <memory>
20 namespace llvm {
21 namespace yaml {
23 class IO;
25 struct YamlObjectFile {
26 std::unique_ptr<ELFYAML::Object> Elf;
27 std::unique_ptr<COFFYAML::Object> Coff;
28 std::unique_ptr<MachOYAML::Object> MachO;
29 std::unique_ptr<MachOYAML::UniversalBinary> FatMachO;
30 std::unique_ptr<MinidumpYAML::Object> Minidump;
31 std::unique_ptr<WasmYAML::Object> Wasm;
34 template <> struct MappingTraits<YamlObjectFile> {
35 static void mapping(IO &IO, YamlObjectFile &ObjectFile);
38 } // end namespace yaml
39 } // end namespace llvm
41 #endif // LLVM_OBJECTYAML_OBJECTYAML_H