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

Method replaceSourceWith

ir/instr.cpp:3101–3108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3099}
3100
3101void Phi::replaceSourceWith(const string &from, const string &to) {
3102 for (auto &[_, bb] : values) {
3103 if (bb == from) {
3104 bb = to;
3105 break;
3106 }
3107 }
3108}
3109
3110void Phi::setValue(size_t index, Value &val) {
3111 values[index].first = &val;

Callers 1

function.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected