LLVM  16.0.0git
Public Member Functions | List of all members
llvm::SPIRVSubtarget Class Reference

#include "Target/SPIRV/SPIRVSubtarget.h"

Inheritance diagram for llvm::SPIRVSubtarget:
Inheritance graph
[legend]
Collaboration diagram for llvm::SPIRVSubtarget:
Collaboration graph
[legend]

Public Member Functions

 SPIRVSubtarget (const Triple &TT, const std::string &CPU, const std::string &FS, const SPIRVTargetMachine &TM)
 
SPIRVSubtargetinitSubtargetDependencies (StringRef CPU, StringRef FS)
 
void ParseSubtargetFeatures (StringRef CPU, StringRef TuneCPU, StringRef FS)
 
unsigned getPointerSize () const
 
bool canDirectlyComparePointers () const
 
bool isOpenCLEnv () const
 
uint32_t getSPIRVVersion () const
 
bool isAtLeastSPIRVVer (uint32_t VerToCompareTo) const
 
bool isAtLeastOpenCLVer (uint32_t VerToCompareTo) const
 
bool hasOpenCLFullProfile () const
 
bool hasOpenCLImageSupport () const
 
bool canUseExtension (SPIRV::Extension::Extension E) const
 
SPIRVGlobalRegistrygetSPIRVGlobalRegistry () const
 
const CallLoweringgetCallLowering () const override
 
const RegisterBankInfogetRegBankInfo () const override
 
const LegalizerInfogetLegalizerInfo () const override
 
InstructionSelectorgetInstructionSelector () const override
 
const SPIRVInstrInfogetInstrInfo () const override
 
const SPIRVFrameLoweringgetFrameLowering () const override
 
const SPIRVTargetLoweringgetTargetLowering () const override
 
const SPIRVRegisterInfogetRegisterInfo () const override
 

Detailed Description

Definition at line 35 of file SPIRVSubtarget.h.

Constructor & Destructor Documentation

◆ SPIRVSubtarget()

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::createSPIRVInstructionSelector(), and TM.

Member Function Documentation

◆ canDirectlyComparePointers()

bool SPIRVSubtarget::canDirectlyComparePointers ( ) const

Definition at line 81 of file SPIRVSubtarget.cpp.

References isAtLeastVer().

◆ canUseExtension()

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

Definition at line 68 of file SPIRVSubtarget.cpp.

References llvm::SmallSet< T, N, C >::contains(), and E.

◆ getCallLowering()

const CallLowering* llvm::SPIRVSubtarget::getCallLowering ( ) const
inlineoverride

Definition at line 84 of file SPIRVSubtarget.h.

◆ getFrameLowering()

const SPIRVFrameLowering* llvm::SPIRVSubtarget::getFrameLowering ( ) const
inlineoverride

Definition at line 97 of file SPIRVSubtarget.h.

◆ getInstrInfo()

const SPIRVInstrInfo* llvm::SPIRVSubtarget::getInstrInfo ( ) const
inlineoverride

Definition at line 96 of file SPIRVSubtarget.h.

◆ getInstructionSelector()

InstructionSelector* llvm::SPIRVSubtarget::getInstructionSelector ( ) const
inlineoverride

Definition at line 93 of file SPIRVSubtarget.h.

◆ getLegalizerInfo()

const LegalizerInfo* llvm::SPIRVSubtarget::getLegalizerInfo ( ) const
inlineoverride

Definition at line 90 of file SPIRVSubtarget.h.

◆ getPointerSize()

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

Definition at line 68 of file SPIRVSubtarget.h.

◆ getRegBankInfo()

const RegisterBankInfo* llvm::SPIRVSubtarget::getRegBankInfo ( ) const
inlineoverride

Definition at line 87 of file SPIRVSubtarget.h.

◆ getRegisterInfo()

const SPIRVRegisterInfo* llvm::SPIRVSubtarget::getRegisterInfo ( ) const
inlineoverride

Definition at line 103 of file SPIRVSubtarget.h.

References llvm::SPIRVInstrInfo::getRegisterInfo().

◆ getSPIRVGlobalRegistry()

SPIRVGlobalRegistry* llvm::SPIRVSubtarget::getSPIRVGlobalRegistry ( ) const
inline

Definition at line 82 of file SPIRVSubtarget.h.

◆ getSPIRVVersion()

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

Definition at line 74 of file SPIRVSubtarget.h.

◆ getTargetLowering()

const SPIRVTargetLowering* llvm::SPIRVSubtarget::getTargetLowering ( ) const
inlineoverride

Definition at line 100 of file SPIRVSubtarget.h.

◆ hasOpenCLFullProfile()

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

Definition at line 78 of file SPIRVSubtarget.h.

◆ hasOpenCLImageSupport()

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

Definition at line 79 of file SPIRVSubtarget.h.

◆ initSubtargetDependencies()

SPIRVSubtarget & SPIRVSubtarget::initSubtargetDependencies ( StringRef  CPU,
StringRef  FS 
)

Definition at line 58 of file SPIRVSubtarget.cpp.

References llvm::X86AS::FS, and ParseSubtargetFeatures().

◆ isAtLeastOpenCLVer()

bool SPIRVSubtarget::isAtLeastOpenCLVer ( uint32_t  VerToCompareTo) const

Definition at line 76 of file SPIRVSubtarget.cpp.

References isAtLeastVer().

◆ isAtLeastSPIRVVer()

bool SPIRVSubtarget::isAtLeastSPIRVVer ( uint32_t  VerToCompareTo) const

Definition at line 72 of file SPIRVSubtarget.cpp.

References isAtLeastVer().

◆ isOpenCLEnv()

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

Definition at line 73 of file SPIRVSubtarget.h.

◆ ParseSubtargetFeatures()

void llvm::SPIRVSubtarget::ParseSubtargetFeatures ( StringRef  CPU,
StringRef  TuneCPU,
StringRef  FS 
)

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