MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / compare

Function compare

src/value.cpp:489–502  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

487
488template <class F>
489static bool compare(const value& x, const value& y, F f)
490{
491 bool result = false;
492 visit_for_compare(x, [&](const auto& a) {
493 visit_for_compare(y, [&](const auto& b) {
494 if constexpr(std::is_same<decltype(a), decltype(b)>{})
495 result = f(std::forward_as_tuple(x.get_key(), compare_decay(a)),
496 std::forward_as_tuple(y.get_key(), compare_decay(b)));
497 else
498 assert(false); // NOLINT
499 });
500 });
501 return result;
502}
503
504value::type_t value::get_type() const
505{

Callers 15

operator==Function · 0.85
operator<Function · 0.85
compare_topk_pairFunction · 0.85
compareMethod · 0.85
lane_compare_swapMethod · 0.85
dpp_swapMethod · 0.85
sort_stepMethod · 0.85
rebuild_stepMethod · 0.85
maxFunction · 0.85
minFunction · 0.85
pack_compareFunction · 0.85
try_pushFunction · 0.85

Calls 2

visit_for_compareFunction · 0.85
compare_decayFunction · 0.85

Tested by

no test coverage detected