[Mlir-commits] [mlir] [mlir][spirv] Add OpTypeSampler and OpSampledImage support (PR #189891)
Igor Wodiany
llvmlistbot at llvm.org
Wed Apr 1 01:48:32 PDT 2026
================
@@ -65,6 +65,51 @@ def SPIRV_SampledImageTransform : StrFunc<"llvm::cast<::mlir::spirv::SampledImag
// -----
+def SPIRV_SampledImageOp : SPIRV_Op<"SampledImage",
+ [Pure,
+ TypesMatchWith<"type of 'result' wraps the image type of 'image'",
+ "result", "image",
+ "::llvm::cast<spirv::SampledImageType>($_self).getImageType()">]> {
+ let summary = "Create a sampled image, containing both a sampler and an image.";
+
+ let description = [{
+ Result Type must be OpTypeSampledImage whose Image Type is the same as
----------------
IgWod wrote:
I don't understand the part `whose Image Type is the same as the type of Image`.
https://github.com/llvm/llvm-project/pull/189891
More information about the Mlir-commits
mailing list