MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / BuildModule

Function BuildModule

test/opt/module_test.cpp:47–50  ·  view source on GitHub ↗

Returns an IRContext owning the module formed by assembling the given text, then loading the result.

Source from the content-addressed store, hash-verified

45// Returns an IRContext owning the module formed by assembling the given text,
46// then loading the result.
47inline 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
52TEST(ModuleTest, ComputeIdBound) {
53 // Empty module case.

Callers 15

TESTFunction · 0.70
AssembleAndDisassembleFunction · 0.70
TEST_FFunction · 0.70
AssembleMethod · 0.70
TESTFunction · 0.70
TEST_FFunction · 0.70
TEST_FFunction · 0.70
DoRoundTripCheckFunction · 0.70
TESTFunction · 0.70
DoErrorMessageCheckFunction · 0.70
TEST_FFunction · 0.70
GetInstructionToFoldFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected