[clang] [compiler-rt] [llvm] [PGO][AMDGPU] Add uniformity-aware offload profile format and instrumentation (PR #190708)
Yaxun Liu via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 19 06:03:43 PDT 2026
================
@@ -827,6 +836,52 @@ Error RawInstrProfReader<IntPtrT>::readRawBitmapBytes(InstrProfRecord &Record) {
return success();
}
+template <class IntPtrT>
+Error RawInstrProfReader<IntPtrT>::readRawUniformCounters(
+ InstrProfRecord &Record) {
+ Record.UniformCounts.clear();
+
+ if (UniformCountersStart == UniformCountersEnd)
+ return success();
+
----------------
yxsamliu wrote:
Added `llvm/test/tools/llvm-profdata/malformed-uniform-counter-array.test` to cover the malformed uniform-counter offset and count checks.
https://github.com/llvm/llvm-project/pull/190708
More information about the cfe-commits
mailing list