Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
14 | pmbaty | 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 | #ifndef LLD_COMMON_TARGETOPTIONSCOMMANDFLAGS_H |
||
14 | #define LLD_COMMON_TARGETOPTIONSCOMMANDFLAGS_H |
||
15 | |||
16 | #include "llvm/Support/CodeGen.h" |
||
17 | #include "llvm/Target/TargetOptions.h" |
||
18 | #include <optional> |
||
19 | |||
20 | namespace lld { |
||
21 | llvm::TargetOptions initTargetOptionsFromCodeGenFlags(); |
||
22 | std::optional<llvm::Reloc::Model> getRelocModelFromCMModel(); |
||
23 | std::optional<llvm::CodeModel::Model> getCodeModelFromCMModel(); |
||
24 | std::string getCPUStr(); |
||
25 | std::vector<std::string> getMAttrs(); |
||
26 | } |
||
27 | |||
28 | #endif |