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

Function is_assembly

tools/diff/diff.cpp:73–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73bool is_assembly(const char* path) {
74 const char* suffix = strrchr(path, '.');
75 if (suffix == nullptr) {
76 return false;
77 }
78
79 return strcmp(suffix, ".spvasm") == 0;
80}
81
82std::unique_ptr<spvtools::opt::IRContext> load_module(const char* path) {
83 if (is_assembly(path)) {

Callers 1

load_moduleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected