Lines Matching full:build

2 How To Build Clang and LLVM with Profile-Guided Optimizations
12 This guide walks you through how to build Clang with PGO, though it also applies
15 If you want to build other software with PGO, see the `end-user documentation
53 - uses the instrumented Clang to build Clang, LLVM, and all of the other
74 how to build Clang/LLVM with PGO.
81 1. Build a standard Release Clang and the relevant libclang_rt.profile library
82 2. Build Clang using the Clang you built above, but with instrumentation
90 4. Build a final release Clang (along with whatever other binaries you need)
95 1. Configure a Clang build as you normally would. It's highly recommended that
96 you use the Release configuration for this, since it will be used to build
98 to build the ``all`` target (e.g. ``ninja all`` or ``make -j4 all``).
100 2. Configure a Clang build as above, but add the following CMake args:
102 - ``-DLLVM_BUILD_INSTRUMENTED=IR`` -- This causes us to build everything
105 built with profiling, and aren't necessary to build. This flag turns them
111 In this build directory, you simply need to build the ``clang`` target (and
117 a. Build your benchmark using the Clang generated in step 2. The 'standard'
119 instrumented Clang's build directory, and to do a full build of Clang/LLVM
120 using your instrumented Clang. So, create yet another build directory,
131 result in a much larger build directory.
133 It's recommended to build the ``all`` target with your instrumented Clang,
143 4. Now, build your final, PGO-optimized Clang. To do this, you'll want to pass
152 From here, you can build whatever targets you need.
155 You may see warnings about a mismatched profile in the build output. These
162 can delete all but the final build directory if you'd like.
166 built and run during the build process. While it's potentially nice to build