[llvm] [AMDGPU] Measure MFMA hazard windows at their own producers (PR #225989)
Michael Halkenhäuser via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 5 10:54:07 PDT 2026
================
@@ -176,6 +176,16 @@ class GCNHazardRecognizer final : public ScheduleHazardRecognizer {
// used on a newly inserted instruction before returning from PreEmitNoops.
void runOnInstruction(MachineInstr *MI);
+ /// Wait states required after \p MI, or nullopt if \p MI is not waited for.
+ /// Must return nullopt for terminators.
+ typedef function_ref<std::optional<int>(const MachineInstr &)> WindowForFn;
----------------
mhalk wrote:
nvm: Addressed! :)
https://github.com/llvm/llvm-project/pull/225989
More information about the llvm-commits
mailing list