[llvm-branch-commits] [llvm-remarkutil] Introduce summary tool (PR #160549)
Jon Roelofs via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Sep 24 09:15:57 PDT 2025
================
@@ -34,6 +42,14 @@ std::optional<int> Argument::getValAsInt() const {
return KeyVal.getSExtValue();
}
+std::optional<int> Argument::getValAsSignedInt() const {
----------------
jroelofs wrote:
I'm confused because `int` is signed.
Might also be nice if this were a template with specializations, so its use looks like: `Arg->get<int>();` / `Arg->get<unsigned>();`
https://github.com/llvm/llvm-project/pull/160549
More information about the llvm-branch-commits
mailing list