Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:42:41

0001 //===-- TargetOptionsCommandFlags.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 // Helper to create TargetOptions from command line flags.
0010 //
0011 //===----------------------------------------------------------------------===//
0012 
0013 #ifndef LLD_COMMON_TARGETOPTIONSCOMMANDFLAGS_H
0014 #define LLD_COMMON_TARGETOPTIONSCOMMANDFLAGS_H
0015 
0016 #include "llvm/Support/CodeGen.h"
0017 #include "llvm/Target/TargetOptions.h"
0018 #include <optional>
0019 
0020 namespace lld {
0021 llvm::TargetOptions initTargetOptionsFromCodeGenFlags();
0022 std::optional<llvm::Reloc::Model> getRelocModelFromCMModel();
0023 std::optional<llvm::CodeModel::Model> getCodeModelFromCMModel();
0024 std::string getCPUStr();
0025 std::vector<std::string> getMAttrs();
0026 }
0027 
0028 #endif