1 //===- MCDirectives.h - Enums for directives on various targets -*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 // This file defines various enums that represent target-specific directives.
11 //===----------------------------------------------------------------------===//
13 #ifndef LLVM_MC_MCDIRECTIVES_H
14 #define LLVM_MC_MCDIRECTIVES_H
19 MCSA_Invalid
= 0, ///< Not a valid directive.
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_Hidden
, ///< .hidden (ELF)
32 MCSA_IndirectSymbol
, ///< .indirect_symbol (MachO)
33 MCSA_Internal
, ///< .internal (ELF)
34 MCSA_LazyReference
, ///< .lazy_reference (MachO)
35 MCSA_Local
, ///< .local (ELF)
36 MCSA_NoDeadStrip
, ///< .no_dead_strip (MachO)
37 MCSA_SymbolResolver
, ///< .symbol_resolver (MachO)
38 MCSA_AltEntry
, ///< .alt_entry (MachO)
39 MCSA_PrivateExtern
, ///< .private_extern (MachO)
40 MCSA_Protected
, ///< .protected (ELF)
41 MCSA_Reference
, ///< .reference (MachO)
43 MCSA_WeakDefinition
, ///< .weak_definition (MachO)
44 MCSA_WeakReference
, ///< .weak_reference (MachO)
45 MCSA_WeakDefAutoPrivate
///< .weak_def_can_be_hidden (MachO)
48 enum MCAssemblerFlag
{
49 MCAF_SyntaxUnified
, ///< .syntax (ARM/ELF)
50 MCAF_SubsectionsViaSymbols
, ///< .subsections_via_symbols (MachO)
51 MCAF_Code16
, ///< .code16 (X86) / .code 16 (ARM)
52 MCAF_Code32
, ///< .code32 (X86) / .code 32 (ARM)
53 MCAF_Code64
///< .code64 (X86)
56 enum MCDataRegionType
{
57 MCDR_DataRegion
, ///< .data_region
58 MCDR_DataRegionJT8
, ///< .data_region jt8
59 MCDR_DataRegionJT16
, ///< .data_region jt16
60 MCDR_DataRegionJT32
, ///< .data_region jt32
61 MCDR_DataRegionEnd
///< .end_data_region
64 enum MCVersionMinType
{
65 MCVM_IOSVersionMin
, ///< .ios_version_min
66 MCVM_OSXVersionMin
, ///< .macosx_version_min
67 MCVM_TvOSVersionMin
, ///< .tvos_version_min
68 MCVM_WatchOSVersionMin
, ///< .watchos_version_min
71 } // end namespace llvm