Displaying 7 results from an estimated 7 matches for "llvm_profdata_file".
2016 Mar 12
4
Building with LLVM_PARALLEL_XXX_JOBS
...k (in a 2nd build) - good|bad|ugly?
[ TODO#S: Before doing a 2nd build (and in a 3rd run using more
optimized binaries) ]
How do I anable LTO via CMAKE?
How do I enable PGO via CMAKE?
Grepping for 'lto' 'pgo' gives no help in [1].
Searching there for '-fprofile' shows...
LLVM_PROFDATA_FILE:PATH Path to a profdata file to pass into clang’s
-fprofile-instr-use flag. This can only be specified if you’re
building with clang.
Unsure what to use!
>From my build-script (attached)...
##### BEGIN *** SECTION WILL BE DELETED ***
#
# XXX: TRYOUT #1: Use GOLD as linker
# XXX: TRYOUT #2: Us...
2019 Sep 03
2
Struggling with a PGO build of clang -- llvm-profdata was built without zlib support?
Yes, that was it! Now that I took a closer look, the guide also states that
I should use the stage2 build. Silly me.
Thanks!
On Tue, 3 Sep 2019 at 19:31, David Blaikie <dblaikie at gmail.com> wrote:
> I /guess/ you actually want /path/to/release_build/llvm-profdata because
> the profiles are generated from binaries compiled with the release build,
> so it's the release build
2016 Mar 17
2
Building with LLVM_PARALLEL_XXX_JOBS
...inst sample source files. While the
> instrumented compiler runs it will output a bunch of files containing
> performance counters (.profraw files). After generating all the profraw
> files you use llvm-profdata to merge the files into a single profdata file
> that you can feed into the LLVM_PROFDATA_FILE option.
>
> Alas, there is an easier way to generate the profdata file!
>
> If you look in the clang repo at <clang>/cmake/caches/README.txt you’ll see
> an explanation of how to use the PGO CMake cache file. The basic idea is you
> run:
>
> $ cmake -G <generator>...
2016 Jul 23
3
[llvm-toolchain v3.8.1] LTO: Linking clang hangs with ld.gold and LLVMgold.so plugin
> On Jul 23, 2016, at 1:53 PM, Sedat Dilek via llvm-dev <llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>> wrote:
>
> On Sat, Jul 23, 2016 at 7:48 PM, Piotr Padlewski <prazek at google.com <mailto:prazek at google.com>> wrote:
>> How big is your project?
>> LTO eats RAM even faster than chrome. For example linking clang with LTO
>>
2016 Mar 03
3
Building with LLVM_PARALLEL_XXX_JOBS
I had only a quick view on the blog-texts.
It might be that a CLANG generated with LTO/PGO speeds up the build.
Can you confirm this?
Can you confirm binutils-gold speed up the build?
Has LLVM an own linker?
Can be used? Speedup the build?
Yesterday night I loooked through available CMAKE/LLVM variables...
### GOLD
# CMAKE_LINKER:FILEPATH=/usr/bin/ld
#
2017 Feb 11
2
Asan self host problems: Failed to deallocate
Trying to run a self host "ninja check-clang" with ASan enabled I hit a
/lot/ of errors like this (strangely I hit none of these in check-llvm,
only in check-clang):
Any ideas?
==10525==ERROR: AddressSanitizer failed to deallocate 0x10800 (67584) bytes
at address 0x631000014800
==10525==AddressSanitizer CHECK failed:
2017 Feb 15
2
Asan self host problems: Failed to deallocate
...he maximum number of concurrent link jobs.
LLVM_PARALLEL_LINK_JOBS:STRING=
//Build LLVM with Polly
LLVM_POLLY_BUILD:BOOL=ON
//Statically link Polly into tools (if available)
LLVM_POLLY_LINK_INTO_TOOLS:BOOL=ON
//Profiling data file to use when compiling in order to improve
// runtime performance.
LLVM_PROFDATA_FILE:FILEPATH=
//Path to a library.
LLVM_PTHREAD_LIBRARY_PATH:FILEPATH=/usr/lib/x86_64-linux-gnu/libpthread.so
//Value Computed by CMake
LLVM_SOURCE_DIR:STATIC=/usr/local/google/home/blaikie/dev/llvm/src
//Native TableGen executable. Saves building one when cross-compiling.
LLVM_TABLEGEN:STRING=llvm-...