[Mlir-commits] [mlir] [mlir][spirv] Add support for SPV_ARM_graph extension - part 1 (PR #151934)
Igor Wodiany
llvmlistbot at llvm.org
Thu Aug 7 09:05:38 PDT 2025
================
@@ -2836,6 +2837,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 && !(llvm::isa<FunctionType>(results[0]) ||
----------------
IgWod-IMG wrote:
In that case maybe it's worth extracting it as a static helper function?
https://github.com/llvm/llvm-project/pull/151934
More information about the Mlir-commits
mailing list