[llvm] 0597243 - [SPIRV] Cleanup includes in SPIRVSubtarget.h

via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 20 14:46:57 PDT 2026


Author: Aiden Grossman
Date: 2026-08-20T14:46:52-07:00
New Revision: 05972435037cb69e899b4e2b960f0a880d11f8a2

URL: https://github.com/llvm/llvm-project/commit/05972435037cb69e899b4e2b960f0a880d11f8a2
DIFF: https://github.com/llvm/llvm-project/commit/05972435037cb69e899b4e2b960f0a880d11f8a2.diff

LOG: [SPIRV] Cleanup includes in SPIRVSubtarget.h

This makes some cleanup for NewPM porting easier for RegBankSelect.
SPIRVSubtarget currently transitively depends in RegisterBankInfo.h from
RegBankSelect.h, which we want to remove. Also remove an unused include
while at it.

Reviewers: aeubanks

Pull Request: https://github.com/llvm/llvm-project/pull/217755

Added: 
    

Modified: 
    llvm/lib/Target/SPIRV/SPIRVSubtarget.h

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/SPIRV/SPIRVSubtarget.h b/llvm/lib/Target/SPIRV/SPIRVSubtarget.h
index 1b14a89695f59..23ad2744e915d 100644
--- a/llvm/lib/Target/SPIRV/SPIRVSubtarget.h
+++ b/llvm/lib/Target/SPIRV/SPIRVSubtarget.h
@@ -22,7 +22,7 @@
 #include "llvm/CodeGen/GlobalISel/CallLowering.h"
 #include "llvm/CodeGen/GlobalISel/InstructionSelector.h"
 #include "llvm/CodeGen/GlobalISel/LegalizerInfo.h"
-#include "llvm/CodeGen/SelectionDAGTargetInfo.h"
+#include "llvm/CodeGen/RegisterBankInfo.h"
 #include "llvm/CodeGen/TargetSubtargetInfo.h"
 #include "llvm/IR/DataLayout.h"
 #include "llvm/IR/Module.h"


        


More information about the llvm-commits mailing list