diff options
author | Snehasish Kumar <snehasishk@google.com> | 2020-09-02 11:00:46 -0700 |
---|---|---|
committer | Snehasish Kumar <snehasishk@google.com> | 2020-09-15 12:41:58 -0700 |
commit | f1a3ab904439a63b21ba1c4521765c46630687c6 (patch) | |
tree | dc426770b7d0246f48506b480481c1c0898b09be /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | d417488ef5a6cd1089900defcd6d5ae5a1d47fd4 (diff) | |
download | llvm-f1a3ab904439a63b21ba1c4521765c46630687c6.zip llvm-f1a3ab904439a63b21ba1c4521765c46630687c6.tar.gz llvm-f1a3ab904439a63b21ba1c4521765c46630687c6.tar.bz2 |
[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
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 8393ebe..a88a911 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -998,6 +998,8 @@ static bool ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, InputKind IK, Opts.UniqueInternalLinkageNames = Args.hasArg(OPT_funique_internal_linkage_names); + Opts.SplitMachineFunctions = Args.hasArg(OPT_fsplit_machine_functions); + Opts.MergeFunctions = Args.hasArg(OPT_fmerge_functions); Opts.NoUseJumpTables = Args.hasArg(OPT_fno_jump_tables); |