Synopsis Base Classes Member Functions Static Member Functions Private Member Functions Private Data Members
FunctionEvaluationOrderTraversal Traverses a given AST and finds all function calls in the order in which they're evaluated Also, for each function we find where to put declarations of temporary variables so that they're accessible at the function call
Synopsis Declared in <src/midend/programTransformation/extractFunctionArgumentsNormalization/functionEvaluationOrderTraversal.h >
class FunctionEvaluationOrderTraversal
: public AstTopDownBottomUpProcessing <FunctionCallInheritedAttribute , bool> Base Classes Member Functions Name Description IsFunctionCallSideEffectFreevirtual bool IsFunctionCallSideEffectFree(SgFunctionCallExp* functionCall); [virtual] Returns true if the function call has no side effects. evaluateInheritedAttributevirtual FunctionCallInheritedAttribute evaluateInheritedAttribute( SgNode* astNode, FunctionCallInheritedAttribute parentAttribute); [virtual] Visits AST nodes in pre-order evaluateSynthesizedAttributevirtual bool evaluateSynthesizedAttribute( SgNode* astNode, FunctionCallInheritedAttribute parentAttribute, SynthesizedAttributesList); [virtual] Visits AST nodes in post-order. This is function-evaluation order.
Static Member Functions Name Description GetFunctionCallsstatic std::pair<std::vector<FunctionCallInfo>, std::vector<FunctionCallInfo>> GetFunctionCalls(SgNode* root); Traverses the subtree of the given AST node and finds all function calls in function-evaluation order.
Private Member Functions Name Description FunctionEvaluationOrderTraversalFunctionEvaluationOrderTraversal(); [constructor] Private constructor. Use the static method to access the functionality of this class.
Private Data Members Created with MrDocs