[clang] [lld] [llvm] Run ObjCContractPass in Distributed Thin-LTO Pipeline (PR #92331)

Nuri Amari via llvm-commits llvm-commits at lists.llvm.org
Mon May 20 14:52:10 PDT 2024


================
@@ -101,6 +101,19 @@ class ARCRuntimeEntryPoints {
     llvm_unreachable("Switch should be a covered switch.");
   }
 
+  bool moduleContainsARCEntryPoints() {
+    assert(TheModule != nullptr && "Not initialized.");
+
+    for (auto ARCInstricID :
+         enum_seq_inclusive(Intrinsic::objc_arc_annotation_bottomup_bbend,
----------------
NuriAmari wrote:

Bit fragile if new arc intrinsics are added, or they are re-arranged, but not sure what else to do. Perhaps giving the sequence a name indicating it is the canonical representation of "all arc intrinsics" will help it stay up to date.

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


More information about the llvm-commits mailing list