[PATCH] D116110: Introduce the AttributeMask class
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 21 08:55:01 PST 2021
nikic added inline comments.
================
Comment at: llvm/include/llvm/IR/Attributes.h:992
+ bool empty() const { return Attrs.none(); }
+ bool hasAttributes() const { return !TargetDepAttrs.empty() && Attrs.any(); }
+};
----------------
Shouldn't this be `||`?
================
Comment at: llvm/include/llvm/IR/Attributes.h:993
+
+ bool empty() const { return Attrs.none(); }
+ bool hasAttributes() const { return TargetDepAttrs.empty() && Attrs.none(); }
----------------
serge-sans-paille wrote:
> nikic wrote:
> > Should this check TargetDepAttrs as well?
> I matched the implementation in AttrBuilder, which looks odd to me too.
Where is the method used? Can we just drop it?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D116110/new/
https://reviews.llvm.org/D116110
More information about the llvm-commits
mailing list