[llvm] c00e012 - [ctx_profile] Follow the pattern elsewhere for choosing the block IDs
Mircea Trofin via llvm-commits
llvm-commits at lists.llvm.org
Wed May 15 17:06:58 PDT 2024
Author: Mircea Trofin
Date: 2024-05-15T17:06:41-07:00
New Revision: c00e012bcf5da384a3e7339dc2e046779b339063
URL: https://github.com/llvm/llvm-project/commit/c00e012bcf5da384a3e7339dc2e046779b339063
DIFF: https://github.com/llvm/llvm-project/commit/c00e012bcf5da384a3e7339dc2e046779b339063.diff
LOG: [ctx_profile] Follow the pattern elsewhere for choosing the block IDs
This was an oversight in #91859. Using the subblock ID mechanism
other places that use the bitstream APIs (e.g. `BitstreamRemarkSerializer`) use.
Added:
Modified:
llvm/include/llvm/ProfileData/PGOCtxProfWriter.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/ProfileData/PGOCtxProfWriter.h b/llvm/include/llvm/ProfileData/PGOCtxProfWriter.h
index 15578c51a4957..edcf02c094697 100644
--- a/llvm/include/llvm/ProfileData/PGOCtxProfWriter.h
+++ b/llvm/include/llvm/ProfileData/PGOCtxProfWriter.h
@@ -13,6 +13,7 @@
#ifndef LLVM_PROFILEDATA_PGOCTXPROFWRITER_H_
#define LLVM_PROFILEDATA_PGOCTXPROFWRITER_H_
+#include "llvm/Bitstream/BitCodeEnums.h"
#include "llvm/Bitstream/BitstreamWriter.h"
#include "llvm/ProfileData/CtxInstrContextNode.h"
@@ -20,7 +21,7 @@ namespace llvm {
enum PGOCtxProfileRecords { Invalid = 0, Version, Guid, CalleeIndex, Counters };
enum PGOCtxProfileBlockIDs {
- ProfileMetadataBlockID = 100,
+ ProfileMetadataBlockID = bitc::FIRST_APPLICATION_BLOCKID,
ContextNodeBlockID = ProfileMetadataBlockID + 1
};
More information about the llvm-commits
mailing list