[llvm] [NVPTX] Aggressively try to replace image handles with references (PR #119730)

Alex MacLean via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 13 15:11:36 PST 2024


================
@@ -55,19 +55,9 @@ NVPTXSubtarget::NVPTXSubtarget(const Triple &TT, const std::string &CPU,
                                const std::string &FS,
                                const NVPTXTargetMachine &TM)
     : NVPTXGenSubtargetInfo(TT, CPU, /*TuneCPU*/ CPU, FS), PTXVersion(0),
-      FullSmVersion(200), SmVersion(getSmVersion()), TM(TM),
+      FullSmVersion(200), SmVersion(getSmVersion()),
       TLInfo(TM, initializeSubtargetDependencies(CPU, FS)) {}
 
-bool NVPTXSubtarget::hasImageHandles() const {
-  // Enable handles for Kepler+, where CUDA supports indirect surfaces and
-  // textures
-  if (TM.getDrvInterface() == NVPTX::CUDA)
----------------
AlexMaclean wrote:

Sounds good, thanks for the explanation of how we're choosing the minimum supported version. 

https://github.com/llvm/llvm-project/pull/119730


More information about the llvm-commits mailing list