LLVM 22.0.0git
Public Member Functions | List of all members
llvm::SPIRVIRMapping Class Reference

#include "Target/SPIRV/SPIRVIRMapping.h"

Inheritance diagram for llvm::SPIRVIRMapping:
[legend]

Public Member Functions

bool add (SPIRV::IRHandle Handle, const MachineInstr *MI)
 
bool erase (const MachineInstr *MI)
 
const MachineInstrfindMI (SPIRV::IRHandle Handle, const MachineFunction *MF)
 
Register find (SPIRV::IRHandle Handle, const MachineFunction *MF)
 
bool add (const Type *PointeeTy, unsigned AddressSpace, const MachineInstr *MI)
 
Register find (const Type *PointeeTy, unsigned AddressSpace, const MachineFunction *MF)
 
const MachineInstrfindMI (const Type *PointeeTy, unsigned AddressSpace, const MachineFunction *MF)
 
bool add (const Value *V, const MachineInstr *MI)
 
bool add (const Type *T, bool RequiresExplicitLayout, const MachineInstr *MI)
 
bool add (const MachineInstr *Obj, const MachineInstr *MI)
 
Register find (const Value *V, const MachineFunction *MF)
 
Register find (const Type *T, bool RequiresExplicitLayout, const MachineFunction *MF)
 
Register find (const MachineInstr *MI, const MachineFunction *MF)
 
const MachineInstrfindMI (const Value *Obj, const MachineFunction *MF)
 
const MachineInstrfindMI (const Type *T, bool RequiresExplicitLayout, const MachineFunction *MF)
 
const MachineInstrfindMI (const MachineInstr *Obj, const MachineFunction *MF)
 

Detailed Description

Definition at line 181 of file SPIRVIRMapping.h.

Member Function Documentation

◆ add() [1/5]

bool llvm::SPIRVIRMapping::add ( const MachineInstr Obj,
const MachineInstr MI 
)
inline

Definition at line 262 of file SPIRVIRMapping.h.

References add(), llvm::SPIRV::handle(), and MI.

◆ add() [2/5]

bool llvm::SPIRVIRMapping::add ( const Type PointeeTy,
unsigned  AddressSpace,
const MachineInstr MI 
)
inline

Definition at line 238 of file SPIRVIRMapping.h.

References add(), llvm::SPIRV::irhandle_pointee(), and MI.

◆ add() [3/5]

bool llvm::SPIRVIRMapping::add ( const Type T,
bool  RequiresExplicitLayout,
const MachineInstr MI 
)
inline

◆ add() [4/5]

bool llvm::SPIRVIRMapping::add ( const Value V,
const MachineInstr MI 
)
inline

Definition at line 251 of file SPIRVIRMapping.h.

References add(), llvm::SPIRV::handle(), and MI.

◆ add() [5/5]

bool llvm::SPIRVIRMapping::add ( SPIRV::IRHandle  Handle,
const MachineInstr MI 
)
inline

Definition at line 186 of file SPIRVIRMapping.h.

References assert(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::end(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::erase(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::find(), llvm::SPIRV::getIRHandleMF(), llvm::SPIRV::getMIKey(), MI, and llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::try_emplace().

Referenced by add(), addConstantsToTrack(), llvm::SPIRVGlobalRegistry::buildConstantFP(), llvm::SPIRVGlobalRegistry::buildConstantInt(), llvm::SPIRVGlobalRegistry::buildGlobalVariable(), llvm::SPIRVGlobalRegistry::createConstFP(), llvm::SPIRVGlobalRegistry::createConstInt(), generateAssignInstrs(), llvm::SPIRVGlobalRegistry::getOrCreateConstNullPtr(), llvm::SPIRVGlobalRegistry::getOrCreateLayoutType(), llvm::SPIRVGlobalRegistry::getOrCreateOpTypeByOpcode(), llvm::SPIRVGlobalRegistry::getOrCreateOpTypeCoopMatr(), llvm::SPIRVGlobalRegistry::getOrCreateOpTypeDeviceEvent(), llvm::SPIRVGlobalRegistry::getOrCreateOpTypeFunctionWithArgs(), llvm::SPIRVGlobalRegistry::getOrCreateOpTypePipe(), llvm::SPIRVGlobalRegistry::getOrCreateOpTypeSampledImage(), llvm::SPIRVGlobalRegistry::getOrCreateOpTypeSampler(), llvm::SPIRVGlobalRegistry::getOrCreateSPIRVBoolType(), llvm::SPIRVGlobalRegistry::getOrCreateSPIRVType(), llvm::SPIRVGlobalRegistry::getOrCreateSPIRVVectorType(), llvm::SPIRVGlobalRegistry::getOrCreateUndef(), llvm::SPIRVGlobalRegistry::getOrCreateUnknownType(), llvm::SPIRVGlobalRegistry::getOrCreateVulkanBufferType(), insertInlineAsmProcess(), and llvm::SPIRVCallLowering::lowerFormalArguments().

◆ erase()

bool llvm::SPIRVIRMapping::erase ( const MachineInstr MI)
inline

◆ find() [1/5]

Register llvm::SPIRVIRMapping::find ( const MachineInstr MI,
const MachineFunction MF 
)
inline

Definition at line 277 of file SPIRVIRMapping.h.

References find(), llvm::SPIRV::handle(), and MI.

◆ find() [2/5]

Register llvm::SPIRVIRMapping::find ( const Type PointeeTy,
unsigned  AddressSpace,
const MachineFunction MF 
)
inline

Definition at line 242 of file SPIRVIRMapping.h.

References find(), and llvm::SPIRV::irhandle_pointee().

◆ find() [3/5]

Register llvm::SPIRVIRMapping::find ( const Type T,
bool  RequiresExplicitLayout,
const MachineFunction MF 
)
inline

◆ find() [4/5]

Register llvm::SPIRVIRMapping::find ( const Value V,
const MachineFunction MF 
)
inline

Definition at line 266 of file SPIRVIRMapping.h.

References find(), and llvm::SPIRV::handle().

◆ find() [5/5]

Register llvm::SPIRVIRMapping::find ( SPIRV::IRHandle  Handle,
const MachineFunction MF 
)
inline

◆ findMI() [1/5]

const MachineInstr * llvm::SPIRVIRMapping::findMI ( const MachineInstr Obj,
const MachineFunction MF 
)
inline

Definition at line 292 of file SPIRVIRMapping.h.

References findMI(), and llvm::SPIRV::handle().

◆ findMI() [2/5]

const MachineInstr * llvm::SPIRVIRMapping::findMI ( const Type PointeeTy,
unsigned  AddressSpace,
const MachineFunction MF 
)
inline

Definition at line 246 of file SPIRVIRMapping.h.

References findMI(), and llvm::SPIRV::irhandle_pointee().

◆ findMI() [3/5]

const MachineInstr * llvm::SPIRVIRMapping::findMI ( const Type T,
bool  RequiresExplicitLayout,
const MachineFunction MF 
)
inline

◆ findMI() [4/5]

const MachineInstr * llvm::SPIRVIRMapping::findMI ( const Value Obj,
const MachineFunction MF 
)
inline

Definition at line 281 of file SPIRVIRMapping.h.

References findMI(), and llvm::SPIRV::handle().

◆ findMI() [5/5]

const MachineInstr * llvm::SPIRVIRMapping::findMI ( SPIRV::IRHandle  Handle,
const MachineFunction MF 
)
inline

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