[Mlir-commits] [mlir] [mlir][spirv] Add support for SPV_ARM_graph extension - part 1 (PR #151934)

Jakub Kuderski llvmlistbot at llvm.org
Tue Aug 26 07:53:26 PDT 2025


================
@@ -2836,6 +2836,20 @@ void AsmPrinter::Impl::printTypeImpl(Type type) {
         os << '>';
       })
       .Case<NoneType>([&](Type) { os << "none"; })
+      .Case<GraphType>([&](GraphType graphTy) {
+        os << '(';
+        interleaveComma(graphTy.getInputs(), [&](Type ty) { printType(ty); });
+        os << ") -> ";
+        ArrayRef<Type> results = graphTy.getResults();
+        if (results.size() == 1 &&
+            !(isa<FunctionType>(results[0]) || isa<GraphType>(results[0]))) {
----------------
kuhar wrote:

```suggestion
            !isa<FunctionType, GraphType>(results[0])) {
```

https://github.com/llvm/llvm-project/pull/151934


More information about the Mlir-commits mailing list