[llvm] Insert symbols for prefetch targets read from basic blocks section profile. (PR #168439)
Sriraman Tallam via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 19 13:48:45 PST 2025
================
@@ -229,6 +229,13 @@ class MachineBasicBlock
/// is only computed once and is cached.
mutable MCSymbol *CachedMCSymbol = nullptr;
+ /// Contains the subblock indices in this block that are targets of code
+ /// prefetching. The subblock indexed `i` specifies that region after the
+ /// `i`th call (or the beginning of the block if `i==0`) to before the`i+1`th
+ /// callsite (or the end of the block). The prefetch target is always the
+ /// beginning of the subblock.
+ SmallVector<unsigned> PrefetchTargetSubblockIndexes;
----------------
tmsri wrote:
define CallSiteIndex or SubblockIndex as unsigned type and use that instead of unsigned?
https://github.com/llvm/llvm-project/pull/168439
More information about the llvm-commits
mailing list