| 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 963 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 974 if (ShouldReport && Var->hasReg()) { | 974 if (ShouldReport && Var->hasReg()) { |
| 975 // Don't report end of live range until the live count reaches 0. | 975 // Don't report end of live range until the live count reaches 0. |
| 976 SizeT NewCount = --LiveRegCount[Var->getRegNum()]; | 976 SizeT NewCount = --LiveRegCount[Var->getRegNum()]; |
| 977 if (NewCount) | 977 if (NewCount) |
| 978 ShouldReport = false; | 978 ShouldReport = false; |
| 979 } | 979 } |
| 980 if (ShouldReport) { | 980 if (ShouldReport) { |
| 981 if (Printed) | 981 if (Printed) |
| 982 Str << ","; | 982 Str << ","; |
| 983 else | 983 else |
| 984 Str << " \t# END="; | 984 Str << " \t@ END="; |
| 985 Var->emit(Func); | 985 Var->emit(Func); |
| 986 Printed = true; | 986 Printed = true; |
| 987 } | 987 } |
| 988 } | 988 } |
| 989 return Printed; | 989 return Printed; |
| 990 } | 990 } |
| 991 | 991 |
| 992 void updateStats(Cfg *Func, const Inst *I) { | 992 void updateStats(Cfg *Func, const Inst *I) { |
| 993 if (!BuildDefs::dump()) | 993 if (!BuildDefs::dump()) |
| 994 return; | 994 return; |
| (...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1407 InstIntrinsicCall *Inst = InstIntrinsicCall::create( | 1407 InstIntrinsicCall *Inst = InstIntrinsicCall::create( |
| 1408 Func, 5, Func->makeVariable(IceType_i64), RMWI64Name, Info->Info); | 1408 Func, 5, Func->makeVariable(IceType_i64), RMWI64Name, Info->Info); |
| 1409 Inst->addArg(AtomicRMWOp); | 1409 Inst->addArg(AtomicRMWOp); |
| 1410 Inst->addArg(Counter); | 1410 Inst->addArg(Counter); |
| 1411 Inst->addArg(One); | 1411 Inst->addArg(One); |
| 1412 Inst->addArg(OrderAcquireRelease); | 1412 Inst->addArg(OrderAcquireRelease); |
| 1413 Insts.push_front(Inst); | 1413 Insts.push_front(Inst); |
| 1414 } | 1414 } |
| 1415 | 1415 |
| 1416 } // end of namespace Ice | 1416 } // end of namespace Ice |
| OLD | NEW |