@@ -258,7 +258,7 @@ static const char *getDottyArrowForCC(OperandKind k) {
258
258
259
259
// / Dump a dotty graph that depicts the module.
260
260
void Module::dumpDAG () {
261
- std::string filename = " dotty_network_dump_" + pointerToString (this ) + " .dot" ;
261
+ std::string filename = " dotty_network_dump_" + std::to_string (this ) + " .dot" ;
262
262
std::cout << " Writing dotty graph to: " << filename << ' \n ' ;
263
263
264
264
std::string sb;
@@ -270,7 +270,7 @@ void Module::dumpDAG() {
270
270
for (auto &I : instrs_) {
271
271
std::string desc = getDottyDesc (I);
272
272
273
- sb += quote (pointerToString (I)) + " [\n " ;
273
+ sb += quote (std::to_string (I)) + " [\n " ;
274
274
std::string repr = quote (desc);
275
275
sb += " \t label = " + repr + " \n " ;
276
276
sb += " \t shape = \" record\"\n " ;
@@ -282,7 +282,7 @@ void Module::dumpDAG() {
282
282
sb += " style=invis;\n " ;
283
283
284
284
for (auto &v : weights_) {
285
- sb += quote (pointerToString (v)) + " [\n " ;
285
+ sb += quote (std::to_string (v)) + " [\n " ;
286
286
std::string desc = escapeDottyString (getDottyDesc (v));
287
287
sb += " \t label = " + desc + " \n " ;
288
288
sb += " \t shape = \" record\"\n " ;
@@ -298,8 +298,8 @@ void Module::dumpDAG() {
298
298
for (auto &I : instrs_) {
299
299
for (int i = 0 , e = I->getNumOperands (); i < e; i++) {
300
300
auto op = I->getOperand (i);
301
- std::string from = quote (pointerToString (I)) + " :f" + std::to_string (i);
302
- std::string to = quote (pointerToString (op.first ));
301
+ std::string from = quote (std::to_string (I)) + " :f" + std::to_string (i);
302
+ std::string to = quote (std::to_string (op.first ));
303
303
304
304
sb += from + " ->" + to + " [dir=" + getDottyArrowForCC (op.second ) + " ];\n " ;
305
305
}
@@ -309,8 +309,8 @@ void Module::dumpDAG() {
309
309
Instruction *prev = nullptr ;
310
310
for (auto &I : instrs_) {
311
311
if (prev) {
312
- std::string from = quote (pointerToString (prev));
313
- std::string to = quote (pointerToString (I));
312
+ std::string from = quote (std::to_string (prev));
313
+ std::string to = quote (std::to_string (I));
314
314
sb += from + " ->" + to + " [color=\" blue\" ];\n " ;
315
315
}
316
316
prev = I;
0 commit comments