================
@@ -97,6 +98,47 @@ std::string aarch64::getAArch64TargetCPU(const ArgList &Args,
   return getAArch64TargetCPUByTriple(Triple);
 }
 
+/// \return the target tune CPU LLVM name based on the target triple.
+static std::optional<std::string>
+getAArch64TargetTuneCPUByTriple(const llvm::Triple &Triple) {
+  // Apple Silicon macs default to the latest available target for tuning.
+  if (Triple.isTargetMachineMac() &&
+      Triple.getArch() == llvm::Triple::aarch64) {
----------------
rj-jesus wrote:

Can drop the curly braces.

https://github.com/llvm/llvm-project/pull/179136
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to