[PATCH] D56384: [AArch64] Add 'apple-latest' CPU alias
Francis Visoiu Mistrih via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 7 04:01:25 PST 2019
thegameg created this revision.
thegameg added reviewers: ab, t.p.northover, Gerolf, jasonmolenda.
Herald added subscribers: kristof.beyls, javed.absar.
The 'apple-latest' alias is supposed to provide a CPU that contains the latest Apple processor model supported by LLVM.
This is supposed to be used by tools like lldb to provide a target that supports most of the CPU features.
For now, this is mapped to Cyclone.
https://reviews.llvm.org/D56384
Files:
lib/Target/AArch64/AArch64.td
test/CodeGen/AArch64/apple-latest-cpu.ll
Index: test/CodeGen/AArch64/apple-latest-cpu.ll
===================================================================
--- /dev/null
+++ 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 /dev/null 2>&1 < %s | FileCheck %s
+
+; CHECK-LABEL: @dummy
+; CHECK: "target-cpu"="apple-latest"
+define void @dummy() {
+ ret void
+}
Index: lib/Target/AArch64/AArch64.td
===================================================================
--- lib/Target/AArch64/AArch64.td
+++ lib/Target/AArch64/AArch64.td
@@ -691,6 +691,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.180454.patch
Type: text/x-patch
Size: 1064 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190107/cc39047a/attachment.bin>
More information about the llvm-commits
mailing list