[llvm] Centralize prefetch target storage in MachineFunction. (PR #184194)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 3 00:02:14 PST 2026
================
@@ -2017,6 +2017,39 @@ void AsmPrinter::handleCallsiteForCallgraph(
}
}
+/// Helper to emit a symbol for the prefetch target associated with the given
+/// BBID and callsite index.
+void AsmPrinter::emitPrefetchTargetSymbol(unsigned BaseID,
+ unsigned CallsiteIndex) {
+ MCSymbol *PrefetchTargetSymbol = OutContext.getOrCreateSymbol(
+ Twine("__llvm_prefetch_target_") + MF->getName() + Twine("_") +
+ Twine(BaseID) + Twine("_") + Twine(static_cast<unsigned>(CallsiteIndex)));
----------------
arsenm wrote:
Unnecessary cast from unsigned to unsigned
https://github.com/llvm/llvm-project/pull/184194
More information about the llvm-commits
mailing list