Home
last modified time | relevance | path

Searched refs:imageType (Results 1 – 5 of 5) sorted by relevance

/llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/IR/
H A DSPIRVTypes.cpp672 } else if (auto imageType = dyn_cast<ImageType>()) { in getExtensions() local
673 imageType.getExtensions(extensions, storage); in getExtensions()
692 } else if (auto imageType = dyn_cast<ImageType>()) { in getCapabilities() local
693 imageType.getCapabilities(capabilities, storage); in getCapabilities()
729 Type imageType; member
732 SampledImageType SampledImageType::get(Type imageType) { in get() argument
733 return Base::get(imageType.getContext(), imageType); in get()
738 Type imageType) { in getChecked() argument
739 return Base::getChecked(emitError, imageType.getContext(), imageType); in getChecked()
746 Type imageType) { in verify() argument
[all …]
H A DSPIRVOps.cpp4254 auto imageType = sampledImageType.getImageType().cast<spirv::ImageType>(); in verify() local
4260 Type sampledElementType = imageType.getElementType(); in verify()
4266 spirv::Dim imageDim = imageType.getDim(); in verify()
4267 spirv::ImageSamplingInfo imageMS = imageType.getSamplingInfo(); in verify()
4313 spirv::ImageType imageType = image().getType().cast<spirv::ImageType>(); in verify() local
4316 spirv::Dim dim = imageType.getDim(); in verify()
4317 spirv::ImageSamplingInfo samplingInfo = imageType.getSamplingInfo(); in verify()
4318 spirv::ImageSamplerUseInfo samplerInfo = imageType.getSamplerUseInfo(); in verify()
4357 if (imageType.getArrayedInfo() == spirv::ImageArrayedInfo::Arrayed) in verify()
/llvm-project-15.0.7/mlir/include/mlir/Dialect/SPIRV/IR/
H A DSPIRVTypes.h244 static SampledImageType get(Type imageType);
247 getChecked(function_ref<InFlightDiagnostic()> emitError, Type imageType);
250 Type imageType);
/llvm-project-15.0.7/mlir/lib/Target/SPIRV/Serialization/
H A DSerializer.cpp420 if (auto imageType = type.dyn_cast<spirv::ImageType>()) { in prepareBasicType() local
423 if (failed(processType(loc, imageType.getElementType(), sampledTypeID))) in prepareBasicType()
427 operands.push_back(static_cast<uint32_t>(imageType.getDim())); in prepareBasicType()
428 operands.push_back(static_cast<uint32_t>(imageType.getDepthInfo())); in prepareBasicType()
429 operands.push_back(static_cast<uint32_t>(imageType.getArrayedInfo())); in prepareBasicType()
430 operands.push_back(static_cast<uint32_t>(imageType.getSamplingInfo())); in prepareBasicType()
431 operands.push_back(static_cast<uint32_t>(imageType.getSamplerUseInfo())); in prepareBasicType()
432 operands.push_back(static_cast<uint32_t>(imageType.getImageFormat())); in prepareBasicType()
/llvm-project-15.0.7/llvm/lib/Target/SPIRV/
H A DSPIRVInstrInfo.td166 def OpTypeSampledImage: Op<27, (outs TYPE:$res), (ins TYPE:$imageType),
167 "$res = OpTypeSampledImage $imageType">;