[SLP] Add cost model for `llvm.powi.*` intrinsics (REAPPLIED)
[llvm-project.git] / lld / MachO / MachOStructs.h
blob44715bf29dacce40d7a2f1349c3fa8ebea7de00c
1 //===- MachOStructs.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 //===----------------------------------------------------------------------===//
8 //
9 // This file defines structures used in the MachO object file format. Note that
10 // unlike llvm/BinaryFormat/MachO.h, the structs here are defined in terms of
11 // endian- and alignment-compatibility wrappers.
13 //===----------------------------------------------------------------------===//
15 #ifndef LLD_MACHO_MACHO_STRUCTS_H
16 #define LLD_MACHO_MACHO_STRUCTS_H
18 #include "llvm/Support/Endian.h"
20 namespace lld {
22 namespace structs {
24 struct nlist_64 {
25 llvm::support::ulittle32_t n_strx;
26 uint8_t n_type;
27 uint8_t n_sect;
28 llvm::support::ulittle16_t n_desc;
29 llvm::support::ulittle64_t n_value;
32 struct nlist {
33 llvm::support::ulittle32_t n_strx;
34 uint8_t n_type;
35 uint8_t n_sect;
36 llvm::support::ulittle16_t n_desc;
37 llvm::support::ulittle32_t n_value;
40 struct entry_point_command {
41 llvm::support::ulittle32_t cmd;
42 llvm::support::ulittle32_t cmdsize;
43 llvm::support::ulittle64_t entryoff;
44 llvm::support::ulittle64_t stacksize;
47 } // namespace structs
49 } // namespace lld
51 #endif