[Mlir-commits] [mlir] [mlir][spirv] Add support for SPV_ARM_graph extension - part 2 (PR #156665)
Jakub Kuderski
llvmlistbot at llvm.org
Thu Sep 11 07:20:49 PDT 2025
================
@@ -669,6 +669,200 @@ spirv::Deserializer::processFunctionEnd(ArrayRef<uint32_t> operands) {
return success();
}
+LogicalResult
+spirv::Deserializer::processGraphEntryPointARM(ArrayRef<uint32_t> operands) {
+ if (operands.size() < 2) {
+ return emitError(unknownLoc,
+ "missing graph defintion in OpGraphEntryPointARM");
+ }
+
+ unsigned wordIndex = 0;
+ uint32_t graphID = operands[wordIndex++];
+ if (!graphMap.contains(graphID)) {
+ return emitError(unknownLoc,
+ "missing graph definition/declaration with id ")
+ << graphID;
+ }
+
+ spirv::GraphARMOp graphARM = graphMap[graphID];
+ StringRef name = decodeStringLiteral(operands, wordIndex);
+ graphARM.setSymName(name);
+ graphARM.setEntryPoint(true);
+
+ SmallVector<Attribute, 4> interface;
+ for (int64_t size = operands.size(); wordIndex < size; wordIndex++) {
----------------
kuhar wrote:
use pre-increment
https://github.com/llvm/llvm-project/pull/156665
More information about the Mlir-commits
mailing list