ROSE
0.9.6a
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
ROSE
ROSE Web Reference
Available ROSE Documentation
Member Function getParent() Documentation
Default Constructor Destructor Documentation Page
Rose Attribute Mechanism Page
ROSE AST Copy Mechanism
AST Construction Documentation Experiment
Doxygen Bugs
ROSE Fortran Support
Instructions On How To Document ROSE
ROSE Project ToDo List
ROSE Project Publications
Related Work
ROSE Project Download Page
Shared vs. Nonshared IR Nodes within Sage III
ROSE Project Talks
Description of AST Diagnostics within ROSE
Test List
Todo List
Deprecated List
Bug List
Modules
Namespaces
Classes
Files
File List
3rdPartyLibraries.docs
abiStuff.h
action.h
actionchanger.h
adaptor_statistics.h
advanced_preprocessing_hooks.h
affineInequality.h
analysis.h
analysisCommon.h
AnalysisDebuggingUtils.h
analyze.h
ann.h
annotations.h
annvariable.h
arrIndexLabeler.h
Assembler.h
AssemblerX86.h
AssemblerX86Init.h
Ast.h
AST_FILE_IO.docs
AST_FILE_IO.h
AstAttributeMechanism.h
AstClearVisitFlags.h
AstCombinedProcessing.h
AstCombinedProcessingImpl.h
AstCombinedSimpleProcessing.h
AstCopyMechanism.docs
AstDiagnostics.docs
AstDOTGeneration.h
AstFromString.h
AstNodePtrs.h
AstNodeVisitMapping.h
AstPDFGeneration.h
AstProcessing.docs
AstProcessing.h
AstQueryMemoryPool.h
AstRestructure.h
AstReverseProcessing.h
AstReverseSimpleProcessing.h
AstSharedMemoryParallelProcessing.h
AstSharedMemoryParallelProcessingImpl.h
AstSharedMemoryParallelSimpleProcessing.h
AstSimpleProcessing.docs
AstSimpleProcessing.h
AstSuccessorsSelectors.h
AstTextAttributesHandling.h
AstTraversal.h
AstTraverseToRoot.h
attach_all_info.h
attachPreprocessingInfo.h
attachPreprocessingInfoTraversal.h
attributeListMap.h
AvailableDocumentation.docs
backend.docs
baseCFGIterator.h
BasicBlockLocalIndex.h
bdwy_liveness.h
binaryInstruction.C
BinaryLoader.h
BinaryLoaderElf.h
BinaryLoaderElfObj.h
BinaryLoaderPe.h
boostGraphCFG.h
BottomUpTraversalLiveness.h
broadway.h
broadway_expr.h
ByteOrder.h
C++_include_files.h
callbacks.h
Callgraph.h
CallGraph.h
CallGraphAnalysis.h
CallGraphTraverse.h
callingcontext.h
cfgNodeFilter.h
CFGRewrite.h
cfgToDot.h
cfgUtils.h
checkIsModifiedFlag.C
CheckWhichAreMarked.h
Classhierarchy.h
ClassHierarchyGraph.h
Combinatorics.h
commandline_processing.h
commandlineProcessingDocumentation.docs
cong_staticCFG.h
constantprop.h
ConstrGraph.h
ConstrGraphAnalysis.h
controlDependence.h
dominatorTreesAndDominanceFrontiers/ControlFlowGraph.h
staticInterproceduralSlicing/ControlFlowGraph.h
coverage_funcsC.h
cpattern.h
CreateSlice.h
CreateSliceSet.h
customFilteredCFG.h
Cxx_Grammar.h
Cxx_GrammarMemoryPoolSupport.h
Cxx_GrammarTreeTraversalAccessEnums.h
DataConversion.C
DataConversion.h
dataflow.h
DataFlowAnalysis.h
DataflowCFG.h
dataflowCfgFilter.h
DebugTool.h
defsAndUsesTraversal.h
defsAndUsesUnfilteredCfg.h
DefUseAnalysis.h
DefUseAnalysis_perFunction.h
DefUseAnalysisAbstract.h
DefUseChain.h
defUseChains.h
DefUseExtension.h
DependenceGraph.h
DFAFilter.h
DFAnalysis.h
dfaToDot.h
diagnostic.h
Disassembler.C
Disassembler.h
DisassemblerArm.C
DisassemblerArm.h
DisassemblerMips.h
DisassemblerPowerpc.h
DisassemblerX86.C
DisassemblerX86.h
DistributedMemoryAnalysis.h
DistributedMemoryAnalysisImplementation.h
divAnalysis.h
doc_example1.docs
midend/programTransformation/documentation.docs
backend/unparser/languageIndependenceSupport/documentation.docs
backend/unparser/CxxCodeGeneration/documentation.docs
backend/unparser/FortranCodeGeneration/documentation.docs
dominatorTreesAndDominanceFrontiers/DominanceFrontier.h
dominanceAnalysis/DominanceFrontier.h
dominatorAnalysis.h
dominatorTreesAndDominanceFrontiers/DominatorTree.h
dominanceAnalysis/DominatorTree.h
DominatorTreeImpl.h
doxygenBugs.docs
dwarfSupport.h
EDefUse.h
ElfDynamicLinking.C
ElfErrorFrame.C
ElfFileHeader.C
ElfNote.C
ElfRelocation.C
ElfSection.C
ElfSectionTable.C
ElfSegmentTable.C
ElfStringTable.C
ElfSymbolTable.C
ElfSymbolVersion.C
enum_property.h
escape.h
ExecDOS.C
ExecGeneric.C
ExecLE.C
ExecNE.C
Expressions.C
ExtentMap.C
extra.docs
ExtractFunctionArguments.h
ExtraRelatedPages.docs
fake_EDG.h
fileoffsetbits.h
frontend/SageIII/virtualCFG/filteredCFG.h
midend/programAnalysis/dominanceAnalysis/filteredCFG.h
filteredCFGImpl.h
FindStatements.h
fixupCopy.h
FormatRestorer.h
FortranSupport.docs
frontend.docs
functionEvaluationOrderTraversal.h
functionLevelTraversal.h
functionNames.h
functionState.h
general_token_defs.h
genericDataflowCommon.h
GenericDynamicLinking.C
GenericFile.C
GenericFormat.C
GenericHeader.C
GenericSection.C
GenericString.C
genUID.h
GlobalIndexing.h
GlobalVarAnalysis.h
grammarBaseClass.h
graphProcessing.h
graphProcessingSgIncGraph.h
graphTemplate.h
Hexdump.C
HowToDocumentROSE.docs
IncludeDirective.h
inputCode_collectComments.h
InsertPragma.h
InstructionEnumsMips.h
InstructionEnumsX86.h
intArithLogical.h
integerOps.h
IntelPinSupport.C
IntelPinSupport.h
InterProcDataFlowAnalysis.h
interproceduralCFG.h
InterproceduralInfo.h
IntraProcAliasAnalysis.h
IntraProcDataFlowAnalysis.h
iteratedDominanceFrontier.h
JeremiahContribution.h
KeepAttribute.h
lattice.h
latticeFull.h
libgomp_g.h
libompc.h
libxomp.h
libxompf.h
LinearCongruentialGenerator.h
liveDeadVarAnalysis.h
LivenessAnalysis.h
localstl.h
LogicalCond.h
manglingSupport.h
MarkingNodes.h
MemoryMap.C
MemoryMap.h
midend.docs
MSTL.docs
NEW_CreateSliceSet.h
NEW_DependenceGraph.h
NEW_EDefUse.h
newCDG.h
newDDG.h
nodeConstAnalysis.h
nodeState.h
omp.h
omp_lib.h
omp_lib_kinds.h
omp_lowering.h
ompAstConstruction.h
OmpAttribute.h
ompparser.h
ompparser.hh
optionDeclaration.h
partitionedAnalysis.h
Partitioner.C
Partitioner.h
PDG.h
PeExport.C
PeFileHeader.C
PeImportDirectory.C
PeImportItem.C
PeImportSection.C
PeRvaSizePair.C
PeSection.C
PeSectionTable.C
PeStringTable.C
PeSymbolTable.C
placeUIDs.h
pointerrule.h
printAnalysisStates.h
procedure.h
programVerification.h
projects.docs
ProjectToDoList.docs
property.h
PtrAliasAnalysis.h
PtrAnal.h
Publications.docs
QueryLib.docs
rangemap.h
reachingDef.h
ReachingDefinition.h
bitvectorDataflow/ReachingDefinitionFacade.h
dataflowAnalysis/ReachingDefinitionFacade.h
reachingDefUnfilteredCfg.h
Registers.C
Registers.h
RelatedWork.docs
RemovalOfNodes.h
report.h
rose.docs
rose_attributes_list.h
ROSE_DownloadPage.docs
RoseBin_DotGraph.h
RoseBin_GmlGraph.h
RoseBin_Graph.h
rosedefs.h
rosedll.h
RoseSrc_CallGraphAnalysis.h
roseTranslators.h
rtiHelpers.h
rule.h
Rva.C
rwAccessLabeler.h
sage.docs
sage3.h
sage3basic.h
sageBuilder.h
sageBuilderAsm.h
sageFunctors.h
sageGeneric.h
sageInterface.h
sageInterfaceAsm.h
saveDotAnalysis.h
SB_Graph.h
SDG.h
SDGLibraryExtender.h
sequenceStructAnalysis.h
set_property.h
SgAggregateInitializer.docs
SgAsmArmInstruction.C
SgAsmBlock.C
SgAsmFunction.C
SgAsmGenericSection.docs
SgAsmInstruction.C
SgAsmInterpretation.C
SgAsmMipsInstruction.C
SgAsmPowerpcInstruction.C
SgAsmStmt.docs
SgAsmX86Instruction.C
SgAssignInitializer.docs
SgBasicBlock.docs
SgBinaryNode.docs
SgBinaryOp.docs
SgBoolValExp.docs
SgBreakStatement.docs
SgCallExpression.docs
SgCaseOptionStmt.docs
SgCatchOptionStmt.docs
SgCatchStatementSeq.docs
SgClassDeclaration.docs
SgClassDefinition.docs
SgClassNameRefExp.docs
SgClassSymbol.docs
SgClinkageStartStatement.docs
SgConditionalExp.docs
SgConstructorInitializer.docs
SgContinueStmt.docs
SgCtorInitializerList.docs
SgDeclarationModifier.docs
SgDeclarationStatement.docs
SgDefaultOptionStmt.docs
SgDeleteExp.docs
SgDirectory.docs
SgDoubleVal.docs
SgDoWhileStmt.docs
SgEnumDeclaration.docs
SgExecStatement.docs
SgExpression.docs
SgExprListExp.docs
SgExprStatement.docs
SgFile.docs
SgFileInfo.docs
SgFloatVal.docs
SgForInitStatement.docs
SgForStatement.docs
SgFunctionCallExp.docs
SgFunctionDeclaration.docs
SgFunctionDefinition.docs
SgFunctionParameterList.docs
SgFunctionRefExp.docs
SgFunctionType.docs
SgFunctionTypeTable.docs
SgGlobal.docs
SgGotoStatement.docs
SgGraphTemplate.h
SgIfStmt.docs
SgInitializedName.docs
SgInitializer.docs
SgIsNotOp.docs
SgIsOp.docs
SgLabelStatement.docs
SgLambdaRefExp.docs
SgListExp.docs
SgLocatedNode.docs
SgLongDoubleVal.docs
SgMemberFunctionDeclaration.docs
SgMemberFunctionRefExp.docs
SgMinusOp.docs
SgModifier.docs
SgModifierNodes.docs
SgName.docs
SgNamespaceAliasDeclarationStatement.docs
SgNamespaceDeclarationStatement.docs
SgNamespaceDefinitionStatement.docs
SgNamespaceSymbol.docs
sgnAnalysis.h
SgNaryBooleanOp.docs
SgNaryComparisonOp.docs
SgNaryOp.docs
SgNewExp.docs
SgNode.docs
SgOptions.docs
SgPointerAssignOp.docs
SgPragmaDeclaration.docs
SgProject.docs
SgPythonGlobalStmt.docs
SgQualifiedName.docs
SgRefExp.docs
SgReturnStmt.docs
SgScopeOp.docs
SgScopeStatement.docs
SgSizeOfOp.docs
SgSpawnStmt.docs
SgStatement.docs
SgStatementExpression.docs
SgStmtDeclarationStmt.docs
SgStorageModifier.docs
SgStringConversion.docs
SgSupport.docs
SgSwitchStatement.docs
SgSymbol.docs
SgSymbolTable.docs
SgTemplateArgument.docs
SgTemplateDeclaration.docs
SgTemplateInstantiationDecl.docs
SgTemplateInstantiationDefn.docs
SgTemplateInstantiationDirectiveStatement.docs
SgTemplateInstantiationFunctionDecl.docs
SgTemplateInstantiationMemberFunctionDecl.docs
SgThisExp.docs
SgThrowOp.docs
SgTryStmt.docs
SgTupleExp.docs
SgType.docs
SgTypeComplex.docs
SgTypeDefault.docs
SgTypedefDeclaration.docs
SgTypedefSeq.docs
SgTypeImaginary.docs
SgTypeString.docs
SgUnaryOp.docs
SgUsingDeclarationStatement.docs
SgUsingDirectiveStatement.docs
SgValueExp.docs
SgVariableDeclaration.docs
SgVariableDefinition.docs
SgVariableSymbol.docs
SgVarRefExp.docs
SgWhileStmt.docs
SharedNodes.docs
sideEffect.h
dominatorTreesAndDominanceFrontiers/SimpleDirectedGraph.h
staticInterproceduralSlicing/SimpleDirectedGraph.h
sla.h
Slicing.h
SlicingCriterion.h
SlicingInfo.h
sourceLocationInheritedAttribute.h
SqlDatabase.h
SqliteDatabaseGraph.h
ssaUnfilteredCfg.h
StackFrameVector.h
staticCFG.h
staticSingleAssignment.h
steensgaard.h
SteensgaardPtrAnal.h
string_functions.h
stringify.C
stringSupportDocumentation.docs
StringUtility.h
structure.h
support.h
taintAnalysis.h
Talks.docs
templateSupport.h
threadSupport.h
transformationSupport.h
unification_ann.h
uniqueNameTraversal.h
unparser.docs
Utf8.h
util.h
utilDocumentation.docs
utility_functions.h
ValueAnnot.h
ValuePropagate.h
VariableRenaming.h
variables.h
VariableStateTransfer.h
varSets.h
virtualBinCFG.C
virtualBinCFG.h
virtualCFG.h
VirtualCFGIterator.h
VirtualFunctionAnalysis.h
WorkLists.h
yicesParserLib.h
File Members
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
AstSharedMemoryParallelSimpleProcessing.h
Go to the documentation of this file.
1
// Author: Gergo Barany
2
// $Id: AstSharedMemoryParallelSimpleProcessing.h,v 1.1 2008/01/08 02:56:39 dquinlan Exp $
3
4
// Class for parallelizing AstSimpleProcessing traversals; see the comment in
5
// AstSharedMemoryParallelProcessing.h for general information.
6
7
#ifndef ASTSHAREDMEMORYPARALLELSIMPLEPROCESSING_H
8
#define ASTSHAREDMEMORYPARALLELSIMPLEPROCESSING_H
9
10
#include "
AstSimpleProcessing.h
"
11
#include "
AstSharedMemoryParallelProcessing.h
"
12
13
// parallel SIMPLE processing class
14
15
// Class representing a traversal that can run in parallel with some other instances of the same type. It is basically a
16
// combined processing class with a thin synchronization layer. The user will probably never need to instantiate this
17
// class, they should use the AstSharedMemoryParallel*Processing classes instead.
18
class
AstSharedMemoryParallelizableSimpleProcessing
19
:
public
AstCombinedSimpleProcessing
,
20
private
AstSharedMemoryParallelProcessingSynchronizationBase
21
{
22
public
:
23
typedef
AstCombinedSimpleProcessing
Superclass
;
24
typedef
Superclass::TraversalType
TraversalType
;
25
typedef
Superclass::TraversalPtr
TraversalPtr
;
26
typedef
Superclass::TraversalPtrList
TraversalPtrList
;
27
28
AstSharedMemoryParallelizableSimpleProcessing
(
29
const
AstSharedMemoryParallelProcessingSynchronizationInfo
&,
30
const
TraversalPtrList
&);
31
32
void
set_runningParallelTraversal
(
bool
val);
33
34
protected
:
35
virtual
void
visit
(
SgNode
*astNode);
36
virtual
void
atTraversalEnd
();
37
38
private
:
39
size_t
visitedNodes
;
40
bool
runningParallelTraversal
;
41
size_t
synchronizationWindowSize
;
42
};
43
44
// Class for parallel execution of a number of traversals. This is a drop-in
45
// replacement for the corresponding AstCombined*Processing class, the usage
46
// is identical except that you call traverseInParallel() instead of
47
// traverse(). (Calling traverse() is identical to AstCombined*Processing,
48
// i.e. it will not run in parallel.)
49
class
ROSE_DLL_API
AstSharedMemoryParallelSimpleProcessing
50
:
public
AstCombinedSimpleProcessing
51
{
52
public
:
53
typedef
AstCombinedSimpleProcessing
Superclass
;
54
typedef
Superclass::TraversalPtr
TraversalPtr
;
55
typedef
Superclass::TraversalPtrList
TraversalPtrList
;
56
57
typedef
AstSharedMemoryParallelizableSimpleProcessing
*
ParallelizableTraversalPtr
;
58
typedef
std::vector<ParallelizableTraversalPtr>
ParallelizableTraversalPtrList
;
59
60
AstSharedMemoryParallelSimpleProcessing
(
int
threads);
61
AstSharedMemoryParallelSimpleProcessing
(
const
TraversalPtrList
&,
int
threads);
62
63
void
traverseInParallel(
SgNode
*basenode,
t_traverseOrder
treeTraverseOrder);
64
65
private
:
66
size_t
numberOfThreads
;
67
size_t
synchronizationWindowSize
;
68
};
69
70
// parallel PRE POST processing class
71
72
// Class representing a traversal that can run in parallel with some other instances of the same type. It is basically a
73
// combined processing class with a thin synchronization layer. The user will probably never need to instantiate this
74
// class, they should use the AstSharedMemoryParallel*Processing classes instead.
75
class
AstSharedMemoryParallelizablePrePostProcessing
76
:
public
AstCombinedPrePostProcessing
,
77
private
AstSharedMemoryParallelProcessingSynchronizationBase
78
{
79
public
:
80
typedef
AstCombinedPrePostProcessing
Superclass
;
81
typedef
Superclass::TraversalType
TraversalType
;
82
typedef
Superclass::TraversalPtr
TraversalPtr
;
83
typedef
Superclass::TraversalPtrList
TraversalPtrList
;
84
85
AstSharedMemoryParallelizablePrePostProcessing
(
86
const
AstSharedMemoryParallelProcessingSynchronizationInfo
&,
87
const
TraversalPtrList
&);
88
89
void
set_runningParallelTraversal
(
bool
val);
90
91
protected
:
92
virtual
void
preOrderVisit
(
SgNode
*astNode);
93
virtual
void
atTraversalEnd
();
94
95
private
:
96
size_t
visitedNodes
;
97
bool
runningParallelTraversal
;
98
size_t
synchronizationWindowSize
;
99
};
100
101
// Class for parallel execution of a number of traversals. This is a drop-in
102
// replacement for the corresponding AstCombined*Processing class, the usage
103
// is identical except that you call traverseInParallel() instead of
104
// traverse(). (Calling traverse() is identical to AstCombined*Processing,
105
// i.e. it will not run in parallel.)
106
class
AstSharedMemoryParallelPrePostProcessing
107
:
public
AstCombinedPrePostProcessing
108
{
109
public
:
110
typedef
AstCombinedPrePostProcessing
Superclass
;
111
typedef
Superclass::TraversalPtr
TraversalPtr
;
112
typedef
Superclass::TraversalPtrList
TraversalPtrList
;
113
114
typedef
AstSharedMemoryParallelizablePrePostProcessing
*
ParallelizableTraversalPtr
;
115
typedef
std::vector<ParallelizableTraversalPtr>
ParallelizableTraversalPtrList
;
116
117
AstSharedMemoryParallelPrePostProcessing
(
int
threads);
118
AstSharedMemoryParallelPrePostProcessing
(
const
TraversalPtrList
&,
int
threads);
119
120
void
traverseInParallel
(
SgNode
*basenode);
121
122
private
:
123
size_t
numberOfThreads
;
124
size_t
synchronizationWindowSize
;
125
};
126
127
#endif
rose-edg4x
src
midend
astProcessing
AstSharedMemoryParallelSimpleProcessing.h
Generated on Mon May 5 2014 17:28:51 for ROSE by
1.8.4