1 //===--- TargetOptions.h ----------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
11 /// \brief Defines the clang::TargetOptions class.
13 //===----------------------------------------------------------------------===//
15 #ifndef LLVM_CLANG_BASIC_TARGETOPTIONS_H
16 #define LLVM_CLANG_BASIC_TARGETOPTIONS_H
20 #include "clang/Basic/OpenCLOptions.h"
24 /// \brief Options for controlling the target.
27 /// The name of the target triple to compile for.
30 /// When compiling for the device side, contains the triple used to compile
32 std::string HostTriple;
34 /// If given, the name of the target CPU to generate code for.
37 /// If given, the unit to use for floating point math.
40 /// If given, the name of the target ABI to use.
43 /// The EABI version to use
44 std::string EABIVersion;
46 /// If given, the version string of the linker in use.
47 std::string LinkerVersion;
49 /// \brief The list of target specific features to enable or disable, as written on the command line.
50 std::vector<std::string> FeaturesAsWritten;
52 /// The list of target specific features to enable or disable -- this should
53 /// be a list of strings starting with by '+' or '-'.
54 std::vector<std::string> Features;
56 std::vector<std::string> Reciprocals;
58 /// Supported OpenCL extensions and optional core features.
59 OpenCLOptions SupportedOpenCLOptions;
61 /// \brief The list of OpenCL extensions to enable or disable, as written on
63 std::vector<std::string> OpenCLExtensionsAsWritten;
66 } // end namespace clang