]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm-project/lld/include/lld/Common/TargetOptionsCommandFlags.h
Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp
[FreeBSD/FreeBSD.git] / contrib / llvm-project / lld / include / lld / Common / TargetOptionsCommandFlags.h
1 //===-- TargetOptionsCommandFlags.h ----------------------------*- 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 // Helper to create TargetOptions from command line flags.
10 //
11 //===----------------------------------------------------------------------===//
12
13 #include "llvm/ADT/Optional.h"
14 #include "llvm/Support/CodeGen.h"
15 #include "llvm/Target/TargetOptions.h"
16
17 namespace lld {
18 llvm::TargetOptions initTargetOptionsFromCodeGenFlags();
19 llvm::Optional<llvm::Reloc::Model> getRelocModelFromCMModel();
20 llvm::Optional<llvm::CodeModel::Model> getCodeModelFromCMModel();
21 std::string getCPUStr();
22 std::vector<std::string> getMAttrs();
23 }