@@ -278,8 +278,8 @@ class G4_BB
278
278
// indicate the nest level of the loop
279
279
unsigned char loopNestLevel;
280
280
281
- // indicates the scoping info in call graph
282
- unsigned scopeID;
281
+ // indicates the scoping info in call graph
282
+ unsigned scopeID;
283
283
284
284
// if the block is under simd flow control
285
285
bool inSimdFlow;
@@ -310,20 +310,20 @@ class G4_BB
310
310
INST_LIST::reverse_iterator rbegin () { return instList.rbegin (); }
311
311
INST_LIST::reverse_iterator rend () { return instList.rend (); }
312
312
INST_LIST& getInstList () { return instList; }
313
- INST_LIST_ITER insert (INST_LIST::const_iterator iter, G4_INST* inst)
313
+ INST_LIST_ITER insert (INST_LIST::iterator iter, G4_INST* inst)
314
314
{
315
315
return instList.insert (iter, inst);
316
316
}
317
317
template <class InputIt >
318
- INST_LIST_ITER insert (INST_LIST::const_iterator iter, InputIt first, InputIt last)
318
+ INST_LIST_ITER insert (INST_LIST::iterator iter, InputIt first, InputIt last)
319
319
{
320
320
return instList.insert (iter, first, last);
321
321
}
322
- INST_LIST_ITER erase (INST_LIST::const_iterator iter)
322
+ INST_LIST_ITER erase (INST_LIST::iterator iter)
323
323
{
324
324
return instList.erase (iter);
325
325
}
326
- INST_LIST_ITER erase (INST_LIST::const_iterator first, INST_LIST::const_iterator last)
326
+ INST_LIST_ITER erase (INST_LIST::iterator first, INST_LIST::iterator last)
327
327
{
328
328
return instList.erase (first, last);
329
329
}
@@ -337,29 +337,29 @@ class G4_BB
337
337
bool empty () const { return instList.empty (); }
338
338
G4_INST* front () { return instList.front (); }
339
339
G4_INST* back () { return instList.back (); }
340
- void splice (INST_LIST::const_iterator pos, INST_LIST& other)
340
+ void splice (INST_LIST::iterator pos, INST_LIST& other)
341
341
{
342
342
instList.splice (pos, other);
343
343
}
344
- void splice (INST_LIST::const_iterator pos, G4_BB* otherBB)
344
+ void splice (INST_LIST::iterator pos, G4_BB* otherBB)
345
345
{
346
346
instList.splice (pos, otherBB->getInstList ());
347
347
}
348
- void splice (INST_LIST::const_iterator pos, INST_LIST& other, INST_LIST::const_iterator it)
348
+ void splice (INST_LIST::iterator pos, INST_LIST& other, INST_LIST::iterator it)
349
349
{
350
350
instList.splice (pos, other, it);
351
351
}
352
- void splice (INST_LIST::const_iterator pos, G4_BB* otherBB, INST_LIST::const_iterator it)
352
+ void splice (INST_LIST::iterator pos, G4_BB* otherBB, INST_LIST::iterator it)
353
353
{
354
354
instList.splice (pos, otherBB->getInstList (), it);
355
355
}
356
- void splice (INST_LIST::const_iterator pos, INST_LIST& other,
357
- INST_LIST::const_iterator first, INST_LIST::const_iterator last)
356
+ void splice (INST_LIST::iterator pos, INST_LIST& other,
357
+ INST_LIST::iterator first, INST_LIST::iterator last)
358
358
{
359
359
instList.splice (pos, other, first, last);
360
360
}
361
- void splice (INST_LIST::const_iterator pos, G4_BB* otherBB,
362
- INST_LIST::const_iterator first, INST_LIST::const_iterator last)
361
+ void splice (INST_LIST::iterator pos, G4_BB* otherBB,
362
+ INST_LIST::iterator first, INST_LIST::iterator last)
363
363
{
364
364
instList.splice (pos, otherBB->getInstList (), first, last);
365
365
}
@@ -435,8 +435,8 @@ class G4_BB
435
435
void resetNestLevel () { loopNestLevel = 0 ; }
436
436
void setInSimdFlow (bool val) {inSimdFlow = val;}
437
437
bool isInSimdFlow () {return inSimdFlow;}
438
- unsigned getScopeID () { return scopeID; }
439
- void setScopeID (unsigned id) { scopeID = id; }
438
+ unsigned getScopeID () { return scopeID; }
439
+ void setScopeID (unsigned id) { scopeID = id; }
440
440
441
441
G4_BB* getPhysicalPred () const { return physicalPred; }
442
442
G4_BB* getPhysicalSucc () const { return physicalSucc; }
@@ -489,7 +489,7 @@ class G4_BB
489
489
return firstInst;
490
490
}
491
491
492
- void addEOTSend (G4_INST* lastInst = NULL );
492
+ void addEOTSend (G4_INST* lastInst = NULL );
493
493
494
494
// / Dump instructions into the standard error.
495
495
void dump (bool printCFG) const ;
@@ -706,10 +706,10 @@ class FlowGraph
706
706
707
707
std::vector<FuncInfo*> funcInfoTable; // the vector of function info nodes. entry function is not included.
708
708
709
- std::vector<FuncInfo*> sortedFuncTable; // subroutines in reverse topographical order (leaf at top)
709
+ std::vector<FuncInfo*> sortedFuncTable; // subroutines in reverse topographical order (leaf at top)
710
710
// kernelInfo is the last element with invalid func id
711
711
712
- FuncInfo* kernelInfo; // the call info for the kernel function
712
+ FuncInfo* kernelInfo; // the call info for the kernel function
713
713
714
714
IR_Builder *builder; // needed to create new instructions (mainly labels)
715
715
GlobalOpndHashTable globalOpndHT;
@@ -718,10 +718,10 @@ class FlowGraph
718
718
G4_Declare * stackPtrDcl;
719
719
G4_Declare * scratchRegDcl;
720
720
// ToDo: change to set if we have a lot of stack call sites
721
- std::vector<G4_Declare *> pseudoVCADclList;
721
+ std::vector<G4_Declare *> pseudoVCADclList;
722
722
G4_Declare * pseudoVCEDcl;
723
- std::vector<G4_Declare*> pseudoA0DclList;
724
- std::vector<G4_Declare*> pseudoFlagDclList;
723
+ std::vector<G4_Declare*> pseudoA0DclList;
724
+ std::vector<G4_Declare*> pseudoFlagDclList;
725
725
726
726
unsigned callerSaveAreaOffset;
727
727
unsigned calleeSaveAreaOffset;
@@ -1011,12 +1011,12 @@ class FlowGraph
1011
1011
1012
1012
void findNaturalLoops ();
1013
1013
1014
- void traverseFunc (FuncInfo* func, unsigned int *ptr);
1015
- void topologicalSortCallGraph ();
1016
- void findDominators (std::map<FuncInfo*, std::set<FuncInfo*>>& domMap);
1017
- unsigned int resolveVarScope (G4_Declare* dcl, FuncInfo* func);
1018
- void markVarScope (std::vector<G4_BB*>& BBList, FuncInfo* func);
1019
- void markScope ();
1014
+ void traverseFunc (FuncInfo* func, unsigned int *ptr);
1015
+ void topologicalSortCallGraph ();
1016
+ void findDominators (std::map<FuncInfo*, std::set<FuncInfo*>>& domMap);
1017
+ unsigned int resolveVarScope (G4_Declare* dcl, FuncInfo* func);
1018
+ void markVarScope (std::vector<G4_BB*>& BBList, FuncInfo* func);
1019
+ void markScope ();
1020
1020
1021
1021
void addSIMDEdges ();
1022
1022
@@ -1080,28 +1080,28 @@ class FlowGraph
1080
1080
};
1081
1081
1082
1082
}
1083
- #define RA_TYPE (DO ) \
1084
- DO (TRIVIAL_BC_RA) \
1085
- DO(TRIVIAL_RA) \
1086
- DO(LOCAL_ROUND_ROBIN_BC_RA) \
1087
- DO(LOCAL_ROUND_ROBIN_RA) \
1088
- DO(LOCAL_FIRST_FIT_BC_RA) \
1089
- DO(LOCAL_FIRST_FIT_RA) \
1090
- DO(HYBRID_BC_RA) \
1091
- DO(HYBRID_RA) \
1092
- DO(GRAPH_COLORING_RR_BC_RA) \
1093
- DO(GRAPH_COLORING_FF_BC_RA) \
1094
- DO(GRAPH_COLORING_RR_RA) \
1095
- DO(GRAPH_COLORING_FF_RA) \
1096
- DO(GRAPH_COLORING_SPILL_RR_BC_RA) \
1097
- DO(GRAPH_COLORING_SPILL_FF_BC_RA) \
1098
- DO(GRAPH_COLORING_SPILL_RR_RA) \
1099
- DO(GRAPH_COLORING_SPILL_FF_RA) \
1100
- DO(UNKNOWN_RA)
1083
+ #define RA_TYPE (DO ) \
1084
+ DO (TRIVIAL_BC_RA) \
1085
+ DO(TRIVIAL_RA) \
1086
+ DO(LOCAL_ROUND_ROBIN_BC_RA) \
1087
+ DO(LOCAL_ROUND_ROBIN_RA) \
1088
+ DO(LOCAL_FIRST_FIT_BC_RA) \
1089
+ DO(LOCAL_FIRST_FIT_RA) \
1090
+ DO(HYBRID_BC_RA) \
1091
+ DO(HYBRID_RA) \
1092
+ DO(GRAPH_COLORING_RR_BC_RA) \
1093
+ DO(GRAPH_COLORING_FF_BC_RA) \
1094
+ DO(GRAPH_COLORING_RR_RA) \
1095
+ DO(GRAPH_COLORING_FF_RA) \
1096
+ DO(GRAPH_COLORING_SPILL_RR_BC_RA) \
1097
+ DO(GRAPH_COLORING_SPILL_FF_BC_RA) \
1098
+ DO(GRAPH_COLORING_SPILL_RR_RA) \
1099
+ DO(GRAPH_COLORING_SPILL_FF_RA) \
1100
+ DO(UNKNOWN_RA)
1101
1101
1102
1102
enum RA_Type
1103
1103
{
1104
- RA_TYPE (MAKE_ENUM)
1104
+ RA_TYPE (MAKE_ENUM)
1105
1105
};
1106
1106
1107
1107
namespace vISA
@@ -1253,7 +1253,7 @@ class G4_Kernel
1253
1253
bool hasAddrTaken;
1254
1254
Options *m_options;
1255
1255
1256
- RA_Type RAType;
1256
+ RA_Type RAType;
1257
1257
KernelDebugInfo* kernelDbgInfo;
1258
1258
void dumpDotFileInternal (const char * appendix);
1259
1259
void dumpPassInternal (const char *appendix);
@@ -1421,16 +1421,15 @@ class G4_Kernel
1421
1421
// / Dump this kernel into the standard error.
1422
1422
void dump () const ;
1423
1423
1424
- void setRAType (RA_Type type) { RAType = type; }
1425
- RA_Type getRAType () { return RAType; }
1424
+ void setRAType (RA_Type type) { RAType = type; }
1425
+ RA_Type getRAType () { return RAType; }
1426
1426
1427
1427
void setKernelDebugInfo (KernelDebugInfo* k) { kernelDbgInfo = k; }
1428
1428
KernelDebugInfo* getKernelDebugInfo ();
1429
1429
1430
1430
bool hasGTPinInit ()
1431
1431
{
1432
- return gtPinInfo &&
1433
- gtPinInfo->getGTPinInit ();
1432
+ return gtPinInfo && gtPinInfo->getGTPinInit ();
1434
1433
}
1435
1434
1436
1435
gtPinData* getGTPinData ()
0 commit comments