All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
cached_function_ast_attributes.h
Go to the documentation of this file.
1 #ifndef CACHED_FUNCTION_AST_ATTRIBUTES_H_INCLUDED_
2 #define CACHED_FUNCTION_AST_ATTRIBUTES_H_INCLUDED_
3 
4 #include "rose.h"
5 
6 #include "segment_graph.h"
7 
8 namespace risc {
9 
10 namespace sg {
11 
18 class CachedFunctionAstAttributes: public AstAttribute {
19 
20 public:
21 
22  // for the new rose release
23  virtual AstAttribute::OwnershipPolicy getOwnershipPolicy() const ROSE_OVERRIDE
24  {
25  return CONTAINER_OWNERSHIP;
26  }
27 
29 
31  FunctionIntegration function_integration);
32 
39  bool has_boundary();
40 
47 
52 
57 
62 };
63 
64 } // end of namespace sg
65 
66 } // end of namespace risc
67 
68 #endif /* CACHED_FUNCTION_AST_ATTRIBUTES_H_INCLUDED_ */
69 
70 /* ex: set softtabstop=2 tabstop=2 shiftwidth=2 expandtab: */
Definition: cached_function_ast_attributes.h:28
boost::graph_traits< Graph >::vertex_descriptor VertexDescriptor
Definition: segment_graph.h:34
std::set< VertexDescriptor, SegmentCmp > SegmentSet
Definition: segment_graph.h:93
bool has_boundary()
This function checks if a potential function call faces any boundary statement. If the &#39;leaving_segme...
Definition: cached_function_ast_attributes.cpp:10
FunctionIntegration function_integration_
Not really using it.
Definition: cached_function_ast_attributes.h:51
FunctionIntegration
Definition: cached_function_ast_attributes.h:28
bool starting_segment_is_leaving_segment()
The function checks if the starting segment is a leaving segment at the same time.
Definition: cached_function_ast_attributes.cpp:18
virtual AstAttribute::OwnershipPolicy getOwnershipPolicy() const ROSE_OVERRIDE
Definition: cached_function_ast_attributes.h:23
SegmentGraph::SegmentSet leaving_segments_
The segments that are the end of a function&#39;s sg.
Definition: cached_function_ast_attributes.h:61
This class stores precached information of a analyzed function. Each function definition has an assoc...
Definition: cached_function_ast_attributes.h:18
CachedFunctionAstAttributes(VertexDescriptor starting_vertex, FunctionIntegration function_integration)
Definition: cached_function_ast_attributes.cpp:3
VertexDescriptor starting_vertex_
The starting vertex of a function&#39;s sg.
Definition: cached_function_ast_attributes.h:56
Definition: cached_function_ast_attributes.h:28