[PATCH] D87047: [clang] Add command line options for the Machine Function Splitter.

Snehasish Kumar via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 2 11:25:16 PDT 2020


snehasish created this revision.
snehasish added reviewers: tmsriram, davidxl.
Herald added subscribers: cfe-commits, dang.
Herald added a project: clang.
snehasish requested review of this revision.

This patch adds a command line flag for the machine function splitter
(added in rG94faadaca4e1 <https://reviews.llvm.org/rG94faadaca4e1704f674d2e9d4a1d25643b9ca52c>). The command line reference has been updated
with the new flag and tests added to check the pass is run (requires
profile data) and that the driver has registered the correct option.

-fsplit-machine-functions
Split machine functions using profile information (x86-elf only)


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D87047

Files:
  clang/docs/ClangCommandLineReference.rst
  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/CodeGen/split-machine-functions.c
  clang/test/Driver/fsplit-machine-functions.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87047.289520.patch
Type: text/x-patch
Size: 6086 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200902/f5473b8a/attachment.bin>


More information about the cfe-commits mailing list