clang  6.0.0svn
TargetOptions.h
Go to the documentation of this file.
1 //===--- TargetOptions.h ----------------------------------------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 ///
10 /// \file
11 /// \brief Defines the clang::TargetOptions class.
12 ///
13 //===----------------------------------------------------------------------===//
14 
15 #ifndef LLVM_CLANG_BASIC_TARGETOPTIONS_H
16 #define LLVM_CLANG_BASIC_TARGETOPTIONS_H
17 
18 #include <string>
19 #include <vector>
21 #include "llvm/Target/TargetOptions.h"
22 
23 namespace clang {
24 
25 /// \brief Options for controlling the target.
27 public:
28  /// The name of the target triple to compile for.
29  std::string Triple;
30 
31  /// When compiling for the device side, contains the triple used to compile
32  /// for the host.
33  std::string HostTriple;
34 
35  /// If given, the name of the target CPU to generate code for.
36  std::string CPU;
37 
38  /// If given, the unit to use for floating point math.
39  std::string FPMath;
40 
41  /// If given, the name of the target ABI to use.
42  std::string ABI;
43 
44  /// The EABI version to use
45  llvm::EABI EABIVersion;
46 
47  /// If given, the version string of the linker in use.
48  std::string LinkerVersion;
49 
50  /// \brief The list of target specific features to enable or disable, as written on the command line.
51  std::vector<std::string> FeaturesAsWritten;
52 
53  /// The list of target specific features to enable or disable -- this should
54  /// be a list of strings starting with by '+' or '-'.
55  std::vector<std::string> Features;
56 
57  /// Supported OpenCL extensions and optional core features.
59 
60  /// \brief The list of OpenCL extensions to enable or disable, as written on
61  /// the command line.
62  std::vector<std::string> OpenCLExtensionsAsWritten;
63 };
64 
65 } // end namespace clang
66 
67 #endif
OpenCL supported extensions and optional core features.
Definition: OpenCLOptions.h:23
Options for controlling the target.
Definition: TargetOptions.h:26
std::string HostTriple
When compiling for the device side, contains the triple used to compile for the host.
Definition: TargetOptions.h:33
std::string FPMath
If given, the unit to use for floating point math.
Definition: TargetOptions.h:39
OpenCLOptions SupportedOpenCLOptions
Supported OpenCL extensions and optional core features.
Definition: TargetOptions.h:58
std::string LinkerVersion
If given, the version string of the linker in use.
Definition: TargetOptions.h:48
std::string CPU
If given, the name of the target CPU to generate code for.
Definition: TargetOptions.h:36
Defines the clang::OpenCLOptions class.
std::string ABI
If given, the name of the target ABI to use.
Definition: TargetOptions.h:42
std::vector< std::string > OpenCLExtensionsAsWritten
The list of OpenCL extensions to enable or disable, as written on the command line.
Definition: TargetOptions.h:62
std::vector< std::string > Features
The list of target specific features to enable or disable – this should be a list of strings startin...
Definition: TargetOptions.h:55
std::vector< std::string > FeaturesAsWritten
The list of target specific features to enable or disable, as written on the command line...
Definition: TargetOptions.h:51
llvm::EABI EABIVersion
The EABI version to use.
Definition: TargetOptions.h:45
Dataflow Directional Tag Classes.
std::string Triple
The name of the target triple to compile for.
Definition: TargetOptions.h:29