Warning: This file is not a C or C++ file. It does not have highlighting.
1 | //===--- TargetOptions.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 | /// \file |
10 | /// Defines the flang::TargetOptions class. |
11 | /// |
12 | //===----------------------------------------------------------------------===// |
13 | // |
14 | // Coding style: https://mlir.llvm.org/getting_started/DeveloperGuide/ |
15 | // |
16 | //===----------------------------------------------------------------------===// |
17 | |
18 | #ifndef FORTRAN_FRONTEND_TARGETOPTIONS_H |
19 | #define FORTRAN_FRONTEND_TARGETOPTIONS_H |
20 | |
21 | #include <string> |
22 | #include <vector> |
23 | |
24 | namespace Fortran::frontend { |
25 | |
26 | /// Options for controlling the target. |
27 | class TargetOptions { |
28 | public: |
29 | /// The name of the target triple to compile for. |
30 | std::string triple; |
31 | |
32 | /// If given, the name of the target CPU to generate code for. |
33 | std::string cpu; |
34 | |
35 | /// The list of target specific features to enable or disable, as written on |
36 | /// the command line. |
37 | std::vector<std::string> featuresAsWritten; |
38 | }; |
39 | |
40 | } // end namespace Fortran::frontend |
41 | |
42 | #endif |
43 |
Warning: This file is not a C or C++ file. It does not have highlighting.