[libc-commits] [clang] [compiler-rt] [libc] [llvm] [PGO][AMDGPU] Add offload profiling with uniformity-aware optimization (PR #177665)
Joseph Huber via libc-commits
libc-commits at lists.llvm.org
Thu Apr 2 20:00:02 PDT 2026
================
@@ -212,5 +211,12 @@ int __llvm_write_binary_ids(ProfDataWriter *Writer);
int lprofWriteOneBinaryId(ProfDataWriter *Writer, uint64_t BinaryIdLen,
const uint8_t *BinaryIdData,
uint64_t BinaryIdPadding);
+#ifdef __cplusplus
+extern "C" {
+#endif
+COMPILER_RT_VISIBILITY int __llvm_profile_hip_collect_device_data(void);
----------------
jhuber6 wrote:
I'm curious why only this function needs extern "C" and visibility. Do we not expose other ones like __llvm_write_binary_ids in the same way?
https://github.com/llvm/llvm-project/pull/177665
More information about the libc-commits
mailing list