OLD | NEW |
1 //===- subzero/src/IceCfg.cpp - Control flow graph implementation ---------===// | 1 //===- subzero/src/IceCfg.cpp - Control flow graph 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 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1095 } | 1095 } |
1096 | 1096 |
1097 if (Verbose) { | 1097 if (Verbose) { |
1098 getContext()->getStrDump() << "Created: "; | 1098 getContext()->getStrDump() << "Created: "; |
1099 ShuffleVector->dump(this); | 1099 ShuffleVector->dump(this); |
1100 getContext()->getStrDump() << "\n"; | 1100 getContext()->getStrDump() << "\n"; |
1101 } | 1101 } |
1102 | 1102 |
1103 Instr.setDeleted(); | 1103 Instr.setDeleted(); |
1104 auto &LoweringContext = getTarget()->getContext(); | 1104 auto &LoweringContext = getTarget()->getContext(); |
1105 LoweringContext.setInsertPoint(Instr); | 1105 LoweringContext.setInsertPoint(instToIterator(&Instr)); |
1106 LoweringContext.insert(ShuffleVector); | 1106 LoweringContext.insert(ShuffleVector); |
1107 } | 1107 } |
1108 } | 1108 } |
1109 } | 1109 } |
1110 | 1110 |
1111 void Cfg::doNopInsertion() { | 1111 void Cfg::doNopInsertion() { |
1112 if (!getFlags().getShouldDoNopInsertion()) | 1112 if (!getFlags().getShouldDoNopInsertion()) |
1113 return; | 1113 return; |
1114 TimerMarker T(TimerStack::TT_doNopInsertion, this); | 1114 TimerMarker T(TimerStack::TT_doNopInsertion, this); |
1115 RandomNumberGenerator RNG(getFlags().getRandomSeed(), RPE_NopInsertion, | 1115 RandomNumberGenerator RNG(getFlags().getRandomSeed(), RPE_NopInsertion, |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1478 } | 1478 } |
1479 } | 1479 } |
1480 // Print each basic block | 1480 // Print each basic block |
1481 for (CfgNode *Node : Nodes) | 1481 for (CfgNode *Node : Nodes) |
1482 Node->dump(this); | 1482 Node->dump(this); |
1483 if (isVerbose(IceV_Instructions)) | 1483 if (isVerbose(IceV_Instructions)) |
1484 Str << "}\n"; | 1484 Str << "}\n"; |
1485 } | 1485 } |
1486 | 1486 |
1487 } // end of namespace Ice | 1487 } // end of namespace Ice |
OLD | NEW |