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 
23 namespace Fortran::frontend {
24 
25 /// Options for controlling the target. Currently this is just a placeholder.
26 /// In the future, we will use this to specify various target options that
27 /// will affect the generated code e.g.:
28 ///   * CPU to tune the code for
29 ///   * available CPU/hardware extensions
30 ///   * target specific features to enable/disable
31 ///   * options for accelerators (e.g. GPUs)
32 ///   * (...)
33 class TargetOptions {
34 public:
35   /// The name of the target triple to compile for.
36   std::string triple;
37 };
38 
39 } // end namespace Fortran::frontend
40 
41 #endif
42