OLD | NEW |
1 //===- subzero/src/IceCfgNode.cpp - Basic block (node) implementation -----===// | 1 //===- subzero/src/IceCfgNode.cpp - Basic block (node) implementation -----===// |
2 // | 2 // |
3 // The Subzero Code Generator | 3 // The Subzero Code Generator |
4 // | 4 // |
5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
7 // | 7 // |
8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
9 /// | 9 /// |
10 /// \file | 10 /// \file |
(...skipping 979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
990 if (DecorateAsm) { | 990 if (DecorateAsm) { |
991 constexpr bool IsLiveIn = true; | 991 constexpr bool IsLiveIn = true; |
992 emitRegisterUsage(Str, Func, this, IsLiveIn, LiveRegCount); | 992 emitRegisterUsage(Str, Func, this, IsLiveIn, LiveRegCount); |
993 if (getInEdges().size()) { | 993 if (getInEdges().size()) { |
994 Str << "\t\t\t\t# preds="; | 994 Str << "\t\t\t\t# preds="; |
995 bool First = true; | 995 bool First = true; |
996 for (CfgNode *I : getInEdges()) { | 996 for (CfgNode *I : getInEdges()) { |
997 if (!First) | 997 if (!First) |
998 Str << ","; | 998 Str << ","; |
999 First = false; | 999 First = false; |
1000 Str << I->getAsmName(); | 1000 Str << "$" << I->getName(); |
1001 } | 1001 } |
1002 Str << "\n"; | 1002 Str << "\n"; |
1003 } | 1003 } |
1004 if (getLoopNestDepth()) { | 1004 if (getLoopNestDepth()) { |
1005 Str << "\t\t\t\t# loop depth=" << getLoopNestDepth() << "\n"; | 1005 Str << "\t\t\t\t# loop depth=" << getLoopNestDepth() << "\n"; |
1006 } | 1006 } |
1007 } | 1007 } |
1008 | 1008 |
1009 for (const Inst &I : Phis) { | 1009 for (const Inst &I : Phis) { |
1010 if (I.isDeleted()) | 1010 if (I.isDeleted()) |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1368 InstIntrinsicCall *Inst = InstIntrinsicCall::create( | 1368 InstIntrinsicCall *Inst = InstIntrinsicCall::create( |
1369 Func, 5, Func->makeVariable(IceType_i64), RMWI64Name, Info->Info); | 1369 Func, 5, Func->makeVariable(IceType_i64), RMWI64Name, Info->Info); |
1370 Inst->addArg(AtomicRMWOp); | 1370 Inst->addArg(AtomicRMWOp); |
1371 Inst->addArg(Counter); | 1371 Inst->addArg(Counter); |
1372 Inst->addArg(One); | 1372 Inst->addArg(One); |
1373 Inst->addArg(OrderAcquireRelease); | 1373 Inst->addArg(OrderAcquireRelease); |
1374 Insts.push_front(Inst); | 1374 Insts.push_front(Inst); |
1375 } | 1375 } |
1376 | 1376 |
1377 } // end of namespace Ice | 1377 } // end of namespace Ice |
OLD | NEW |