| 156 | } |
| 157 | |
| 158 | spv_result_t ValidateGraphEntryPoints(ValidationState_t& _) { |
| 159 | if (_.graph_entry_points().empty() && |
| 160 | _.HasCapability(spv::Capability::GraphARM)) { |
| 161 | return _.diag(SPV_ERROR_INVALID_BINARY, nullptr) |
| 162 | << "No OpGraphEntryPointARM instruction was found but the GraphARM " |
| 163 | "capability is declared."; |
| 164 | } |
| 165 | return SPV_SUCCESS; |
| 166 | } |
| 167 | |
| 168 | spv_result_t ValidateBinaryUsingContextAndValidationState( |
| 169 | const spv_context_t& context, const uint32_t* words, const size_t num_words, |
no test coverage detected