[PATCH] D92567: [CallBase] Add hasRetAttr version that takes StringRef.
Johannes Doerfert via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 10 08:24:09 PST 2020
jdoerfert accepted this revision.
jdoerfert added a comment.
This revision is now accepted and ready to land.
LGTM, nits.
================
Comment at: llvm/include/llvm/IR/InstrTypes.h:1532
+ }
+ bool hasRetAttr(StringRef Kind) const { return hasRetAttrImpl(Kind); }
----------------
Duplicate the docs.
================
Comment at: llvm/include/llvm/IR/InstrTypes.h:2212
+
+ template <typename AttrKind> bool hasRetAttrImpl(AttrKind Kind) const {
+ if (Attrs.hasAttribute(AttributeList::ReturnIndex, Kind))
----------------
doc please.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D92567/new/
https://reviews.llvm.org/D92567
More information about the llvm-commits
mailing list