summaryrefslogtreecommitdiff
path: root/test/Driver/aarch64-outliner.c
diff options
context:
space:
mode:
authorJessica Paquette <jpaquette@apple.com>2018-05-02 16:42:51 +0000
committerJessica Paquette <jpaquette@apple.com>2018-05-02 16:42:51 +0000
commit544011fe9779f8620115192eddbd33b07a6df5ac (patch)
treef7c02563b510eb7605127abfe570ec09ed65f8ad /test/Driver/aarch64-outliner.c
parentc7a4af0c2f921fcffbd39b5781ebe31f6d775f1b (diff)
downloadclang-544011fe9779f8620115192eddbd33b07a6df5ac.tar.gz
Add -foutline option to enable the MachineOutliner in AArch64
Since we've been working on productizing the MachineOutliner in AArch64, it makes sense to provide a more user-friendly way to enable it. This allows users of AArch64 to enable the outliner using -foutline instead of -mllvm -enable-machine-outliner. Other, less mature implementations (e.g, x86-64) can still enable the pass using the -mllvm option. Also add a test to make sure it works. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@331370 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver/aarch64-outliner.c')
-rw-r--r--test/Driver/aarch64-outliner.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Driver/aarch64-outliner.c b/test/Driver/aarch64-outliner.c
new file mode 100644
index 0000000000..2d539dfce6
--- /dev/null
+++ b/test/Driver/aarch64-outliner.c
@@ -0,0 +1,4 @@
+// REQUIRES: aarch64-registered-target
+
+// RUN: %clang -target aarch64 -foutline -S %s -### 2>&1 | FileCheck %s
+// CHECK: "-mllvm" "-enable-machine-outliner"