|
LLVM 24.0.0git
|
#include "Target/SPIRV/SPIRVSubtarget.h"
Public Types | |
| enum | SPIRVEnvType { Kernel , Shader , Unknown } |
Static Public Member Functions | |
| static bool | classof (const TargetSubtargetInfo *ST) |
Definition at line 46 of file SPIRVSubtarget.h.
| Enumerator | |
|---|---|
| Kernel | |
| Shader | |
| Unknown | |
Definition at line 49 of file SPIRVSubtarget.h.
| SPIRVSubtarget::SPIRVSubtarget | ( | const Triple & | TT, |
| const std::string & | CPU, | ||
| const std::string & | FS, | ||
| const SPIRVTargetMachine & | TM ) |
Definition at line 42 of file SPIRVSubtarget.cpp.
References llvm::Triple::AMD, llvm::Triple::ChipStar, llvm::createSPIRVInstructionSelector(), getCLOpts(), llvm::SPIRVExtensionsParser::getValidExtensions(), if(), initAvailableExtensions(), initSubtargetDependencies(), llvm::Triple::Intel, Kernel, llvm::Triple::OpenCL, llvm::SPIRVExtensionsParser::parse(), llvm::reportFatalUsageError(), Shader, Unknown, and llvm::Triple::Vulkan.
Referenced by initSubtargetDependencies().
| bool SPIRVSubtarget::canDirectlyComparePointers | ( | ) | const |
Definition at line 157 of file SPIRVSubtarget.cpp.
References isAtLeastVer().
| bool SPIRVSubtarget::canUseExtension | ( | SPIRV::Extension::Extension | E | ) | const |
Definition at line 128 of file SPIRVSubtarget.cpp.
Referenced by llvm::addressSpaceToStorageClass().
| bool SPIRVSubtarget::canUseExtInstSet | ( | SPIRV::InstructionSet::InstructionSet | E | ) | const |
Definition at line 132 of file SPIRVSubtarget.cpp.
|
inlinestatic |
Definition at line 148 of file SPIRVSubtarget.h.
|
inline |
Definition at line 113 of file SPIRVSubtarget.h.
|
inline |
Definition at line 94 of file SPIRVSubtarget.h.
|
inlineoverride |
Definition at line 122 of file SPIRVSubtarget.h.
|
inline |
Definition at line 92 of file SPIRVSubtarget.h.
Referenced by SPIRVSubtarget().
|
inline |
Definition at line 97 of file SPIRVSubtarget.h.
Referenced by getExecutionModel(), isKernel(), and isShader().
|
inlineoverride |
Definition at line 138 of file SPIRVSubtarget.h.
|
inlineoverride |
Definition at line 134 of file SPIRVSubtarget.h.
|
inlineoverride |
Definition at line 137 of file SPIRVSubtarget.h.
Referenced by addConstantsToTrack(), deduceAndAssignTypeForGUnmerge(), doInsertBitcast(), and validateVec1Ops().
|
inlineoverride |
Definition at line 131 of file SPIRVSubtarget.h.
|
inlineoverride |
Definition at line 128 of file SPIRVSubtarget.h.
|
inline |
Definition at line 93 of file SPIRVSubtarget.h.
| SPIRV::InstructionSet::InstructionSet SPIRVSubtarget::getPreferredInstructionSet | ( | ) | const |
Definition at line 138 of file SPIRVSubtarget.cpp.
References isShader().
|
inlineoverride |
Definition at line 125 of file SPIRVSubtarget.h.
Referenced by doInsertBitcast().
|
inlineoverride |
Definition at line 144 of file SPIRVSubtarget.h.
Referenced by doInsertBitcast(), and validateVec1Ops().
|
inline |
Definition at line 120 of file SPIRVSubtarget.h.
Referenced by llvm::SPIRVLegalizerInfo::SPIRVLegalizerInfo().
|
inline |
Definition at line 106 of file SPIRVSubtarget.h.
|
inlineoverride |
Definition at line 141 of file SPIRVSubtarget.h.
|
inline |
Definition at line 105 of file SPIRVSubtarget.h.
|
inline |
Definition at line 110 of file SPIRVSubtarget.h.
|
inline |
Definition at line 111 of file SPIRVSubtarget.h.
| void SPIRVSubtarget::initAvailableExtensions | ( | const ExtensionSet & | AllowedExtIds | ) |
Definition at line 252 of file SPIRVSubtarget.cpp.
References llvm::detail::DenseSetImpl< ValueT, MapTy >::count(), and llvm::SPIRVExtensionsParser::getValidExtensions().
Referenced by SPIRVSubtarget(), and llvm::SPIRVTranslate().
| SPIRVSubtarget & SPIRVSubtarget::initSubtargetDependencies | ( | StringRef | CPU, |
| StringRef | FS ) |
Definition at line 122 of file SPIRVSubtarget.cpp.
References ParseSubtargetFeatures(), and SPIRVSubtarget().
Referenced by SPIRVSubtarget().
| bool SPIRVSubtarget::isAtLeastOpenCLVer | ( | VersionTuple | VerToCompareTo | ) | const |
Definition at line 149 of file SPIRVSubtarget.cpp.
References isAtLeastVer(), and isShader().
| bool SPIRVSubtarget::isAtLeastSPIRVVer | ( | VersionTuple | VerToCompareTo | ) | const |
Definition at line 145 of file SPIRVSubtarget.cpp.
References isAtLeastVer().
|
inline |
Definition at line 98 of file SPIRVSubtarget.h.
References getEnv(), and Kernel.
Referenced by getExecutionModel(), and resolveEnvFromModule().
|
inline |
Definition at line 100 of file SPIRVSubtarget.h.
|
inline |
Definition at line 101 of file SPIRVSubtarget.h.
References llvm::Triple::spirv32, and llvm::Triple::spirv64.
|
inline |
Definition at line 99 of file SPIRVSubtarget.h.
References getEnv(), and Shader.
Referenced by getPreferredInstructionSet(), and isAtLeastOpenCLVer().
| void llvm::SPIRVSubtarget::ParseSubtargetFeatures | ( | StringRef | CPU, |
| StringRef | TuneCPU, | ||
| StringRef | FS ) |
Referenced by initSubtargetDependencies().
Definition at line 205 of file SPIRVSubtarget.cpp.
References llvm::any_of(), assert(), llvm::mdconst::extract(), F, isKernel(), Kernel, llvm::report_fatal_error(), setEnv(), Shader, and Unknown.
| void SPIRVSubtarget::setEnv | ( | SPIRVEnvType | E | ) |
Definition at line 190 of file SPIRVSubtarget.cpp.
References llvm::report_fatal_error(), and Unknown.
Referenced by resolveEnvFromModule().