[llvm] [NVPTX] Support !"cluster_dim_{x,y,z}" metadata (PR #109548)

Artem Belevich via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 24 14:30:31 PDT 2024


================
@@ -130,8 +130,8 @@ static void cacheAnnotationFromMD(const Module *m, const GlobalValue *gv) {
   }
 }
 
-bool findOneNVVMAnnotation(const GlobalValue *gv, const std::string &prop,
-                           unsigned &retval) {
+std::optional<unsigned> findOneNVVMAnnotation(const GlobalValue *gv,
----------------
Artem-B wrote:

Nice. Thank you for updating the old code to use better modern C++ features.



https://github.com/llvm/llvm-project/pull/109548


More information about the llvm-commits mailing list