| 102 | } |
| 103 | |
| 104 | unique_ptr<BasicBlock> |
| 105 | BasicBlock::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 | |
| 113 | void BasicBlock::rauw(const Value &what, Value &with) { |
| 114 | for (auto &i : m_instrs) { |