clang  3.9.0
Public Attributes | List of all members
clang::TargetOptions Class Reference

Options for controlling the target. More...

#include <TargetOptions.h>

Collaboration diagram for clang::TargetOptions:
[legend]

Public Attributes

std::string Triple
 If given, the name of the target triple to compile for. More...
 
std::string HostTriple
 When compiling for the device side, contains the triple used to compile for the host. More...
 
std::string CPU
 If given, the name of the target CPU to generate code for. More...
 
std::string FPMath
 If given, the unit to use for floating point math. More...
 
std::string ABI
 If given, the name of the target ABI to use. More...
 
std::string EABIVersion
 The EABI version to use. More...
 
std::string LinkerVersion
 If given, the version string of the linker in use. More...
 
std::vector< std::string > FeaturesAsWritten
 The list of target specific features to enable or disable, as written on the command line. More...
 
std::vector< std::string > Features
 The list of target specific features to enable or disable – this should be a list of strings starting with by '+' or '-'. More...
 
std::vector< std::string > Reciprocals
 
OpenCLOptions SupportedOpenCLOptions
 Supported OpenCL extensions and optional core features. More...
 

Detailed Description

Options for controlling the target.

Definition at line 25 of file TargetOptions.h.

Member Data Documentation

std::string clang::TargetOptions::ABI

If given, the name of the target ABI to use.

Definition at line 42 of file TargetOptions.h.

Referenced by ParseTargetArgs().

std::string clang::TargetOptions::CPU

If given, the name of the target CPU to generate code for.

Definition at line 36 of file TargetOptions.h.

Referenced by clang::CodeGen::CodeGenModule::ConstructAttributeList(), clang::CodeGen::CodeGenModule::getFunctionFeatureMap(), and ParseTargetArgs().

std::string clang::TargetOptions::EABIVersion

The EABI version to use.

Definition at line 45 of file TargetOptions.h.

Referenced by ParseTargetArgs().

std::vector<std::string> clang::TargetOptions::Features

The list of target specific features to enable or disable – this should be a list of strings starting with by '+' or '-'.

Definition at line 55 of file TargetOptions.h.

Referenced by clang::CodeGen::CodeGenModule::ConstructAttributeList(), and clang::CodeGen::CodeGenModule::getFunctionFeatureMap().

std::vector<std::string> clang::TargetOptions::FeaturesAsWritten

The list of target specific features to enable or disable, as written on the command line.

Definition at line 51 of file TargetOptions.h.

Referenced by checkTargetOptions(), clang::CodeGen::CodeGenModule::getFunctionFeatureMap(), and ParseTargetArgs().

std::string clang::TargetOptions::FPMath

If given, the unit to use for floating point math.

Definition at line 39 of file TargetOptions.h.

Referenced by ParseTargetArgs().

std::string clang::TargetOptions::HostTriple

When compiling for the device side, contains the triple used to compile for the host.

Definition at line 33 of file TargetOptions.h.

Referenced by clang::CompilerInvocation::CreateFromArgs().

std::string clang::TargetOptions::LinkerVersion

If given, the version string of the linker in use.

Definition at line 48 of file TargetOptions.h.

Referenced by ParseTargetArgs().

std::vector<std::string> clang::TargetOptions::Reciprocals

Definition at line 57 of file TargetOptions.h.

Referenced by ParseTargetArgs().

OpenCLOptions clang::TargetOptions::SupportedOpenCLOptions

Supported OpenCL extensions and optional core features.

Definition at line 60 of file TargetOptions.h.

Referenced by clang::TargetInfo::getSupportedOpenCLOpts().

std::string clang::TargetOptions::Triple

If given, the name of the target triple to compile for.

If not given the target will be selected to match the host.

Definition at line 29 of file TargetOptions.h.

Referenced by clang::CodeGenAction::ExecuteAction(), HasARCRuntime(), ParseCodeGenArgs(), ParseLangArgs(), and ParseTargetArgs().


The documentation for this class was generated from the following file: