14 #ifndef NVPTXUTILITIES_H
15 #define NVPTXUTILITIES_H
28 #define NVCL_IMAGE2D_READONLY_FUNCNAME "__is_image2D_readonly"
29 #define NVCL_IMAGE3D_READONLY_FUNCNAME "__is_image3D_readonly"
33 std::vector<unsigned> &);
69 std::vector<T> Result;
71 while (
T Val = va_arg(Args,
T))
72 Result.push_back(Val);
83 void dumpBlock(Value *v,
char *blockName);
84 Instruction *
getInst(Value *base,
char *instName);
85 void dumpInst(Value *base,
char *instName);
86 void dumpInstRec(Value *v, std::set<Instruction *> *visited);
bool isMemorySpaceTransferIntrinsic(Intrinsic::ID id)
std::string getSurfaceName(const llvm::Value &)
bool getReqNTIDy(const llvm::Function &, unsigned &)
bool findOneNVVMAnnotation(const llvm::GlobalValue *, std::string, unsigned &)
bool isSurface(const llvm::Value &)
bool isKernelFunction(const llvm::Function &)
std::string getTextureName(const llvm::Value &)
bool getMaxNTIDz(const llvm::Function &, unsigned &)
BasicBlock * getParentBlock(Value *v)
Function * getParentFunction(Value *v)
bool getReqNTIDx(const llvm::Function &, unsigned &)
void dumpBlock(Value *v, char *blockName)
void dumpInst(Value *base, char *instName)
void dumpParent(Value *v)
bool getMaxNTIDy(const llvm::Function &, unsigned &)
bool isImageWriteOnly(const llvm::Value &)
void dumpInstRec(Value *v, std::set< Instruction * > *visited)
bool getReqNTIDz(const llvm::Function &, unsigned &)
bool isImageReadOnly(const llvm::Value &)
std::vector< T > make_vector(T A,...)
Instruction * getInst(Value *base, char *instName)
bool getAlign(const llvm::Function &, unsigned index, unsigned &)
bool getMinCTASm(const llvm::Function &, unsigned &)
bool isImage(const llvm::Value &)
bool isSampler(const llvm::Value &)
const Value * skipPointerTransfer(const Value *V, bool ignore_GEP_indices)
bool isBarrierIntrinsic(llvm::Intrinsic::ID)
std::string getSamplerName(const llvm::Value &)
bool isTexture(const llvm::Value &)
bool findAllNVVMAnnotation(const llvm::GlobalValue *, std::string, std::vector< unsigned > &)
LLVM Value Representation.
bool getMaxNTIDx(const llvm::Function &, unsigned &)