[clang] [flang] [llvm] [IR] Convert from nocapture to captures(none) (PR #123181)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 20 09:30:24 PST 2025


================
@@ -1986,6 +1986,12 @@ static void decodeLLVMAttributesForBitcode(AttrBuilder &B,
       B.addMemoryAttr(ME);
   }
 
+  // Upgrade nocapture to captures(none).
+  if (Attrs & (1ULL << 21)) {
+    Attrs &= ~(1ULL << 21);
----------------
goldsteinn wrote:

Maybe also mention that 1 << 21 is `NoCapture` here.

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


More information about the llvm-commits mailing list