Returns an IRContext owning the module formed by assembling the given text, then loading the result.
| 45 | // Returns an IRContext owning the module formed by assembling the given text, |
| 46 | // then loading the result. |
| 47 | inline std::unique_ptr<IRContext> BuildModule(std::string text) { |
| 48 | return spvtools::BuildModule(SPV_ENV_UNIVERSAL_1_1, nullptr, text, |
| 49 | SPV_TEXT_TO_BINARY_OPTION_PRESERVE_NUMERIC_IDS); |
| 50 | } |
| 51 | |
| 52 | TEST(ModuleTest, ComputeIdBound) { |
| 53 | // Empty module case. |
no outgoing calls
no test coverage detected