LLVM: llvm::SPIRVSubtarget Class Reference (original) (raw)

#include "[Target/SPIRV/SPIRVSubtarget.h](SPIRVSubtarget%5F8h%5Fsource.html)"

Public Types
enum SPIRVEnvType { Kernel, Shader, Unknown }
Public Member Functions
SPIRVSubtarget (const Triple &TT, const std::string &CPU, const std::string &FS, const SPIRVTargetMachine &TM)
SPIRVSubtarget & initSubtargetDependencies (StringRef CPU, StringRef FS)
void initAvailableExtensions (const std::set< SPIRV::Extension::Extension > &AllowedExtIds)
void ParseSubtargetFeatures (StringRef CPU, StringRef TuneCPU, StringRef FS)
unsigned getPointerSize () const
unsigned getBound () const
bool canDirectlyComparePointers () const
void setEnv (SPIRVEnvType E)
SPIRVEnvType getEnv () const
bool isKernel () const
bool isShader () const
bool isLogicalSPIRV () const
bool isPhysicalSPIRV () const
const std::string & getTargetTripleAsStr () const
VersionTuple getSPIRVVersion () const
bool isAtLeastSPIRVVer (VersionTuple VerToCompareTo) const
bool isAtLeastOpenCLVer (VersionTuple VerToCompareTo) const
bool hasOpenCLFullProfile () const
bool hasOpenCLImageSupport () const
const SmallSet< SPIRV::Extension::Extension, 4 > & getAllAvailableExtensions () const
bool canUseExtension (SPIRV::Extension::Extension E) const
bool canUseExtInstSet (SPIRV::InstructionSet::InstructionSet E) const
SPIRV::InstructionSet::InstructionSet getPreferredInstructionSet () const
SPIRVGlobalRegistry * getSPIRVGlobalRegistry () const
const CallLowering * getCallLowering () const override
const RegisterBankInfo * getRegBankInfo () const override
const LegalizerInfo * getLegalizerInfo () const override
InstructionSelector * getInstructionSelector () const override
const InlineAsmLowering * getInlineAsmLowering () const override
const SPIRVInstrInfo * getInstrInfo () const override
const SPIRVFrameLowering * getFrameLowering () const override
const SPIRVTargetLowering * getTargetLowering () const override
const SPIRVRegisterInfo * getRegisterInfo () const override
Static Public Attributes
static constexpr unsigned MaxLegalAddressSpace = 6

Definition at line 38 of file SPIRVSubtarget.h.

SPIRVEnvType

Definition at line 52 of file SPIRVSubtarget.cpp.

References llvm::Triple::AMD, llvm::createSPIRVInstructionSelector(), Extensions, llvm::SPIRVExtensionsParser::getValidExtensions(), if(), initAvailableExtensions(), initSubtargetDependencies(), llvm::Triple::Intel, Kernel, llvm::Triple::OpenCL, Shader, Unknown, and llvm::Triple::Vulkan.

Referenced by initSubtargetDependencies().

addExtensionsToClOpt()

void SPIRVSubtarget::addExtensionsToClOpt ( const std::set< SPIRV::Extension::Extension > & AllowList) static

canDirectlyComparePointers()

bool SPIRVSubtarget::canDirectlyComparePointers ( ) const

canUseExtension()

bool SPIRVSubtarget::canUseExtension ( SPIRV::Extension::Extension E ) const

canUseExtInstSet()

bool SPIRVSubtarget::canUseExtInstSet ( SPIRV::InstructionSet::InstructionSet E ) const

classof()

getAllAvailableExtensions()

const SmallSet< SPIRV::Extension::Extension, 4 > & llvm::SPIRVSubtarget::getAllAvailableExtensions ( ) const inline

getBound()

unsigned llvm::SPIRVSubtarget::getBound ( ) const inline

getCallLowering()

getEnv()

SPIRVEnvType llvm::SPIRVSubtarget::getEnv ( ) const inline

getFrameLowering()

getInlineAsmLowering()

getInstrInfo()

getInstructionSelector()

getLegalizerInfo()

getPointerSize()

unsigned llvm::SPIRVSubtarget::getPointerSize ( ) const inline

getPreferredInstructionSet()

SPIRV::InstructionSet::InstructionSet SPIRVSubtarget::getPreferredInstructionSet ( ) const

getRegBankInfo()

getRegisterInfo()

getSPIRVGlobalRegistry()

getSPIRVVersion()

VersionTuple llvm::SPIRVSubtarget::getSPIRVVersion ( ) const inline

getTargetLowering()

getTargetTripleAsStr()

const std::string & llvm::SPIRVSubtarget::getTargetTripleAsStr ( ) const inline

hasOpenCLFullProfile()

bool llvm::SPIRVSubtarget::hasOpenCLFullProfile ( ) const inline

hasOpenCLImageSupport()

bool llvm::SPIRVSubtarget::hasOpenCLImageSupport ( ) const inline

initAvailableExtensions()

void SPIRVSubtarget::initAvailableExtensions ( const std::set< SPIRV::Extension::Extension > & AllowedExtIds )

initSubtargetDependencies()

isAtLeastOpenCLVer()

isAtLeastSPIRVVer()

isKernel()

bool llvm::SPIRVSubtarget::isKernel ( ) const inline

isLogicalSPIRV()

bool llvm::SPIRVSubtarget::isLogicalSPIRV ( ) const inline

isPhysicalSPIRV()

bool llvm::SPIRVSubtarget::isPhysicalSPIRV ( ) const inline

isShader()

bool llvm::SPIRVSubtarget::isShader ( ) const inline

ParseSubtargetFeatures()

setEnv()

void llvm::SPIRVSubtarget::setEnv ( SPIRVEnvType E) inline

MaxLegalAddressSpace

unsigned llvm::SPIRVSubtarget::MaxLegalAddressSpace = 6 staticconstexpr

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