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

Function add_users

ir/function.cpp:360–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

358}
359
360static void add_users(Function::UsersTy &users, Value *i, BasicBlock *bb,
361 Value *val) {
362 if (auto *agg = dynamic_cast<AggregateValue*>(val)) {
363 for (auto elem : agg->getVals()) {
364 add_users(users, val, bb, elem);
365 }
366 }
367 if (i != val)
368 users[val].emplace(i, bb);
369}
370
371void Function::addFnDecl(FnDecl &&decl) {
372 if (find_if(fn_decls.begin(), fn_decls.end(),

Callers 1

getUsersMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected