00001 00002 #include <vector> 00003 00004 /* 00005 Additional code to extract from some of Jeremiah's work: 00006 From src/midend/astInlining/inlinerSupport.h: 00007 isPotentiallyModified 00008 hasAddressTaken 00009 flattenBlocks 00010 isMemberVariable 00011 renameVariables 00012 rebindVariableAndLabelReferences 00013 fixReturnStatements (maybe) 00014 changeAllMembersToPublic 00015 myRemoveStatement (probably rename) 00016 removeVariableDeclaration 00017 From src/midend/astInlining/inlinerSupport.C 00018 containsVariableReference 00019 isDeclarationOf 00020 isPotentiallyModifiedDuringLifeOf 00021 From src/midend/astInlining/replaceExpressionWithStatement.h: 00022 getRootOfExpression 00023 changeContinuesToGotos 00024 pushTestIntoBody 00025 addStepToLoopBody 00026 myStatementInsert (should be renamed or merged into another function) 00027 convertInitializerIntoAssignment 00028 getStatementOfExpression 00029 replaceExpressionWithExpression (maybe) 00030 From src/midend/astInlining/replaceExpressionWithStatement.C: 00031 getInitializerOfExpression 00032 addAllVariablesAsSymbols 00033 Everything from src/midend/programTransformation/partialRedundancyElimination/expressionTreeEqual.h 00034 From src/midend/programTransformation/partialRedundancyElimination/pre.h: 00035 anyOfListPotentiallyModifiedIn 00036 getSymbolsUsedInExpression 00037 PRE::getFunctionDefinition (there is a function doing the same thing in the CFG view code, and they should be merged) 00038 From src/midend/programTransformation/finiteDifferencing/patternRewrite.h: 00039 replaceChild 00040 From src/midend/programTransformation/finiteDifferencing/finiteDifferencing.h: 00041 moveForDeclaredVariables 00042 From constantPropagation.C (written when I was here last time, attached to this email): 00043 enum dead_code_kind 00044 DeadCodeFindingVisitor 00045 A function "void removeDeadCode(SgStatement* scope)" containing the relevant code from main in that file (i.e., lines 394 to 420), with "vis.funs[funnum]" replaced by "scope" 00046 00047 -- Jeremiah Willcock 00048 00049 */
1.4.7