[clang] [llvm] [NVPTX] Revamp NVVMIntrRange pass (PR #94422)
Alex MacLean via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 5 15:06:03 PDT 2024
================
@@ -128,6 +128,15 @@ bool findOneNVVMAnnotation(const GlobalValue *gv, const std::string &prop,
return true;
}
+static std::optional<unsigned>
+findOneNVVMAnnotation(const GlobalValue &GV, const std::string &PropName) {
+ unsigned RetVal;
+ bool Found = findOneNVVMAnnotation(&GV, PropName, RetVal);
+ if (Found)
+ return RetVal;
----------------
AlexMaclean wrote:
Done
https://github.com/llvm/llvm-project/pull/94422
More information about the cfe-commits
mailing list