MCPcopy Create free account
hub / github.com/AliveToolkit/alive2 / addFnDecl

Method addFnDecl

ir/function.cpp:371–376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

369}
370
371void Function::addFnDecl(FnDecl &&decl) {
372 if (find_if(fn_decls.begin(), fn_decls.end(),
373 [&](auto &d) { return d.name == decl.name; }) != fn_decls.end())
374 return;
375 fn_decls.emplace_back(std::move(decl));
376}
377
378Function::UsersTy Function::getUsers() const {
379 UsersTy users;

Callers 2

syncDataWithSrcMethod · 0.80
register_fn_declMethod · 0.80

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected