[Mlir-commits] [mlir] [mlir][SPIR-V] Refine OpTypeImage capability inference (PR #195060)
Arseniy Obolenskiy
llvmlistbot at llvm.org
Tue May 5 02:09:39 PDT 2026
================
@@ -125,6 +127,15 @@ class TypeCapabilityVisitor {
void addConcrete(TensorArmType type);
void addConcrete(VectorType type);
+ // Helper to push one or more compile-time-known capabilities. The vector
+ // stores ArrayRefs whose backing storage must outlive them, so the list is
+ // materialized as a static constexpr array.
+ template <Capability... Cs>
+ void pushCaps() {
+ static constexpr Capability caps[] = {Cs...};
+ capabilities.push_back(caps);
+ }
----------------
aobolensk wrote:
Done in https://github.com/llvm/llvm-project/pull/195796 , please take a look
https://github.com/llvm/llvm-project/pull/195060
More information about the Mlir-commits
mailing list