Skip to content

Commit

Permalink
[ctx_profile] Follow the pattern elsewhere for choosing the block IDs
Browse files Browse the repository at this point in the history
This was an oversight in #91859. Using the subblock ID mechanism
other places that use the bitstream APIs (e.g. `BitstreamRemarkSerializer`) use.
  • Loading branch information
mtrofin committed May 16, 2024
1 parent c87b1ca commit c00e012
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion llvm/include/llvm/ProfileData/PGOCtxProfWriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@
#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"

namespace llvm {
enum PGOCtxProfileRecords { Invalid = 0, Version, Guid, CalleeIndex, Counters };

enum PGOCtxProfileBlockIDs {
ProfileMetadataBlockID = 100,
ProfileMetadataBlockID = bitc::FIRST_APPLICATION_BLOCKID,
ContextNodeBlockID = ProfileMetadataBlockID + 1
};

Expand Down

0 comments on commit c00e012

Please sign in to comment.