LLVM 20.0.0git
Namespaces | Macros | Functions
SPIRVUtils.h File Reference
#include "MCTargetDesc/SPIRVBaseInfo.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/TypedPointerType.h"
#include <string>

Go to the source code of this file.

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
 

Macros

#define TYPED_PTR_TARGET_EXT_NAME   "spirv.$TypedPointerType"
 

Functions

void llvm::addStringImm (const StringRef &Str, MCInst &Inst)
 
void llvm::addStringImm (const StringRef &Str, MachineInstrBuilder &MIB)
 
void llvm::addStringImm (const StringRef &Str, IRBuilder<> &B, std::vector< Value * > &Args)
 
std::string llvm::getStringImm (const MachineInstr &MI, unsigned StartIndex)
 
void llvm::addNumImm (const APInt &Imm, MachineInstrBuilder &MIB)
 
void llvm::buildOpName (Register Target, const StringRef &Name, MachineIRBuilder &MIRBuilder)
 
void llvm::buildOpDecorate (Register Reg, MachineIRBuilder &MIRBuilder, SPIRV::Decoration::Decoration Dec, const std::vector< uint32_t > &DecArgs, StringRef StrImm)
 
void llvm::buildOpDecorate (Register Reg, MachineInstr &I, const SPIRVInstrInfo &TII, SPIRV::Decoration::Decoration Dec, const std::vector< uint32_t > &DecArgs, StringRef StrImm)
 
void llvm::buildOpSpirvDecorations (Register Reg, MachineIRBuilder &MIRBuilder, const MDNode *GVarMD)
 
unsigned llvm::storageClassToAddressSpace (SPIRV::StorageClass::StorageClass SC)
 
SPIRV::StorageClass::StorageClass llvm::addressSpaceToStorageClass (unsigned AddrSpace, const SPIRVSubtarget &STI)
 
SPIRV::MemorySemantics::MemorySemantics llvm::getMemSemanticsForStorageClass (SPIRV::StorageClass::StorageClass SC)
 
SPIRV::MemorySemantics::MemorySemantics llvm::getMemSemantics (AtomicOrdering Ord)
 
MachineInstr * llvm::getDefInstrMaybeConstant (Register &ConstReg, const MachineRegisterInfo *MRI)
 
uint64_t llvm::getIConstVal (Register ConstReg, const MachineRegisterInfo *MRI)
 
bool llvm::isSpvIntrinsic (const MachineInstr &MI, Intrinsic::ID IntrinsicID)
 
Typellvm::getMDOperandAsType (const MDNode *N, unsigned I)
 
std::string llvm::getOclOrSpirvBuiltinDemangledName (StringRef Name)
 
bool llvm::hasBuiltinTypePrefix (StringRef Name)
 
bool llvm::isSpecialOpaqueType (const Type *Ty)
 
bool llvm::isEntryPoint (const Function &F)
 
Typellvm::parseBasicTypeName (StringRef &TypeName, LLVMContext &Ctx)
 
bool llvm::isTypedPointerTy (const Type *T)
 
bool llvm::isUntypedPointerTy (const Type *T)
 
bool llvm::isPointerTy (const Type *T)
 
unsigned llvm::getPointerAddressSpace (const Type *T)
 
bool llvm::hasPointeeTypeAttr (Argument *Arg)
 
Typellvm::getPointeeTypeByAttr (Argument *Arg)
 
Typellvm::reconstructFunctionType (Function *F)
 
Typellvm::getTypedPointerWrapper (Type *ElemTy, unsigned AS)
 
bool llvm::isTypedPointerWrapper (TargetExtType *ExtTy)
 
Typellvm::applyWrappers (Type *Ty)
 
Typellvm::getPointeeType (Type *Ty)
 
bool llvm::isUntypedEquivalentToTyExt (Type *Ty1, Type *Ty2)
 
bool llvm::isEquivalentTypes (Type *Ty1, Type *Ty2)
 
Typellvm::toTypedPointer (Type *Ty)
 
Typellvm::toTypedFunPointer (FunctionType *FTy)
 
const Typellvm::unifyPtrType (const Type *Ty)
 

Macro Definition Documentation

◆ TYPED_PTR_TARGET_EXT_NAME

#define TYPED_PTR_TARGET_EXT_NAME   "spirv.$TypedPointerType"

Definition at line 156 of file SPIRVUtils.h.