[clang] Add a command line flag for the Machine Function Splitter.
authorSnehasish Kumar <snehasishk@google.com>
Wed, 2 Sep 2020 18:00:46 +0000 (11:00 -0700)
committerSnehasish Kumar <snehasishk@google.com>
Tue, 15 Sep 2020 19:41:58 +0000 (12:41 -0700)
commitf1a3ab904439a63b21ba1c4521765c46630687c6
treedc426770b7d0246f48506b480481c1c0898b09be
parentd417488ef5a6cd1089900defcd6d5ae5a1d47fd4
[clang] Add a command line flag for the Machine Function Splitter.

This patch adds a command line flag for the machine function splitter
(added in rG94faadaca4e1).

-fsplit-machine-functions
Split machine functions using profile information (x86 ELF). On
other targets an error is emitted. If profile information is not
provided a warning is emitted notifying the user that profile
information is required.

Differential Revision: https://reviews.llvm.org/D87047
clang/include/clang/Basic/CodeGenOptions.def
clang/include/clang/Driver/Options.td
clang/lib/CodeGen/BackendUtil.cpp
clang/lib/Driver/ToolChains/Clang.cpp
clang/lib/Frontend/CompilerInvocation.cpp
clang/test/Driver/fsplit-machine-functions.c [new file with mode: 0644]