[PATCH] D56384: [AArch64] Add 'apple-latest' CPU alias
Francis Visoiu Mistrih via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 28 11:27:36 PST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL352412: [AArch64] Add 'apple-latest' CPU alias (authored by thegameg, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D56384?vs=180498&id=183919#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D56384/new/
https://reviews.llvm.org/D56384
Files:
llvm/trunk/lib/Target/AArch64/AArch64.td
llvm/trunk/test/CodeGen/AArch64/apple-latest-cpu.ll
llvm/trunk/test/CodeGen/AArch64/cpus.ll
Index: llvm/trunk/test/CodeGen/AArch64/apple-latest-cpu.ll
===================================================================
--- llvm/trunk/test/CodeGen/AArch64/apple-latest-cpu.ll
+++ llvm/trunk/test/CodeGen/AArch64/apple-latest-cpu.ll
@@ -0,0 +1,7 @@
+; RUN: llc -mtriple=arm64-apple-ios -mcpu=apple-latest -stop-before=expand-isel-pseudos -o - 2>&1 < %s | FileCheck %s
+
+; CHECK-LABEL: @dummy
+; CHECK: "target-cpu"="apple-latest"
+define void @dummy() {
+ ret void
+}
Index: llvm/trunk/test/CodeGen/AArch64/cpus.ll
===================================================================
--- llvm/trunk/test/CodeGen/AArch64/cpus.ll
+++ llvm/trunk/test/CodeGen/AArch64/cpus.ll
@@ -18,6 +18,7 @@
; RUN: llc < %s -mtriple=arm64-unknown-unknown -mcpu=kryo 2>&1 | FileCheck %s
; RUN: llc < %s -mtriple=arm64-unknown-unknown -mcpu=thunderx2t99 2>&1 | FileCheck %s
; RUN: llc < %s -mtriple=arm64-unknown-unknown -mcpu=tsv110 2>&1 | FileCheck %s
+; RUN: llc < %s -mtriple=arm64-unknown-unknown -mcpu=apple-latest 2>&1 | FileCheck %s
; RUN: llc < %s -mtriple=arm64-unknown-unknown -mcpu=invalidcpu 2>&1 | FileCheck %s --check-prefix=INVALID
; CHECK-NOT: {{.*}} is not a recognized processor for this target
Index: llvm/trunk/lib/Target/AArch64/AArch64.td
===================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64.td
+++ llvm/trunk/lib/Target/AArch64/AArch64.td
@@ -715,6 +715,9 @@
// FIXME: HiSilicon TSV110 is currently modeled as a Cortex-A57.
def : ProcessorModel<"tsv110", CortexA57Model, [ProcTSV110]>;
+// Alias for the latest Apple processor model supported by LLVM.
+def : ProcessorModel<"apple-latest", CycloneModel, [ProcCyclone]>;
+
//===----------------------------------------------------------------------===//
// Assembly parser
//===----------------------------------------------------------------------===//
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56384.183919.patch
Type: text/x-patch
Size: 1886 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190128/6dee3f82/attachment.bin>
More information about the llvm-commits
mailing list