llvm-project/llvm
Rong Xu db0d7d0ba9 [SampleFDO][NFC] Refactor SampleProfileLoader to reuse in CodeGen
Break SampleProfileLoader into to a base and a derived class.
Base class (SampleProfileLoaderBaseImpl) includes the common
code for IR and MachineIR (CodeGen) sample loader.
It will be templatelized in the later patch.

Inline and Probe related code will remain in the derived class of
SampleProfileLoader and stays in SampleProfile.cpp.

We need to refactor some functions:
(1) getInstWeight() to enable the code sharing -- put the core into
getInstWeightImpl().
(2) emitAnnotation() and propagateWeights() to carve out the code
specific to SampleProfileLoader.
(3) make getInstWeight() and findFunctionSamples() virtual and override
in SampleProfileLoader as they need to access the fields in the derived
class.

Differential Revision: https://reviews.llvm.org/D95832
2021-02-10 13:29:15 -08:00
..
benchmarks
bindings
cmake [CMake] Remove some dead code in llvm_install_library_symlink() 2021-02-10 10:13:04 -08:00
docs Revert "[ObjC][ARC] Use operand bundle 'clang.arc.rv' instead of explicitly" 2021-02-09 11:06:32 -05:00
examples [examples] Fix Target does not support MC emission in ParallelJIT 2021-02-04 22:44:46 +05:30
include [CSSPGO] Unblock optimizations with pseudo probe instrumentation. 2021-02-10 12:43:17 -08:00
lib [SampleFDO][NFC] Refactor SampleProfileLoader to reuse in CodeGen 2021-02-10 13:29:15 -08:00
projects
resources
runtimes [CMake] Split the target side of runtimes build 2021-01-11 23:39:36 -08:00
test [AArch64][GlobalISel] Fold G_ADD into the cset for G_ICMP 2021-02-10 13:28:01 -08:00
tools Renovate CMake files in the `llvm-exegesis` tool. 2021-02-10 14:22:55 -05:00
unittests Renovate CMake files in the `llvm-exegesis` tool. 2021-02-10 14:22:55 -05:00
utils Renovate CMake files in the `llvm-exegesis` tool. 2021-02-10 14:22:55 -05:00
.clang-format
.clang-tidy
.gitattributes
.gitignore
CMakeLists.txt Turn on the new pass manager by default 2021-02-03 14:37:46 -08:00
CODE_OWNERS.TXT Change XCore code owner. 2021-01-14 12:13:48 +00:00
CREDITS.TXT
LICENSE.TXT
README.txt
RELEASE_TESTERS.TXT
configure
llvm.spec.in

README.txt

The LLVM Compiler Infrastructure
================================

This directory and its subdirectories contain source code for LLVM,
a toolkit for the construction of highly optimized compilers,
optimizers, and runtime environments.

LLVM is open source software. You may freely distribute it under the terms of
the license agreement found in LICENSE.txt.

Please see the documentation provided in docs/ for further
assistance with LLVM, and in particular docs/GettingStarted.rst for getting
started with LLVM and docs/README.txt for an overview of LLVM's
documentation setup.

If you are writing a package for LLVM, see docs/Packaging.rst for our
suggestions.