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

Method dup

ir/function.cpp:104–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104unique_ptr<BasicBlock>
105BasicBlock::dup(Function &f, const string &suffix) const {
106 auto newbb = make_unique<BasicBlock>(name + suffix);
107 for (auto &i : instrs()) {
108 newbb->addInstr(i.dup(f, suffix));
109 }
110 return newbb;
111}
112
113void BasicBlock::rauw(const Value &what, Value &with) {
114 for (auto &i : m_instrs) {

Callers 1

function.cppFile · 0.45

Calls 1

addInstrMethod · 0.80

Tested by

no test coverage detected