13#ifndef LLVM_LIB_TARGET_SPIRV_SPIRVSUBTARGET_H
14#define LLVM_LIB_TARGET_SPIRV_SPIRVSUBTARGET_H
30#define GET_SUBTARGETINFO_HEADER
31#include "SPIRVGenSubtargetInfo.inc"
35class SPIRVTargetMachine;
39 const unsigned PointerSize;
45 std::unique_ptr<SPIRVGlobalRegistry> GR;
53 std::unique_ptr<CallLowering> CallLoweringInfo;
54 std::unique_ptr<RegisterBankInfo> RegBankInfo;
56 std::unique_ptr<InstructionSelector> InstSelector;
60 void initAvailableExtensions();
61 void initAvailableExtInstSets();
91 return AvailableExtensions;
99 return CallLoweringInfo.get();
102 return RegBankInfo.get();
108 return InstSelector.get();
112 return &FrameLowering;
122 return ST->getTargetTriple().isSPIRV();
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
This file describes how to lower LLVM calls to machine code calls.
Interface for Targets to specify which operations they can successfully select and how the others sho...
const char LLVMTargetMachineRef TM
This file defines the SmallSet class.
Holds all the information related to register banks.
const SPIRVRegisterInfo & getRegisterInfo() const
unsigned getPointerSize() const
bool hasOpenCLImageSupport() const
SPIRVSubtarget & initSubtargetDependencies(StringRef CPU, StringRef FS)
bool isAtLeastOpenCLVer(uint32_t VerToCompareTo) const
InstructionSelector * getInstructionSelector() const override
const LegalizerInfo * getLegalizerInfo() const override
bool canDirectlyComparePointers() const
const SPIRVInstrInfo * getInstrInfo() const override
const SmallSet< SPIRV::Extension::Extension, 4 > & getAllAvailableExtensions() const
static bool classof(const TargetSubtargetInfo *ST)
SPIRVGlobalRegistry * getSPIRVGlobalRegistry() const
bool isAtLeastSPIRVVer(uint32_t VerToCompareTo) const
const SPIRVRegisterInfo * getRegisterInfo() const override
const SPIRVTargetLowering * getTargetLowering() const override
void ParseSubtargetFeatures(StringRef CPU, StringRef TuneCPU, StringRef FS)
bool canUseExtInstSet(SPIRV::InstructionSet::InstructionSet E) const
uint32_t getSPIRVVersion() const
const RegisterBankInfo * getRegBankInfo() const override
const CallLowering * getCallLowering() const override
bool hasOpenCLFullProfile() const
bool canUseExtension(SPIRV::Extension::Extension E) const
const SPIRVFrameLowering * getFrameLowering() const override
SmallSet - This maintains a set of unique values, optimizing for the case when the set is small (less...
StringRef - Represent a constant reference to a string, i.e.
TargetSubtargetInfo - Generic base class for all target subtargets.
Triple - Helper class for working with autoconf configuration names.
ArchType getArch() const
Get the parsed architecture type of this triple.
This is an optimization pass for GlobalISel generic memory operations.