14 #ifndef LLVM_LIB_TARGET_NVPTX_NVPTXUTILITIES_H
15 #define LLVM_LIB_TARGET_NVPTX_NVPTXUTILITIES_H
28 #define NVCL_IMAGE2D_READONLY_FUNCNAME "__is_image2D_readonly"
29 #define NVCL_IMAGE3D_READONLY_FUNCNAME "__is_image3D_readonly"
35 std::vector<unsigned> &);
73 std::vector<T> Result;
75 while (
T Val = va_arg(Args,
T))
76 Result.push_back(Val);
87 void dumpBlock(Value *v,
char *blockName);
88 Instruction *
getInst(Value *base,
char *instName);
89 void dumpInst(Value *base,
char *instName);
90 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 &)
A Module instance is used to store all the information related to an LLVM module. ...
bool findOneNVVMAnnotation(const llvm::GlobalValue *, std::string, unsigned &)
CallInst - This class represents a function call, abstracting a target machine's calling convention...
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 isManaged(const llvm::Value &)
bool getReqNTIDx(const llvm::Function &, unsigned &)
void dumpBlock(Value *v, char *blockName)
void dumpInst(Value *base, char *instName)
void dumpParent(Value *v)
bool isImageReadWrite(const llvm::Value &)
void clearAnnotationCache(const llvm::Module *)
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,...)
make_vector - Helper function which is useful for building temporary vectors to pass into type constr...
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 &)