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

Function SelectiveJoin

test/opt/pass_utils.cpp:82–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82std::string SelectiveJoin(const std::vector<const char*>& strings,
83 const std::function<bool(const char*)>& skip_dictator,
84 char delimiter) {
85 std::ostringstream oss;
86 for (const auto* str : strings) {
87 if (!skip_dictator(str)) oss << str << delimiter;
88 }
89 return oss.str();
90}
91
92std::string JoinAllInsts(const std::vector<const char*>& insts) {
93 return SelectiveJoin(insts, [](const char*) { return false; });

Callers 4

TEST_FFunction · 0.85
TEST_FFunction · 0.85
JoinAllInstsFunction · 0.85
JoinNonDebugInstsFunction · 0.85

Calls 1

strMethod · 0.45

Tested by 2

TEST_FFunction · 0.68
TEST_FFunction · 0.68