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

Method contains

src/module.cpp:65–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63 bit_signal<64> changed{};
64
65 bool contains(instruction_ref ins) const
66 {
67 if(ins == instructions.end())
68 return false;
69 auto r = instruction_set.count(std::addressof(*ins)) > 0;
70 assert(r == std::any_of(instructions.begin(), instructions.end(), [&](auto&& x) {
71 return std::addressof(x) == std::addressof(*ins);
72 }));
73 return r;
74 }
75
76 template <class... Ts>
77 instruction_ref emplace(instruction_ref pos, Ts&&... xs)

Callers 1

has_instructionMethod · 0.45

Calls 3

any_ofFunction · 0.50
endMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected