14#ifndef LLVM_CLANG_BASIC_TARGETOPTIONS_H
15#define LLVM_CLANG_BASIC_TARGETOPTIONS_H
18#include "llvm/Support/VersionTuple.h"
19#include "llvm/Target/TargetOptions.h"
Defines the clang::OpenCLOptions class.
Options for controlling the target.
std::string Triple
The name of the target triple to compile for.
std::string DxilValidatorVersion
The validator version for dxil.
bool AllowAMDGPUUnsafeFPAtomics
If enabled, allow AMDGPU unsafe floating point atomics.
llvm::VersionTuple SDKVersion
The version of the SDK which was used during the compilation.
std::string LinkerVersion
If given, the version string of the linker in use.
std::vector< std::string > Features
The list of target specific features to enable or disable – this should be a list of strings starting...
std::string DarwinTargetVariantTriple
The name of the darwin target- ariant triple to compile for.
std::string ABI
If given, the name of the target ABI to use.
std::string TuneCPU
If given, the name of the target CPU to tune code for.
CodeObjectVersionKind
Enumeration value for AMDGPU code object version, which is the code object version times 100.
std::string CPU
If given, the name of the target CPU to generate code for.
llvm::VersionTuple DarwinTargetVariantSDKVersion
The version of the darwin target variant SDK which was used during the compilation.
std::string FPMath
If given, the unit to use for floating point math.
llvm::EABI EABIVersion
The EABI version to use.
bool ForceEnableInt128
If given, enables support for __int128_t and __uint128_t types.
std::string HostTriple
When compiling for the device side, contains the triple used to compile for the host.
std::vector< std::string > FeaturesAsWritten
The list of target specific features to enable or disable, as written on the command line.
bool NVPTXUseShortPointers
If enabled, use 32-bit pointers for accessing const/local/shared address space.
std::vector< std::string > OpenCLExtensionsAsWritten
The list of OpenCL extensions to enable or disable, as written on the command line.
CodeObjectVersionKind CodeObjectVersion
Code object version for AMDGPU.
llvm::StringMap< bool > OpenCLFeaturesMap
Supported OpenCL extensions and optional core features.
llvm::StringMap< bool > FeatureMap
The map of which features have been enabled disabled based on the command line.
std::string HLSLEntry
The entry point name for HLSL shader being compiled as specified by -E.