[PATCH] D69841: Target Ivy bridge on macOS Mojave and later
davezarzycki created this revision. davezarzycki added a reviewer: bob.wilson. davezarzycki added a project: clang. Ivy Bridge is required by macOS 10.14 (Mojave) and later. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D69841 Files: clang/lib/Driver/ToolChains/Arch/X86.cpp Index: clang/lib/Driver/ToolChains/Arch/X86.cpp === --- clang/lib/Driver/ToolChains/Arch/X86.cpp +++ clang/lib/Driver/ToolChains/Arch/X86.cpp @@ -73,12 +73,15 @@ if (Triple.isOSDarwin()) { if (Triple.getArchName() == "x86_64h") return "core-avx2"; -// macosx10.12 drops support for all pre-Penryn Macs. -// Simulators can still run on 10.11 though, like Xcode. -if (Triple.isMacOSX() && !Triple.isOSVersionLT(10, 12)) - return "penryn"; // The oldest x86_64 Macs have core2/Merom; the oldest x86 Macs have Yonah. -return Is64Bit ? "core2" : "yonah"; +// The simulators (i.e. Darwin but not macOS) can still run on older Macs. +// macosx10.12 requires Penryn. +if (!Triple.isMacOSX() || Triple.isOSVersionLT(10, 12)) + return Is64Bit ? "core2" : "yonah"; +// macosx10.14 requires Ivy Bridge. +if (Triple.isOSVersionLT(10, 14)) + return "penryn"; +return "ivybridge"; } // Set up default CPU name for PS4 compilers. Index: clang/lib/Driver/ToolChains/Arch/X86.cpp === --- clang/lib/Driver/ToolChains/Arch/X86.cpp +++ clang/lib/Driver/ToolChains/Arch/X86.cpp @@ -73,12 +73,15 @@ if (Triple.isOSDarwin()) { if (Triple.getArchName() == "x86_64h") return "core-avx2"; -// macosx10.12 drops support for all pre-Penryn Macs. -// Simulators can still run on 10.11 though, like Xcode. -if (Triple.isMacOSX() && !Triple.isOSVersionLT(10, 12)) - return "penryn"; // The oldest x86_64 Macs have core2/Merom; the oldest x86 Macs have Yonah. -return Is64Bit ? "core2" : "yonah"; +// The simulators (i.e. Darwin but not macOS) can still run on older Macs. +// macosx10.12 requires Penryn. +if (!Triple.isMacOSX() || Triple.isOSVersionLT(10, 12)) + return Is64Bit ? "core2" : "yonah"; +// macosx10.14 requires Ivy Bridge. +if (Triple.isOSVersionLT(10, 14)) + return "penryn"; +return "ivybridge"; } // Set up default CPU name for PS4 compilers. ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
[PATCH] D69841: Target Ivy bridge on macOS Mojave and later
davezarzycki added a comment. Hi @bob.wilson – Am I missing something here? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D69841/new/ https://reviews.llvm.org/D69841 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
[PATCH] D69841: Target Ivy bridge on macOS Mojave and later
davezarzycki added a comment. @bob.wilson – Ping. While Ivy Bridge (or really, Sandy Bridge) has AVX1, which enables faster memcpy, memset, and even memcmp (for common scenarios). If there is something I'm missing? If you can't explain why, that's okay. :-) Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D69841/new/ https://reviews.llvm.org/D69841 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
[PATCH] D69841: Target Ivy bridge on macOS Mojave and later
arphaman added reviewers: Gerolf, dexonsmith. arphaman added a comment. @bob.wilson no longer works on llvm-project. I added Gerolf and Duncan. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D69841/new/ https://reviews.llvm.org/D69841 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
[PATCH] D69841: Target Ivy bridge on macOS Mojave and later
dexonsmith requested changes to this revision. dexonsmith added a comment. This revision now requires changes to proceed. Hi Dave, thanks for checking in on this, but unfortunately we're not ready for this yet. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D69841/new/ https://reviews.llvm.org/D69841 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
[PATCH] D69841: Target Ivy bridge on macOS Mojave and later
davezarzycki abandoned this revision. davezarzycki added a comment. Okay. I'm going to abandon this patch on the assumption that Apple has an internal bug tracking this. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D69841/new/ https://reviews.llvm.org/D69841 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits