Lines Matching refs:msgpack
24 msgpack::DocNode &Node, msgpack::Type SKind, in verifyScalar()
25 function_ref<bool(msgpack::DocNode &)> verifyValue) { in verifyScalar()
33 if (Node.getKind() != msgpack::Type::String) in verifyScalar()
45 bool MetadataVerifier::verifyInteger(msgpack::DocNode &Node) { in verifyInteger()
46 if (!verifyScalar(Node, msgpack::Type::UInt)) in verifyInteger()
47 if (!verifyScalar(Node, msgpack::Type::Int)) in verifyInteger()
53 msgpack::DocNode &Node, function_ref<bool(msgpack::DocNode &)> verifyNode, in verifyArray()
68 msgpack::MapDocNode &MapNode, StringRef Key, bool Required, in verifyEntry()
69 function_ref<bool(msgpack::DocNode &)> verifyNode) { in verifyEntry()
77 msgpack::MapDocNode &MapNode, StringRef Key, bool Required, in verifyScalarEntry()
78 msgpack::Type SKind, in verifyScalarEntry()
79 function_ref<bool(msgpack::DocNode &)> verifyValue) { in verifyScalarEntry()
80 return verifyEntry(MapNode, Key, Required, [=](msgpack::DocNode &Node) { in verifyScalarEntry()
85 bool MetadataVerifier::verifyIntegerEntry(msgpack::MapDocNode &MapNode, in verifyIntegerEntry()
87 return verifyEntry(MapNode, Key, Required, [this](msgpack::DocNode &Node) { in verifyIntegerEntry()
92 bool MetadataVerifier::verifyKernelArgs(msgpack::DocNode &Node) { in verifyKernelArgs()
98 msgpack::Type::String)) in verifyKernelArgs()
101 msgpack::Type::String)) in verifyKernelArgs()
108 msgpack::Type::String, in verifyKernelArgs()
109 [](msgpack::DocNode &SNode) { in verifyKernelArgs()
133 msgpack::Type::String, in verifyKernelArgs()
134 [](msgpack::DocNode &SNode) { in verifyKernelArgs()
146 msgpack::Type::String, in verifyKernelArgs()
147 [](msgpack::DocNode &SNode) { in verifyKernelArgs()
156 msgpack::Type::String, in verifyKernelArgs()
157 [](msgpack::DocNode &SNode) { in verifyKernelArgs()
166 msgpack::Type::Boolean)) in verifyKernelArgs()
169 msgpack::Type::Boolean)) in verifyKernelArgs()
172 msgpack::Type::Boolean)) in verifyKernelArgs()
175 msgpack::Type::Boolean)) in verifyKernelArgs()
181 bool MetadataVerifier::verifyKernel(msgpack::DocNode &Node) { in verifyKernel()
187 msgpack::Type::String)) in verifyKernel()
190 msgpack::Type::String)) in verifyKernel()
193 msgpack::Type::String, in verifyKernel()
194 [](msgpack::DocNode &SNode) { in verifyKernel()
206 KernelMap, ".language_version", false, [this](msgpack::DocNode &Node) { in verifyKernel()
209 [this](msgpack::DocNode &Node) { return verifyInteger(Node); }, 2); in verifyKernel()
212 if (!verifyEntry(KernelMap, ".args", false, [this](msgpack::DocNode &Node) { in verifyKernel()
213 return verifyArray(Node, [this](msgpack::DocNode &Node) { in verifyKernel()
219 [this](msgpack::DocNode &Node) { in verifyKernel()
221 [this](msgpack::DocNode &Node) { in verifyKernel()
228 [this](msgpack::DocNode &Node) { in verifyKernel()
230 [this](msgpack::DocNode &Node) { in verifyKernel()
237 msgpack::Type::String)) in verifyKernel()
240 msgpack::Type::String)) in verifyKernel()
266 bool MetadataVerifier::verify(msgpack::DocNode &HSAMetadataRoot) { in verify()
272 RootMap, "amdhsa.version", true, [this](msgpack::DocNode &Node) { in verify()
275 [this](msgpack::DocNode &Node) { return verifyInteger(Node); }, 2); in verify()
279 RootMap, "amdhsa.printf", false, [this](msgpack::DocNode &Node) { in verify()
280 return verifyArray(Node, [this](msgpack::DocNode &Node) { in verify()
281 return verifyScalar(Node, msgpack::Type::String); in verify()
286 [this](msgpack::DocNode &Node) { in verify()
287 return verifyArray(Node, [this](msgpack::DocNode &Node) { in verify()