[Mlir-commits] [mlir] [mlir][SPIR-V] Refine OpTypeImage capability inference (PR #195060)
Igor Wodiany
llvmlistbot at llvm.org
Tue May 5 02:16:12 PDT 2026
================
@@ -429,13 +431,75 @@ ImageSamplerUseInfo ImageType::getSamplerUseInfo() const {
ImageFormat ImageType::getImageFormat() const { return getImpl()->format; }
+void TypeExtensionVisitor::addConcrete(ImageType type) {
+ // OpTypeImage with a 64-bit integer Sampled Type requires the
+ // SPV_EXT_shader_image_int64 extension (companion to Int64ImageEXT).
+ if (auto intTy = dyn_cast<IntegerType>(type.getElementType());
+ intTy && intTy.getWidth() == 64) {
+ static constexpr auto ext = Extension::SPV_EXT_shader_image_int64;
----------------
IgWod wrote:
Use `pushExts`?
https://github.com/llvm/llvm-project/pull/195060
More information about the Mlir-commits
mailing list