LLVM  9.0.0svn
MCDirectives.h
Go to the documentation of this file.
1 //===- MCDirectives.h - Enums for directives on various targets -*- 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 various enums that represent target-specific directives.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef LLVM_MC_MCDIRECTIVES_H
14 #define LLVM_MC_MCDIRECTIVES_H
15 
16 namespace llvm {
17 
19  MCSA_Invalid = 0, ///< Not a valid directive.
20 
21  // Various directives in alphabetical order.
22  MCSA_ELF_TypeFunction, ///< .type _foo, STT_FUNC # aka @function
23  MCSA_ELF_TypeIndFunction, ///< .type _foo, STT_GNU_IFUNC
24  MCSA_ELF_TypeObject, ///< .type _foo, STT_OBJECT # aka @object
25  MCSA_ELF_TypeTLS, ///< .type _foo, STT_TLS # aka @tls_object
26  MCSA_ELF_TypeCommon, ///< .type _foo, STT_COMMON # aka @common
27  MCSA_ELF_TypeNoType, ///< .type _foo, STT_NOTYPE # aka @notype
28  MCSA_ELF_TypeGnuUniqueObject, /// .type _foo, @gnu_unique_object
29  MCSA_Global, ///< .globl
30  MCSA_Hidden, ///< .hidden (ELF)
31  MCSA_IndirectSymbol, ///< .indirect_symbol (MachO)
32  MCSA_Internal, ///< .internal (ELF)
33  MCSA_LazyReference, ///< .lazy_reference (MachO)
34  MCSA_Local, ///< .local (ELF)
35  MCSA_NoDeadStrip, ///< .no_dead_strip (MachO)
36  MCSA_SymbolResolver, ///< .symbol_resolver (MachO)
37  MCSA_AltEntry, ///< .alt_entry (MachO)
38  MCSA_PrivateExtern, ///< .private_extern (MachO)
39  MCSA_Protected, ///< .protected (ELF)
40  MCSA_Reference, ///< .reference (MachO)
41  MCSA_Weak, ///< .weak
42  MCSA_WeakDefinition, ///< .weak_definition (MachO)
43  MCSA_WeakReference, ///< .weak_reference (MachO)
44  MCSA_WeakDefAutoPrivate ///< .weak_def_can_be_hidden (MachO)
45 };
46 
48  MCAF_SyntaxUnified, ///< .syntax (ARM/ELF)
49  MCAF_SubsectionsViaSymbols, ///< .subsections_via_symbols (MachO)
50  MCAF_Code16, ///< .code16 (X86) / .code 16 (ARM)
51  MCAF_Code32, ///< .code32 (X86) / .code 32 (ARM)
52  MCAF_Code64 ///< .code64 (X86)
53 };
54 
56  MCDR_DataRegion, ///< .data_region
57  MCDR_DataRegionJT8, ///< .data_region jt8
58  MCDR_DataRegionJT16, ///< .data_region jt16
59  MCDR_DataRegionJT32, ///< .data_region jt32
60  MCDR_DataRegionEnd ///< .end_data_region
61 };
62 
64  MCVM_IOSVersionMin, ///< .ios_version_min
65  MCVM_OSXVersionMin, ///< .macosx_version_min
66  MCVM_TvOSVersionMin, ///< .tvos_version_min
67  MCVM_WatchOSVersionMin, ///< .watchos_version_min
68 };
69 
70 } // end namespace llvm
71 
72 #endif
This class represents lattice values for constants.
Definition: AllocatorList.h:23
.type _foo, STT_OBJECT # aka
Definition: MCDirectives.h:24
Not a valid directive.
Definition: MCDirectives.h:19
.watchos_version_min
Definition: MCDirectives.h:67
.ios_version_min
Definition: MCDirectives.h:64
.macosx_version_min
Definition: MCDirectives.h:65
MCDataRegionType
Definition: MCDirectives.h:55
.type _foo, STT_NOTYPE # aka
Definition: MCDirectives.h:27
.data_region jt16
Definition: MCDirectives.h:58
.local (ELF)
Definition: MCDirectives.h:34
.no_dead_strip (MachO)
Definition: MCDirectives.h:35
.code16 (X86) / .code 16 (ARM)
Definition: MCDirectives.h:50
.type _foo, STT_GNU_IFUNC
Definition: MCDirectives.h:23
.alt_entry (MachO)
Definition: MCDirectives.h:37
.protected (ELF)
Definition: MCDirectives.h:39
.lazy_reference (MachO)
Definition: MCDirectives.h:33
.reference (MachO)
Definition: MCDirectives.h:40
.hidden (ELF)
Definition: MCDirectives.h:30
.data_region jt32
Definition: MCDirectives.h:59
.weak_def_can_be_hidden (MachO)
Definition: MCDirectives.h:44
.tvos_version_min
Definition: MCDirectives.h:66
.subsections_via_symbols (MachO)
Definition: MCDirectives.h:49
.weak_reference (MachO)
Definition: MCDirectives.h:43
.indirect_symbol (MachO)
Definition: MCDirectives.h:31
.type _foo, STT_TLS # aka
Definition: MCDirectives.h:25
MCSymbolAttr
Definition: MCDirectives.h:18
.syntax (ARM/ELF)
Definition: MCDirectives.h:48
.internal (ELF)
Definition: MCDirectives.h:32
.code32 (X86) / .code 32 (ARM)
Definition: MCDirectives.h:51
.type _foo, STT_COMMON # aka
Definition: MCDirectives.h:26
.code64 (X86)
Definition: MCDirectives.h:52
.symbol_resolver (MachO)
Definition: MCDirectives.h:36
.type _foo,
Definition: MCDirectives.h:29
MCAssemblerFlag
Definition: MCDirectives.h:47
.type _foo, STT_FUNC # aka
Definition: MCDirectives.h:22
.weak_definition (MachO)
Definition: MCDirectives.h:42
.private_extern (MachO)
Definition: MCDirectives.h:38
.data_region jt8
Definition: MCDirectives.h:57
MCVersionMinType
Definition: MCDirectives.h:63
.end_data_region
Definition: MCDirectives.h:60