LLVM 17.0.0git
MCTargetOptions.h
Go to the documentation of this file.
1//===- MCTargetOptions.h - MC Target Options --------------------*- 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#ifndef LLVM_MC_MCTARGETOPTIONS_H
10#define LLVM_MC_MCTARGETOPTIONS_H
11
12#include "llvm/ADT/ArrayRef.h"
14#include <string>
15#include <vector>
16
17namespace llvm {
18
20 None, ///< No exception support
21 DwarfCFI, ///< DWARF-like instruction based exceptions
22 SjLj, ///< setjmp/longjmp based exceptions
23 ARM, ///< ARM EHABI
24 WinEH, ///< Windows Exception Handling
25 Wasm, ///< WebAssembly Exception Handling
26 AIX, ///< AIX Exception Handling
27};
28
30 Always, // Always emit dwarf unwind
31 NoCompactUnwind, // Only emit if compact unwind isn't available
32 Default, // Default behavior is based on the target
33};
34
35class StringRef;
36
38public:
42 };
43
44 bool MCRelaxAll : 1;
45 bool MCNoExecStack : 1;
47 bool MCNoWarn : 1;
49 bool MCNoTypeCheck : 1;
53 bool ShowMCInst : 1;
54 bool AsmVerbose : 1;
55
56 /// Preserve Comments in Assembly.
58
59 bool Dwarf64 : 1;
60
62
63 int DwarfVersion = 0;
64
66 // Force disable
68 // Force enable, for assemblers that support
69 // `.file fileno directory filename' syntax
71 // Default is based on the target
73 };
75
76 std::string ABIName;
77 std::string AssemblyLanguage;
78 std::string SplitDwarfFile;
79 std::string AsSecureLogFile;
80
81 const char *Argv0 = nullptr;
83
84 /// Additional paths to search for `.include` directives when using the
85 /// integrated assembler.
86 std::vector<std::string> IASSearchPaths;
87
89
90 /// getABIName - If this returns a non-empty string this represents the
91 /// textual name of the ABI that we want the backend to use, e.g. o32, or
92 /// aapcs-linux.
93 StringRef getABIName() const;
94
95 /// getAssemblyLanguage - If this returns a non-empty string this represents
96 /// the textual name of the assembly language that we will use for this
97 /// target, e.g. masm.
99};
100
101} // end namespace llvm
102
103#endif // LLVM_MC_MCTARGETOPTIONS_H
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
Definition: ArrayRef.h:41
bool PreserveAsmComments
Preserve Comments in Assembly.
std::string AsSecureLogFile
DwarfDirectory MCUseDwarfDirectory
EmitDwarfUnwindType EmitDwarfUnwind
ArrayRef< std::string > CommandLineArgs
std::vector< std::string > IASSearchPaths
Additional paths to search for .include directives when using the integrated assembler.
StringRef getAssemblyLanguage() const
getAssemblyLanguage - If this returns a non-empty string this represents the textual name of the asse...
StringRef getABIName() const
getABIName - If this returns a non-empty string this represents the textual name of the ABI that we w...
std::string SplitDwarfFile
std::string AssemblyLanguage
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:50
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
ExceptionHandling
@ SjLj
setjmp/longjmp based exceptions
@ AIX
AIX Exception Handling.
@ DwarfCFI
DWARF-like instruction based exceptions.
@ WinEH
Windows Exception Handling.
@ Wasm
WebAssembly Exception Handling.
EmitDwarfUnwindType
@ Default
The result values are uniform if and only if all operands are uniform.
constexpr std::nullopt_t None
Definition: None.h:28