[llvm] 1f56afa - [InlineSpiller] Fix missing LiveRegMatrix declaration. NFC.

Ahmed Bougacha via llvm-commits llvm-commits at lists.llvm.org
Thu May 1 11:40:25 PDT 2025


Author: Ahmed Bougacha
Date: 2025-05-01T11:40:07-07:00
New Revision: 1f56afa9b4d1839b8c8703ff9c7a4784546a6451

URL: https://github.com/llvm/llvm-project/commit/1f56afa9b4d1839b8c8703ff9c7a4784546a6451
DIFF: https://github.com/llvm/llvm-project/commit/1f56afa9b4d1839b8c8703ff9c7a4784546a6451.diff

LOG: [InlineSpiller] Fix missing LiveRegMatrix declaration. NFC.

b25b51eb639d adds a reference to LiveRegMatrix in Spiller.h without
including the header, or adding a declaration.  That breaks modules
builds.

It looks like it might get reverted in #137801, but let's fix the
breakage in the meantime.

Added: 
    

Modified: 
    llvm/include/llvm/CodeGen/Spiller.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/CodeGen/Spiller.h b/llvm/include/llvm/CodeGen/Spiller.h
index 84fc872a07606..4271bbe5612e8 100644
--- a/llvm/include/llvm/CodeGen/Spiller.h
+++ b/llvm/include/llvm/CodeGen/Spiller.h
@@ -20,6 +20,7 @@ class MachineFunctionPass;
 class VirtRegMap;
 class VirtRegAuxInfo;
 class LiveIntervals;
+class LiveRegMatrix;
 class LiveStacks;
 class MachineDominatorTree;
 class MachineBlockFrequencyInfo;


        


More information about the llvm-commits mailing list