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

Function GenerateModuleWithGraphEntryPoint

test/val/val_graph_test.cpp:83–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83std::string GenerateModuleWithGraphEntryPoint(const std::string& header) {
84 const std::string src = R"(
85%default_graph_type = OpTypeGraphARM 1 %int8tensor %int8tensor
86 OpGraphEntryPointARM %default_graph "default_entry_point" %var_int8tensor %var_int8tensor
87 %default_graph = OpGraphARM %default_graph_type
88 %in = OpGraphInputARM %int8tensor %uint_0
89 OpGraphSetOutputARM %in %uint_0
90 OpGraphEndARM
91 )";
92 return GenerateModule(header) + src;
93}
94
95//
96// Layout tests

Callers 1

TEST_FFunction · 0.85

Calls 1

GenerateModuleFunction · 0.70

Tested by

no test coverage detected