Returns the expected SPIR-V module header words for the Khronos Assembler generator, and with a given Id bound.
| 152 | // Returns the expected SPIR-V module header words for the Khronos |
| 153 | // Assembler generator, and with a given Id bound. |
| 154 | std::vector<uint32_t> ExpectedHeaderForBound(uint32_t bound) { |
| 155 | return {spv::MagicNumber, 0x10000, |
| 156 | SPV_GENERATOR_WORD(SPV_GENERATOR_KHRONOS_ASSEMBLER, 0), bound, 0}; |
| 157 | } |
| 158 | |
| 159 | // Returns a parsed operand for a non-number value at the given word offset |
| 160 | // within an instruction. |
no outgoing calls
no test coverage detected