[clang] [clang][AMDGPU] Disable OpenCL images on targets without image-insts (PR #242675)

Matt Arsenault via cfe-commits cfe-commits at lists.llvm.org
Sat Nov 14 10:09:39 PST 2026


================
@@ -1973,6 +1973,9 @@ class TargetInfo : public TransferrableTargetInfo,
   /// Whether to support HIP image/texture API's.
   virtual bool hasHIPImageSupport() const { return true; }
 
+  /// Whether to support OpenCL image and sampler types and features.
+  virtual bool hasOpenCLImageSupport() const { return true; }
----------------
arsenm wrote:

Can we avoid having 2 language builtins for the same thing? The conservative default should also be false 

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


More information about the cfe-commits mailing list