[clang] nonblocking/nonallocating attributes: 2nd pass caller/callee analysis (PR #99656)

via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 23 12:54:06 PDT 2024


================
@@ -4940,6 +4955,78 @@ class FunctionEffectsRef {
   void dump(llvm::raw_ostream &OS) const;
 };
 
+/// A mutable set of FunctionEffect::Kind.
+class FunctionEffectKindSet {
+  // For now this only needs to be a bitmap.
+  constexpr static size_t EndBitPos = 8;
----------------
Sirraide wrote:

Don’t we have fewer than `8` effects? I think this can just be the number of bits that we actually need, otherwise we’d be iterating over a bunch of bits that are always `0`, right?

https://github.com/llvm/llvm-project/pull/99656


More information about the cfe-commits mailing list