[mlir][spirv] Allow unnamed entry point functions
authorAlexander Batashev <alexbatashev@outlook.com>
Mon, 18 Jul 2022 15:56:34 +0000 (11:56 -0400)
committerLei Zhang <antiagainst@google.com>
Mon, 18 Jul 2022 16:03:38 +0000 (12:03 -0400)
commite59cdcd070249488c5c5de668bb84a3033ab62c9
tree92b54ffccf845373590c3a28f8cd5f54f5b27ed8
parent3e21fb616d9a1b29bf9d1a1ba484add633d6d5b3
[mlir][spirv] Allow unnamed entry point functions

SPIR-V specification does not require a function to have a name
if it is an entry point. Adjust deserializer to allow those kinds
of SPIR-V binaries.

Reviewed By: antiagainst

Differential Revision: https://reviews.llvm.org/D120181
mlir/lib/Target/SPIRV/Deserialization/DeserializeOps.cpp