[Mlir-commits] [mlir] [mlir][spirv] Add support for SPV_ARM_graph extension - part 2 (PR #156665)
Jakub Kuderski
llvmlistbot at llvm.org
Wed Sep 10 09:35:01 PDT 2025
================
@@ -875,6 +879,35 @@ Serializer::prepareFunctionType(Location loc, FunctionType type,
return success();
}
+LogicalResult
+Serializer::prepareGraphType(Location loc, GraphType type,
+ spirv::Opcode &typeEnum,
+ SmallVectorImpl<uint32_t> &operands) {
+ typeEnum = spirv::Opcode::OpTypeGraphARM;
+ assert(type.getNumResults() >= 1 &&
+ "serialization requires at least a return value");
+
+ operands.push_back(type.getNumInputs());
+
+ for (const Type &res : type.getInputs()) {
----------------
kuhar wrote:
Can we process this by values? IR types are cheap to copy/pass around.
https://github.com/llvm/llvm-project/pull/156665
More information about the Mlir-commits
mailing list