clang 22.0.0git
|
Options for controlling the target. More...
#include "clang/Basic/TargetOptions.h"
Public Types | |
enum class | AMDGPUPrintfKind { Hostcall = 0 , Buffered = 1 } |
Enumeration values for AMDGPU printf lowering scheme. More... |
Public Attributes | |
std::string | Triple |
The name of the target triple to compile for. | |
std::string | HostTriple |
When compiling for the device side, contains the triple used to compile for the host. | |
std::string | CPU |
If given, the name of the target CPU to generate code for. | |
std::string | TuneCPU |
If given, the name of the target CPU to tune code for. | |
std::string | FPMath |
If given, the unit to use for floating point math. | |
std::string | ABI |
If given, the name of the target ABI to use. | |
llvm::EABI | EABIVersion = llvm::EABI::Default |
The EABI version to use. | |
std::string | LinkerVersion |
If given, the version string of the linker in use. | |
std::vector< std::string > | FeaturesAsWritten |
The list of target specific features to enable or disable, as written on the command line. | |
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 '-'. | |
llvm::StringMap< bool > | FeatureMap |
The map of which features have been enabled disabled based on the command line. | |
llvm::StringMap< bool > | OpenCLFeaturesMap |
Supported OpenCL extensions and optional core features. | |
std::vector< std::string > | OpenCLExtensionsAsWritten |
The list of OpenCL extensions to enable or disable, as written on the command line. | |
bool | ForceEnableInt128 = false |
If given, enables support for __int128_t and __uint128_t types. | |
bool | NVPTXUseShortPointers = false |
If enabled, use 32-bit pointers for accessing const/local/shared address space. | |
llvm::CodeObjectVersionKind | CodeObjectVersion |
Code object version for AMDGPU. | |
AMDGPUPrintfKind | AMDGPUPrintfKindVal = AMDGPUPrintfKind::Hostcall |
AMDGPU Printf lowering scheme. | |
std::string | CodeModel |
uint64_t | LargeDataThreshold |
llvm::VersionTuple | SDKVersion |
The version of the SDK which was used during the compilation. | |
std::string | DarwinTargetVariantTriple |
The name of the darwin target- ariant triple to compile for. | |
llvm::VersionTuple | DarwinTargetVariantSDKVersion |
The version of the darwin target variant SDK which was used during the compilation. | |
std::string | DxilValidatorVersion |
The validator version for dxil. | |
std::string | HLSLEntry |
The entry point name for HLSL shader being compiled as specified by -E. |
Options for controlling the target.
Definition at line 26 of file TargetOptions.h.
|
strong |
Enumeration values for AMDGPU printf lowering scheme.
Enumerator | |
---|---|
Hostcall | printf lowering scheme involving hostcalls, currently used by HIP programs by default |
Buffered | printf lowering scheme involving implicit printf buffers, |
Definition at line 83 of file TargetOptions.h.
std::string clang::TargetOptions::ABI |
If given, the name of the target ABI to use.
Definition at line 45 of file TargetOptions.h.
Referenced by clang::TargetInfo::CreateTargetInfo(), and initTargetOptions().
AMDGPUPrintfKind clang::TargetOptions::AMDGPUPrintfKindVal = AMDGPUPrintfKind::Hostcall |
AMDGPU Printf lowering scheme.
Definition at line 93 of file TargetOptions.h.
std::string clang::TargetOptions::CodeModel |
Definition at line 99 of file TargetOptions.h.
Referenced by FixupInvocation(), clang::targets::AArch64TargetInfo::getTargetDefines(), clang::targets::RISCVTargetInfo::getTargetDefines(), and clang::targets::X86TargetInfo::getTargetDefines().
llvm::CodeObjectVersionKind clang::TargetOptions::CodeObjectVersion |
Code object version for AMDGPU.
Definition at line 79 of file TargetOptions.h.
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::TargetInfo::CreateTargetInfo(), clang::CodeGenAction::ExecuteAction(), clang::targets::BPFTargetInfo::getTargetDefines(), clang::CodeGen::mergeDefaultFunctionDefinitionAttributes(), and clang::CompilerInstance::printDiagnosticStats().
llvm::VersionTuple clang::TargetOptions::DarwinTargetVariantSDKVersion |
The version of the darwin target variant SDK which was used during the compilation.
Definition at line 118 of file TargetOptions.h.
Referenced by GenerateTargetArgs(), and ParseTargetArgs().
std::string clang::TargetOptions::DarwinTargetVariantTriple |
The name of the darwin target- ariant triple to compile for.
Definition at line 114 of file TargetOptions.h.
std::string clang::TargetOptions::DxilValidatorVersion |
The validator version for dxil.
Definition at line 121 of file TargetOptions.h.
llvm::EABI clang::TargetOptions::EABIVersion = llvm::EABI::Default |
The EABI version to use.
Definition at line 48 of file TargetOptions.h.
Referenced by clang::targets::AArch64TargetInfo::AArch64TargetInfo(), and initTargetOptions().
llvm::StringMap<bool> clang::TargetOptions::FeatureMap |
The map of which features have been enabled disabled based on the command line.
Definition at line 62 of file TargetOptions.h.
Referenced by getOffloadArch(), clang::ASTContext::getOpenMPDefaultSimdAlign(), and clang::targets::AArch64TargetInfo::validateGlobalRegisterVariable().
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 58 of file TargetOptions.h.
Referenced by clang::CodeGenAction::ExecuteAction(), overrideFunctionFeaturesWithTargetFeatures(), and clang::CodeGen::CodeGenModule::Release().
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 54 of file TargetOptions.h.
Referenced by checkTargetOptions(), clang::TargetInfo::CreateTargetInfo(), and clang::targets::NVPTXTargetInfo::NVPTXTargetInfo().
If given, enables support for __int128_t and __uint128_t types.
Definition at line 72 of file TargetOptions.h.
std::string clang::TargetOptions::FPMath |
If given, the unit to use for floating point math.
Definition at line 42 of file TargetOptions.h.
Referenced by clang::TargetInfo::CreateTargetInfo().
std::string clang::TargetOptions::HLSLEntry |
The entry point name for HLSL shader being compiled as specified by -E.
Definition at line 124 of file TargetOptions.h.
Referenced by clang::SemaHLSL::ActOnTopLevelFunction(), and clang::HLSLFrontendAction::ExecuteAction().
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::targets::BaseSPIRTargetInfo::BaseSPIRTargetInfo(), and clang::targets::NVPTXTargetInfo::NVPTXTargetInfo().
uint64_t clang::TargetOptions::LargeDataThreshold |
Definition at line 103 of file TargetOptions.h.
Referenced by FixupInvocation().
std::string clang::TargetOptions::LinkerVersion |
If given, the version string of the linker in use.
Definition at line 51 of file TargetOptions.h.
If enabled, use 32-bit pointers for accessing const/local/shared address space.
Definition at line 76 of file TargetOptions.h.
Referenced by clang::targets::NVPTXTargetInfo::NVPTXTargetInfo().
std::vector<std::string> clang::TargetOptions::OpenCLExtensionsAsWritten |
The list of OpenCL extensions to enable or disable, as written on the command line.
Definition at line 69 of file TargetOptions.h.
llvm::StringMap<bool> clang::TargetOptions::OpenCLFeaturesMap |
Supported OpenCL extensions and optional core features.
Definition at line 65 of file TargetOptions.h.
llvm::VersionTuple clang::TargetOptions::SDKVersion |
The version of the SDK which was used during the compilation.
The option is used for two different purposes:
Definition at line 111 of file TargetOptions.h.
Referenced by GenerateTargetArgs(), and ParseTargetArgs().
std::string clang::TargetOptions::Triple |
The name of the target triple to compile for.
Definition at line 29 of file TargetOptions.h.
Referenced by clang::Interpreter::CreateExecutor(), clang::TargetInfo::CreateTargetInfo(), clang::CodeGenAction::ExecuteAction(), and FixupInvocation().
std::string clang::TargetOptions::TuneCPU |
If given, the name of the target CPU to tune code for.
Definition at line 39 of file TargetOptions.h.
Referenced by clang::TargetInfo::CreateTargetInfo(), clang::targets::LoongArchTargetInfo::getTargetDefines(), and clang::CodeGen::mergeDefaultFunctionDefinitionAttributes().