LLVM  13.0.0git
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_Cold, ///< .cold (MachO)
23  MCSA_ELF_TypeFunction, ///< .type _foo, STT_FUNC # aka @function
24  MCSA_ELF_TypeIndFunction, ///< .type _foo, STT_GNU_IFUNC
25  MCSA_ELF_TypeObject, ///< .type _foo, STT_OBJECT # aka @object
26  MCSA_ELF_TypeTLS, ///< .type _foo, STT_TLS # aka @tls_object
27  MCSA_ELF_TypeCommon, ///< .type _foo, STT_COMMON # aka @common
28  MCSA_ELF_TypeNoType, ///< .type _foo, STT_NOTYPE # aka @notype
29  MCSA_ELF_TypeGnuUniqueObject, /// .type _foo, @gnu_unique_object
30  MCSA_Global, ///< .globl
31  MCSA_LGlobal, ///< .lglobl (XCOFF)
32  MCSA_Extern, ///< .extern (XCOFF)
33  MCSA_Hidden, ///< .hidden (ELF)
34  MCSA_IndirectSymbol, ///< .indirect_symbol (MachO)
35  MCSA_Internal, ///< .internal (ELF)
36  MCSA_LazyReference, ///< .lazy_reference (MachO)
37  MCSA_Local, ///< .local (ELF)
38  MCSA_NoDeadStrip, ///< .no_dead_strip (MachO)
39  MCSA_SymbolResolver, ///< .symbol_resolver (MachO)
40  MCSA_AltEntry, ///< .alt_entry (MachO)
41  MCSA_PrivateExtern, ///< .private_extern (MachO)
42  MCSA_Protected, ///< .protected (ELF)
43  MCSA_Reference, ///< .reference (MachO)
44  MCSA_Weak, ///< .weak
45  MCSA_WeakDefinition, ///< .weak_definition (MachO)
46  MCSA_WeakReference, ///< .weak_reference (MachO)
47  MCSA_WeakDefAutoPrivate ///< .weak_def_can_be_hidden (MachO)
48 };
49 
51  MCAF_SyntaxUnified, ///< .syntax (ARM/ELF)
52  MCAF_SubsectionsViaSymbols, ///< .subsections_via_symbols (MachO)
53  MCAF_Code16, ///< .code16 (X86) / .code 16 (ARM)
54  MCAF_Code32, ///< .code32 (X86) / .code 32 (ARM)
55  MCAF_Code64 ///< .code64 (X86)
56 };
57 
59  MCDR_DataRegion, ///< .data_region
60  MCDR_DataRegionJT8, ///< .data_region jt8
61  MCDR_DataRegionJT16, ///< .data_region jt16
62  MCDR_DataRegionJT32, ///< .data_region jt32
63  MCDR_DataRegionEnd ///< .end_data_region
64 };
65 
67  MCVM_IOSVersionMin, ///< .ios_version_min
68  MCVM_OSXVersionMin, ///< .macosx_version_min
69  MCVM_TvOSVersionMin, ///< .tvos_version_min
70  MCVM_WatchOSVersionMin, ///< .watchos_version_min
71 };
72 
73 } // end namespace llvm
74 
75 #endif
llvm::MCVersionMinType
MCVersionMinType
Definition: MCDirectives.h:66
llvm
This class represents lattice values for constants.
Definition: AllocatorList.h:23
llvm::MCDataRegionType
MCDataRegionType
Definition: MCDirectives.h:58
llvm::MCVM_WatchOSVersionMin
@ MCVM_WatchOSVersionMin
.watchos_version_min
Definition: MCDirectives.h:70
llvm::MCSA_ELF_TypeObject
@ MCSA_ELF_TypeObject
.type _foo, STT_OBJECT # aka @object
Definition: MCDirectives.h:25
llvm::MCSA_Invalid
@ MCSA_Invalid
Not a valid directive.
Definition: MCDirectives.h:19
llvm::MCVM_IOSVersionMin
@ MCVM_IOSVersionMin
.ios_version_min
Definition: MCDirectives.h:67
llvm::MCVM_OSXVersionMin
@ MCVM_OSXVersionMin
.macosx_version_min
Definition: MCDirectives.h:68
llvm::MCSA_ELF_TypeNoType
@ MCSA_ELF_TypeNoType
.type _foo, STT_NOTYPE # aka @notype
Definition: MCDirectives.h:28
llvm::MCAssemblerFlag
MCAssemblerFlag
Definition: MCDirectives.h:50
llvm::MCSymbolAttr
MCSymbolAttr
Definition: MCDirectives.h:18
llvm::MCSA_Cold
@ MCSA_Cold
.cold (MachO)
Definition: MCDirectives.h:22
llvm::MCDR_DataRegionJT16
@ MCDR_DataRegionJT16
.data_region jt16
Definition: MCDirectives.h:61
llvm::MCSA_Local
@ MCSA_Local
.local (ELF)
Definition: MCDirectives.h:37
llvm::MCSA_NoDeadStrip
@ MCSA_NoDeadStrip
.no_dead_strip (MachO)
Definition: MCDirectives.h:38
llvm::MCDR_DataRegion
@ MCDR_DataRegion
.data_region
Definition: MCDirectives.h:59
llvm::MCSA_Extern
@ MCSA_Extern
.extern (XCOFF)
Definition: MCDirectives.h:32
llvm::MCSA_AltEntry
@ MCSA_AltEntry
.alt_entry (MachO)
Definition: MCDirectives.h:40
llvm::MCSA_Protected
@ MCSA_Protected
.protected (ELF)
Definition: MCDirectives.h:42
llvm::MCSA_LazyReference
@ MCSA_LazyReference
.lazy_reference (MachO)
Definition: MCDirectives.h:36
llvm::MCSA_LGlobal
@ MCSA_LGlobal
.lglobl (XCOFF)
Definition: MCDirectives.h:31
llvm::MCAF_Code16
@ MCAF_Code16
.code16 (X86) / .code 16 (ARM)
Definition: MCDirectives.h:53
llvm::MCSA_ELF_TypeIndFunction
@ MCSA_ELF_TypeIndFunction
.type _foo, STT_GNU_IFUNC
Definition: MCDirectives.h:24
llvm::MCSA_Reference
@ MCSA_Reference
.reference (MachO)
Definition: MCDirectives.h:43
llvm::MCSA_Hidden
@ MCSA_Hidden
.hidden (ELF)
Definition: MCDirectives.h:33
llvm::MCSA_ELF_TypeGnuUniqueObject
@ MCSA_ELF_TypeGnuUniqueObject
Definition: MCDirectives.h:29
llvm::MCVM_TvOSVersionMin
@ MCVM_TvOSVersionMin
.tvos_version_min
Definition: MCDirectives.h:69
llvm::MCDR_DataRegionJT32
@ MCDR_DataRegionJT32
.data_region jt32
Definition: MCDirectives.h:62
llvm::MCSA_WeakDefAutoPrivate
@ MCSA_WeakDefAutoPrivate
.weak_def_can_be_hidden (MachO)
Definition: MCDirectives.h:47
llvm::MCAF_SubsectionsViaSymbols
@ MCAF_SubsectionsViaSymbols
.subsections_via_symbols (MachO)
Definition: MCDirectives.h:52
llvm::MCSA_WeakReference
@ MCSA_WeakReference
.weak_reference (MachO)
Definition: MCDirectives.h:46
llvm::MCSA_ELF_TypeTLS
@ MCSA_ELF_TypeTLS
.type _foo, STT_TLS # aka @tls_object
Definition: MCDirectives.h:26
llvm::MCSA_IndirectSymbol
@ MCSA_IndirectSymbol
.indirect_symbol (MachO)
Definition: MCDirectives.h:34
llvm::MCSA_Internal
@ MCSA_Internal
.internal (ELF)
Definition: MCDirectives.h:35
llvm::MCAF_Code32
@ MCAF_Code32
.code32 (X86) / .code 32 (ARM)
Definition: MCDirectives.h:54
llvm::MCSA_ELF_TypeCommon
@ MCSA_ELF_TypeCommon
.type _foo, STT_COMMON # aka @common
Definition: MCDirectives.h:27
llvm::MCAF_Code64
@ MCAF_Code64
.code64 (X86)
Definition: MCDirectives.h:55
llvm::MCAF_SyntaxUnified
@ MCAF_SyntaxUnified
.syntax (ARM/ELF)
Definition: MCDirectives.h:51
llvm::MCSA_SymbolResolver
@ MCSA_SymbolResolver
.symbol_resolver (MachO)
Definition: MCDirectives.h:39
llvm::MCSA_Global
@ MCSA_Global
.type _foo, @gnu_unique_object
Definition: MCDirectives.h:30
llvm::MCSA_WeakDefinition
@ MCSA_WeakDefinition
.weak_definition (MachO)
Definition: MCDirectives.h:45
llvm::MCSA_ELF_TypeFunction
@ MCSA_ELF_TypeFunction
.type _foo, STT_FUNC # aka @function
Definition: MCDirectives.h:23
llvm::MCSA_Weak
@ MCSA_Weak
.weak
Definition: MCDirectives.h:44
llvm::MCDR_DataRegionJT8
@ MCDR_DataRegionJT8
.data_region jt8
Definition: MCDirectives.h:60
llvm::MCSA_PrivateExtern
@ MCSA_PrivateExtern
.private_extern (MachO)
Definition: MCDirectives.h:41
llvm::MCDR_DataRegionEnd
@ MCDR_DataRegionEnd
.end_data_region
Definition: MCDirectives.h:63