LLVM 20.0.0git
Namespaces | Functions
NVPTXUtilities.cpp File Reference
#include "NVPTXUtilities.h"
#include "NVPTX.h"
#include "NVPTXTargetMachine.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/GlobalVariable.h"
#include "llvm/IR/Module.h"
#include "llvm/Support/Alignment.h"
#include "llvm/Support/Mutex.h"
#include <cstring>
#include <map>
#include <mutex>
#include <optional>
#include <string>
#include <vector>

Go to the source code of this file.

Namespaces

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

Functions

void llvm::clearAnnotationCache (const Module *Mod)
 
static void llvm::readIntVecFromMDNode (const MDNode *MetadataNode, std::vector< unsigned > &Vec)
 
static void llvm::cacheAnnotationFromMD (const MDNode *MetadataNode, key_val_pair_t &retval)
 
static void llvm::cacheAnnotationFromMD (const Module *m, const GlobalValue *gv)
 
static std::optional< unsignedllvm::findOneNVVMAnnotation (const GlobalValue *gv, const std::string &prop)
 
static bool llvm::findAllNVVMAnnotation (const GlobalValue *gv, const std::string &prop, std::vector< unsigned > &retval)
 
static bool llvm::globalHasNVVMAnnotation (const Value &V, const std::string &Prop)
 
static bool llvm::argHasNVVMAnnotation (const Value &Val, const std::string &Annotation, const bool StartArgIndexAtOne=false)
 
bool llvm::isParamGridConstant (const Value &V)
 
bool llvm::isTexture (const Value &V)
 
bool llvm::isSurface (const Value &V)
 
bool llvm::isSampler (const Value &V)
 
bool llvm::isImageReadOnly (const Value &V)
 
bool llvm::isImageWriteOnly (const Value &V)
 
bool llvm::isImageReadWrite (const Value &V)
 
bool llvm::isImage (const Value &V)
 
bool llvm::isManaged (const Value &V)
 
StringRef llvm::getTextureName (const Value &V)
 
StringRef llvm::getSurfaceName (const Value &V)
 
StringRef llvm::getSamplerName (const Value &V)
 
std::optional< unsignedllvm::getMaxNTIDx (const Function &F)
 
std::optional< unsignedllvm::getMaxNTIDy (const Function &F)
 
std::optional< unsignedllvm::getMaxNTIDz (const Function &F)
 
std::optional< unsignedllvm::getMaxNTID (const Function &F)
 
std::optional< unsignedllvm::getClusterDimx (const Function &F)
 
std::optional< unsignedllvm::getClusterDimy (const Function &F)
 
std::optional< unsignedllvm::getClusterDimz (const Function &F)
 
std::optional< unsignedllvm::getMaxClusterRank (const Function &F)
 
std::optional< unsignedllvm::getReqNTIDx (const Function &F)
 
std::optional< unsignedllvm::getReqNTIDy (const Function &F)
 
std::optional< unsignedllvm::getReqNTIDz (const Function &F)
 
std::optional< unsignedllvm::getReqNTID (const Function &F)
 
std::optional< unsignedllvm::getMinCTASm (const Function &F)
 
std::optional< unsignedllvm::getMaxNReg (const Function &F)
 
bool llvm::isKernelFunction (const Function &F)
 
MaybeAlign llvm::getAlign (const Function &F, unsigned Index)
 
MaybeAlign llvm::getAlign (const CallInst &I, unsigned Index)
 
Function * llvm::getMaybeBitcastedCallee (const CallBase *CB)
 
bool llvm::shouldEmitPTXNoReturn (const Value *V, const TargetMachine &TM)
 
bool llvm::Isv2x16VT (EVT VT)