[PATCH] D104088: Add clang frontend flags for MIP
Ellis Hoag via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 10 18:29:36 PDT 2021
ellis created this revision.
Herald added subscribers: dang, phosek, mgorny, emaste.
Herald added a reviewer: alexshap.
Herald added a reviewer: rupprecht.
Herald added a reviewer: jhenderson.
ellis requested review of this revision.
Herald added subscribers: llvm-commits, cfe-commits, MaskRay.
Herald added projects: clang, LLVM.
Add clang frontend flags for machine profiles.
- `-fmachine-profile-generate`
- Produce an instrumented binary
- `-fmachine-profile-function-coverage`
- Only profile function coverage
- `-fmachine-profile-block-coverage`
- Profile basic block coverage
- `-fmachine-profile-link-unit-name=`
- Specify a name to identify the current link unit
- `-fno-machine-profile-runtime`
- Do not link the MIP runtime
- `-fno-machine-profile-dump`
- Do not dump the raw profile data when the program exits
- `-fmachine-profile-selected-function-group=`, `-fmachine-profile-function-group-count=`
- Only instrument group `i` of `N` total groups of functions
- `-fmachine-profile-use=`
- Use the provided profile for optimization
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D104088
Files:
clang/include/clang/Driver/Options.td
clang/include/clang/Driver/ToolChain.h
clang/lib/Driver/ToolChain.cpp
clang/lib/Driver/ToolChains/AIX.cpp
clang/lib/Driver/ToolChains/Clang.cpp
clang/lib/Driver/ToolChains/Darwin.cpp
clang/lib/Driver/ToolChains/Darwin.h
clang/lib/Driver/ToolChains/DragonFly.cpp
clang/lib/Driver/ToolChains/FreeBSD.cpp
clang/lib/Driver/ToolChains/Fuchsia.cpp
clang/lib/Driver/ToolChains/Fuchsia.h
clang/lib/Driver/ToolChains/Gnu.cpp
clang/lib/Driver/ToolChains/Linux.cpp
clang/lib/Driver/ToolChains/Linux.h
clang/lib/Driver/ToolChains/NetBSD.cpp
clang/lib/Driver/ToolChains/Solaris.cpp
clang/test/CMakeLists.txt
clang/test/Driver/clang-mip-flags.c
llvm/tools/llvm-objcopy/ELF/ELFObjcopy.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104088.351326.patch
Type: text/x-patch
Size: 24210 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210611/58e6ba98/attachment.bin>
More information about the llvm-commits
mailing list