Sets the module header for IrLoader. Meets the interface requirement of spvBinaryParse().
| 28 | // Sets the module header for IrLoader. Meets the interface requirement of |
| 29 | // spvBinaryParse(). |
| 30 | spv_result_t SetSpvHeader(void* builder, spv_endianness_t, uint32_t magic, |
| 31 | uint32_t version, uint32_t generator, |
| 32 | uint32_t id_bound, uint32_t reserved) { |
| 33 | reinterpret_cast<opt::IrLoader*>(builder)->SetModuleHeader( |
| 34 | magic, version, generator, id_bound, reserved); |
| 35 | return SPV_SUCCESS; |
| 36 | } |
| 37 | |
| 38 | // Processes a parsed instruction for IrLoader. Meets the interface requirement |
| 39 | // of spvBinaryParse(). |
nothing calls this directly
no test coverage detected