Add -foutline option to enable the MachineOutliner in AArch64
authorJessica Paquette <jpaquette@apple.com>
Wed, 2 May 2018 16:42:51 +0000 (16:42 +0000)
committerJessica Paquette <jpaquette@apple.com>
Wed, 2 May 2018 16:42:51 +0000 (16:42 +0000)
commit8e71ee3c07e9ad64ec36661f1f3aff253e9435d5
tree77d8a2a6fe59ee73c21c7b32f622b2e564b0dd44
parenta3a4df37088dbe40d6bcecd56398b291862a9931
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.

llvm-svn: 331370
clang/include/clang/Driver/Options.td
clang/lib/Driver/ToolChains/Clang.cpp
clang/test/Driver/aarch64-outliner.c [new file with mode: 0644]