diff options
author | Ethan Luis McDonough <ethanluismcdonough@gmail.com> | 2025-02-11 21:30:54 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-11 23:30:54 -0600 |
commit | 9e5c136d5a1a8acee9e7acfbe14cc6d4490dee2e (patch) | |
tree | b6b15d2e65de24a35909f5b4ccbff4a3219d4fc8 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | 84e3c6ff9591d4e93b5a30dbcffc985d41d87bda (diff) | |
download | llvm-9e5c136d5a1a8acee9e7acfbe14cc6d4490dee2e.zip llvm-9e5c136d5a1a8acee9e7acfbe14cc6d4490dee2e.tar.gz llvm-9e5c136d5a1a8acee9e7acfbe14cc6d4490dee2e.tar.bz2 |
[PGO][Offload] Profile profraw generation for GPU instrumentation #76587 (#93365)
This pull request is the second part of an ongoing effort to extends PGO
instrumentation to GPU device code and depends on #76587. This PR makes
the following changes:
- Introduces `__llvm_write_custom_profile` to PGO compiler-rt library.
This is an external function that can be used to write profiles with
custom data to target-specific files.
- Adds `__llvm_write_custom_profile` as weak symbol to libomptarget so
that it can write the collected data to a profraw file.
- Adds `PGODump` debug flag and only displays dump when the
aforementioned flag is set
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions