================ @@ -52,6 +52,22 @@ std::string aarch64::getAArch64TargetCPU(const ArgList &Args, return "apple-m1"; } + if (Triple.getOS() == llvm::Triple::IOS) { + assert(!Triple.isSimulatorEnvironment() && "iossim should be mac-like"); + // iOS 26 only runs on apple-a12 and later CPUs. + if (!Triple.isOSVersionLT(26)) + return "apple-a12"; + } ---------------- ahmedbougacha wrote:
Related: at some point we discussed having a way of describing default function attributes in a module (e.g., using module flags), for cases where functions are generated later that IRGen, in the IR pipeline. Of course I can't find any links anymore, but I'd expect those to have another (frontend-IRGen'd) function to use as a template. Of course one can imagine some hypothetical transform where that isn't true ;) https://github.com/llvm/llvm-project/pull/152235 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits