[Mlir-commits] [clang] [llvm] [mlir] [NVPTX] Convert scalar function nvvm.annotations to attributes (PR #125908)
Alex MacLean
llvmlistbot at llvm.org
Thu Feb 6 16:15:29 PST 2025
================
@@ -179,6 +179,13 @@ static bool argHasNVVMAnnotation(const Value &Val,
return false;
}
+static std::optional<unsigned> getFnAttrParsedInt(const Function &F,
+ StringRef Attr) {
+ return F.hasFnAttribute(Attr)
+ ? std::optional(F.getFnAttributeAsParsedInteger(Attr))
+ : std::nullopt;
----------------
AlexMaclean wrote:
No worries! I agree it is basically a wash and will leave it as it currently is.
https://github.com/llvm/llvm-project/pull/125908
More information about the Mlir-commits
mailing list