LLVM 19.0.0git
Namespaces | Functions
NVPTXUtilities.cpp File Reference
#include "NVPTXUtilities.h"
#include "NVPTX.h"
#include "NVPTXTargetMachine.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/GlobalVariable.h"
#include "llvm/IR/InstIterator.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/Operator.h"
#include "llvm/Support/Alignment.h"
#include "llvm/Support/Mutex.h"
#include <algorithm>
#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::cacheAnnotationFromMD (const MDNode *md, key_val_pair_t &retval)
 
static void llvm::cacheAnnotationFromMD (const Module *m, const GlobalValue *gv)
 
bool llvm::findOneNVVMAnnotation (const GlobalValue *gv, const std::string &prop, unsigned &retval)
 
static std::optional< unsignedllvm::findOneNVVMAnnotation (const GlobalValue &GV, const std::string &PropName)
 
bool llvm::findAllNVVMAnnotation (const GlobalValue *gv, const std::string &prop, std::vector< unsigned > &retval)
 
bool llvm::isTexture (const Value &val)
 
bool llvm::isSurface (const Value &val)
 
bool llvm::isSampler (const Value &val)
 
bool llvm::isImageReadOnly (const Value &val)
 
bool llvm::isImageWriteOnly (const Value &val)
 
bool llvm::isImageReadWrite (const Value &val)
 
bool llvm::isImage (const Value &val)
 
bool llvm::isManaged (const Value &val)
 
std::string llvm::getTextureName (const Value &val)
 
std::string llvm::getSurfaceName (const Value &val)
 
std::string llvm::getSamplerName (const Value &val)
 
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)
 
bool llvm::getMaxClusterRank (const Function &F, unsigned &x)
 
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)
 
bool llvm::getMinCTASm (const Function &F, unsigned &x)
 
bool llvm::getMaxNReg (const Function &F, unsigned &x)
 
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)