[Mlir-commits] [mlir] [mlir][spirv] Rework type capability queries (PR #160113)
Igor Wodiany
llvmlistbot at llvm.org
Mon Sep 22 07:41:59 PDT 2025
================
@@ -534,16 +562,11 @@ Type RuntimeArrayType::getElementType() const { return getImpl()->elementType; }
unsigned RuntimeArrayType::getArrayStride() const { return getImpl()->stride; }
-void RuntimeArrayType::getCapabilities(
- SPIRVType::CapabilityArrayRefVector &capabilities,
- std::optional<StorageClass> storage) {
- {
- static const Capability caps[] = {Capability::Shader};
- ArrayRef<Capability> ref(caps, std::size(caps));
- capabilities.push_back(ref);
- }
- llvm::cast<SPIRVType>(getElementType())
- .getCapabilities(capabilities, storage);
+void TypeCapabilityVisitor::addConcrete(RuntimeArrayType type) {
+ add(type.getElementType());
+
----------------
IgWod-IMG wrote:
nit: Coop matrix doesn't have empty line between `add` and `cap`.
https://github.com/llvm/llvm-project/pull/160113
More information about the Mlir-commits
mailing list