Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:44:15

0001 //===-- MCTargetOptionsCommandFlags.h --------------------------*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 //
0009 // This file contains machine code-specific flags that are shared between
0010 // different command line tools.
0011 //
0012 //===----------------------------------------------------------------------===//
0013 
0014 #ifndef LLVM_MC_MCTARGETOPTIONSCOMMANDFLAGS_H
0015 #define LLVM_MC_MCTARGETOPTIONSCOMMANDFLAGS_H
0016 
0017 #include <optional>
0018 #include <string>
0019 
0020 namespace llvm {
0021 
0022 class MCTargetOptions;
0023 enum class EmitDwarfUnwindType;
0024 
0025 namespace mc {
0026 
0027 bool getRelaxAll();
0028 std::optional<bool> getExplicitRelaxAll();
0029 
0030 bool getIncrementalLinkerCompatible();
0031 
0032 bool getFDPIC();
0033 
0034 int getDwarfVersion();
0035 
0036 bool getDwarf64();
0037 
0038 EmitDwarfUnwindType getEmitDwarfUnwind();
0039 
0040 bool getEmitCompactUnwindNonCanonical();
0041 
0042 bool getShowMCInst();
0043 
0044 bool getFatalWarnings();
0045 
0046 bool getNoWarn();
0047 
0048 bool getNoDeprecatedWarn();
0049 
0050 bool getNoTypeCheck();
0051 
0052 bool getSaveTempLabels();
0053 
0054 bool getCrel();
0055 
0056 bool getImplicitMapSyms();
0057 
0058 bool getX86RelaxRelocations();
0059 
0060 bool getX86Sse2Avx();
0061 
0062 std::string getABIName();
0063 
0064 std::string getAsSecureLogFile();
0065 
0066 /// Create this object with static storage to register mc-related command
0067 /// line options.
0068 struct RegisterMCTargetOptionsFlags {
0069   RegisterMCTargetOptionsFlags();
0070 };
0071 
0072 MCTargetOptions InitMCTargetOptionsFromFlags();
0073 
0074 } // namespace mc
0075 
0076 } // namespace llvm
0077 
0078 #endif