LLVM 20.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::SPIRV::ModuleAnalysisInfo Struct Reference

#include "Target/SPIRV/SPIRVModuleAnalysis.h"

Public Member Functions

Register getFuncReg (const Function *F)
 
Register getExtInstSetReg (unsigned SetNum)
 
InstrListgetMSInstrs (unsigned MSType)
 
void setSkipEmission (MachineInstr *MI)
 
bool getSkipEmission (const MachineInstr *MI)
 
void setRegisterAlias (const MachineFunction *MF, Register Reg, Register AliasReg)
 
Register getRegisterAlias (const MachineFunction *MF, Register Reg)
 
bool hasRegisterAlias (const MachineFunction *MF, Register Reg)
 
unsigned getNextID ()
 
bool hasMBBRegister (const MachineBasicBlock &MBB)
 
Register getOrCreateMBBRegister (const MachineBasicBlock &MBB)
 

Public Attributes

RequirementHandler Reqs
 
MemoryModel::MemoryModel Mem
 
AddressingModel::AddressingModel Addr
 
SourceLanguage::SourceLanguage SrcLang
 
unsigned SrcLangVersion
 
StringSet SrcExt
 
DenseMap< unsigned, RegisterExtInstSetMap
 
SmallVector< MachineInstr *, 4 > GlobalVarList
 
DenseMap< const Function *, RegisterFuncMap
 
DenseSet< MachineInstr * > InstrsToDelete
 
RegisterAliasMapTy RegisterAliasTable
 
unsigned MaxID
 
InstrList MS [NUM_MODULE_SECTIONS]
 
DenseMap< int, RegisterBBNumToRegMap
 

Detailed Description

Definition at line 134 of file SPIRVModuleAnalysis.h.

Member Function Documentation

◆ getExtInstSetReg()

Register llvm::SPIRV::ModuleAnalysisInfo::getExtInstSetReg ( unsigned  SetNum)
inline

Definition at line 167 of file SPIRVModuleAnalysis.h.

References ExtInstSetMap.

Referenced by llvm::SPIRVMCInstLower::lower().

◆ getFuncReg()

Register llvm::SPIRV::ModuleAnalysisInfo::getFuncReg ( const Function F)
inline

Definition at line 161 of file SPIRVModuleAnalysis.h.

References assert(), F, and FuncMap.

Referenced by addOpsFromMDNode(), and llvm::SPIRVMCInstLower::lower().

◆ getMSInstrs()

InstrList & llvm::SPIRV::ModuleAnalysisInfo::getMSInstrs ( unsigned  MSType)
inline

Definition at line 168 of file SPIRVModuleAnalysis.h.

References MS.

◆ getNextID()

unsigned llvm::SPIRV::ModuleAnalysisInfo::getNextID ( )
inline

Definition at line 188 of file SPIRVModuleAnalysis.h.

References MaxID.

Referenced by getOrCreateMBBRegister().

◆ getOrCreateMBBRegister()

Register llvm::SPIRV::ModuleAnalysisInfo::getOrCreateMBBRegister ( const MachineBasicBlock MBB)
inline

◆ getRegisterAlias()

Register llvm::SPIRV::ModuleAnalysisInfo::getRegisterAlias ( const MachineFunction MF,
Register  Reg 
)
inline

Definition at line 177 of file SPIRVModuleAnalysis.h.

References Reg, and RegisterAliasTable.

Referenced by instrToSignature(), and llvm::SPIRVMCInstLower::lower().

◆ getSkipEmission()

bool llvm::SPIRV::ModuleAnalysisInfo::getSkipEmission ( const MachineInstr MI)
inline

◆ hasMBBRegister()

bool llvm::SPIRV::ModuleAnalysisInfo::hasMBBRegister ( const MachineBasicBlock MBB)
inline

Definition at line 189 of file SPIRVModuleAnalysis.h.

References BBNumToRegMap, and MBB.

◆ hasRegisterAlias()

bool llvm::SPIRV::ModuleAnalysisInfo::hasRegisterAlias ( const MachineFunction MF,
Register  Reg 
)
inline

Definition at line 184 of file SPIRVModuleAnalysis.h.

References Reg, and RegisterAliasTable.

◆ setRegisterAlias()

void llvm::SPIRV::ModuleAnalysisInfo::setRegisterAlias ( const MachineFunction MF,
Register  Reg,
Register  AliasReg 
)
inline

Definition at line 173 of file SPIRVModuleAnalysis.h.

References Reg, and RegisterAliasTable.

◆ setSkipEmission()

void llvm::SPIRV::ModuleAnalysisInfo::setSkipEmission ( MachineInstr MI)
inline

Member Data Documentation

◆ Addr

AddressingModel::AddressingModel llvm::SPIRV::ModuleAnalysisInfo::Addr

Definition at line 137 of file SPIRVModuleAnalysis.h.

◆ BBNumToRegMap

DenseMap<int, Register> llvm::SPIRV::ModuleAnalysisInfo::BBNumToRegMap

Definition at line 159 of file SPIRVModuleAnalysis.h.

Referenced by getOrCreateMBBRegister(), and hasMBBRegister().

◆ ExtInstSetMap

DenseMap<unsigned, Register> llvm::SPIRV::ModuleAnalysisInfo::ExtInstSetMap

Definition at line 142 of file SPIRVModuleAnalysis.h.

Referenced by getExtInstSetReg().

◆ FuncMap

DenseMap<const Function *, Register> llvm::SPIRV::ModuleAnalysisInfo::FuncMap

Definition at line 146 of file SPIRVModuleAnalysis.h.

Referenced by getFuncReg().

◆ GlobalVarList

SmallVector<MachineInstr *, 4> llvm::SPIRV::ModuleAnalysisInfo::GlobalVarList

Definition at line 144 of file SPIRVModuleAnalysis.h.

◆ InstrsToDelete

DenseSet<MachineInstr *> llvm::SPIRV::ModuleAnalysisInfo::InstrsToDelete

Definition at line 149 of file SPIRVModuleAnalysis.h.

Referenced by getSkipEmission(), and setSkipEmission().

◆ MaxID

unsigned llvm::SPIRV::ModuleAnalysisInfo::MaxID

Definition at line 155 of file SPIRVModuleAnalysis.h.

Referenced by getNextID(), and llvm::SPIRVModuleAnalysis::runOnModule().

◆ Mem

MemoryModel::MemoryModel llvm::SPIRV::ModuleAnalysisInfo::Mem

Definition at line 136 of file SPIRVModuleAnalysis.h.

◆ MS

InstrList llvm::SPIRV::ModuleAnalysisInfo::MS[NUM_MODULE_SECTIONS]

◆ RegisterAliasTable

RegisterAliasMapTy llvm::SPIRV::ModuleAnalysisInfo::RegisterAliasTable

Definition at line 153 of file SPIRVModuleAnalysis.h.

Referenced by getRegisterAlias(), hasRegisterAlias(), and setRegisterAlias().

◆ Reqs

RequirementHandler llvm::SPIRV::ModuleAnalysisInfo::Reqs

◆ SrcExt

StringSet llvm::SPIRV::ModuleAnalysisInfo::SrcExt

Definition at line 140 of file SPIRVModuleAnalysis.h.

◆ SrcLang

SourceLanguage::SourceLanguage llvm::SPIRV::ModuleAnalysisInfo::SrcLang

Definition at line 138 of file SPIRVModuleAnalysis.h.

◆ SrcLangVersion

unsigned llvm::SPIRV::ModuleAnalysisInfo::SrcLangVersion

Definition at line 139 of file SPIRVModuleAnalysis.h.


The documentation for this struct was generated from the following file: