Lines Matching refs:llvm
29 using namespace llvm;
38 void llvm::clearAnnotationCache(const llvm::Module *Mod) { in clearAnnotationCache()
71 NamedMDNode *NMD = m->getNamedMetadata(llvm::NamedMDForAnnotations); in cacheAnnotationFromMD()
102 bool llvm::findOneNVVMAnnotation(const GlobalValue *gv, std::string prop, in findOneNVVMAnnotation()
116 bool llvm::findAllNVVMAnnotation(const GlobalValue *gv, std::string prop, in findAllNVVMAnnotation()
130 bool llvm::isTexture(const llvm::Value &val) { in isTexture()
133 if (llvm::findOneNVVMAnnotation( in isTexture()
134 gv, llvm::PropertyAnnotationNames[llvm::PROPERTY_ISTEXTURE], in isTexture()
143 bool llvm::isSurface(const llvm::Value &val) { in isSurface()
146 if (llvm::findOneNVVMAnnotation( in isSurface()
147 gv, llvm::PropertyAnnotationNames[llvm::PROPERTY_ISSURFACE], in isSurface()
156 bool llvm::isSampler(const llvm::Value &val) { in isSampler()
159 if (llvm::findOneNVVMAnnotation( in isSampler()
160 gv, llvm::PropertyAnnotationNames[llvm::PROPERTY_ISSAMPLER], in isSampler()
169 if (llvm::findAllNVVMAnnotation( in isSampler()
170 func, llvm::PropertyAnnotationNames[llvm::PROPERTY_ISSAMPLER], in isSampler()
179 bool llvm::isImageReadOnly(const llvm::Value &val) { in isImageReadOnly()
183 if (llvm::findAllNVVMAnnotation(func, in isImageReadOnly()
184 llvm::PropertyAnnotationNames[ in isImageReadOnly()
185 llvm::PROPERTY_ISREADONLY_IMAGE_PARAM], in isImageReadOnly()
194 bool llvm::isImageWriteOnly(const llvm::Value &val) { in isImageWriteOnly()
198 if (llvm::findAllNVVMAnnotation(func, in isImageWriteOnly()
199 llvm::PropertyAnnotationNames[ in isImageWriteOnly()
200 llvm::PROPERTY_ISWRITEONLY_IMAGE_PARAM], in isImageWriteOnly()
209 bool llvm::isImageReadWrite(const llvm::Value &val) { in isImageReadWrite()
213 if (llvm::findAllNVVMAnnotation(func, in isImageReadWrite()
214 llvm::PropertyAnnotationNames[ in isImageReadWrite()
215 llvm::PROPERTY_ISREADWRITE_IMAGE_PARAM], in isImageReadWrite()
224 bool llvm::isImage(const llvm::Value &val) { in isImage()
225 return llvm::isImageReadOnly(val) || llvm::isImageWriteOnly(val) || in isImage()
226 llvm::isImageReadWrite(val); in isImage()
229 bool llvm::isManaged(const llvm::Value &val) { in isManaged()
232 if(llvm::findOneNVVMAnnotation(gv, in isManaged()
233 llvm::PropertyAnnotationNames[llvm::PROPERTY_MANAGED], in isManaged()
242 std::string llvm::getTextureName(const llvm::Value &val) { in getTextureName()
247 std::string llvm::getSurfaceName(const llvm::Value &val) { in getSurfaceName()
252 std::string llvm::getSamplerName(const llvm::Value &val) { in getSamplerName()
257 bool llvm::getMaxNTIDx(const Function &F, unsigned &x) { in getMaxNTIDx()
258 return (llvm::findOneNVVMAnnotation( in getMaxNTIDx()
259 &F, llvm::PropertyAnnotationNames[llvm::PROPERTY_MAXNTID_X], x)); in getMaxNTIDx()
262 bool llvm::getMaxNTIDy(const Function &F, unsigned &y) { in getMaxNTIDy()
263 return (llvm::findOneNVVMAnnotation( in getMaxNTIDy()
264 &F, llvm::PropertyAnnotationNames[llvm::PROPERTY_MAXNTID_Y], y)); in getMaxNTIDy()
267 bool llvm::getMaxNTIDz(const Function &F, unsigned &z) { in getMaxNTIDz()
268 return (llvm::findOneNVVMAnnotation( in getMaxNTIDz()
269 &F, llvm::PropertyAnnotationNames[llvm::PROPERTY_MAXNTID_Z], z)); in getMaxNTIDz()
272 bool llvm::getReqNTIDx(const Function &F, unsigned &x) { in getReqNTIDx()
273 return (llvm::findOneNVVMAnnotation( in getReqNTIDx()
274 &F, llvm::PropertyAnnotationNames[llvm::PROPERTY_REQNTID_X], x)); in getReqNTIDx()
277 bool llvm::getReqNTIDy(const Function &F, unsigned &y) { in getReqNTIDy()
278 return (llvm::findOneNVVMAnnotation( in getReqNTIDy()
279 &F, llvm::PropertyAnnotationNames[llvm::PROPERTY_REQNTID_Y], y)); in getReqNTIDy()
282 bool llvm::getReqNTIDz(const Function &F, unsigned &z) { in getReqNTIDz()
283 return (llvm::findOneNVVMAnnotation( in getReqNTIDz()
284 &F, llvm::PropertyAnnotationNames[llvm::PROPERTY_REQNTID_Z], z)); in getReqNTIDz()
287 bool llvm::getMinCTASm(const Function &F, unsigned &x) { in getMinCTASm()
288 return (llvm::findOneNVVMAnnotation( in getMinCTASm()
289 &F, llvm::PropertyAnnotationNames[llvm::PROPERTY_MINNCTAPERSM], x)); in getMinCTASm()
292 bool llvm::isKernelFunction(const Function &F) { in isKernelFunction()
294 bool retval = llvm::findOneNVVMAnnotation( in isKernelFunction()
295 &F, llvm::PropertyAnnotationNames[llvm::PROPERTY_ISKERNEL_FUNCTION], x); in isKernelFunction()
298 return F.getCallingConv() == llvm::CallingConv::PTX_Kernel; in isKernelFunction()
303 bool llvm::getAlign(const Function &F, unsigned index, unsigned &align) { in getAlign()
305 bool retval = llvm::findAllNVVMAnnotation( in getAlign()
306 &F, llvm::PropertyAnnotationNames[llvm::PROPERTY_ALIGN], Vs); in getAlign()
319 bool llvm::getAlign(const CallInst &I, unsigned index, unsigned &align) { in getAlign()
338 bool llvm::isBarrierIntrinsic(Intrinsic::ID id) { in isBarrierIntrinsic()
349 bool llvm::isMemorySpaceTransferIntrinsic(Intrinsic::ID id) { in isMemorySpaceTransferIntrinsic()
369 llvm::skipPointerTransfer(const Value *V, bool ignore_GEP_indices) { in skipPointerTransfer()
392 llvm::skipPointerTransfer(const Value *V, std::set<const Value *> &processed) { in skipPointerTransfer()
439 BasicBlock *llvm::getParentBlock(Value *v) { in getParentBlock()
449 Function *llvm::getParentFunction(Value *v) { in getParentFunction()
463 void llvm::dumpBlock(Value *v, char *blockName) { in dumpBlock()
478 Instruction *llvm::getInst(Value *base, char *instName) { in getInst()
494 void llvm::dumpInst(Value *base, char *instName) { in dumpInst()
501 void llvm::dumpInstRec(Value *v, std::set<Instruction *> *visited) { in dumpInstRec()
517 void llvm::dumpInstRec(Value *v) { in dumpInstRec()
526 void llvm::dumpParent(Value *v) { in dumpParent()