All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
function_annotation_attributes.h
Go to the documentation of this file.
1 #ifndef FUNCTION_ANNOTATION_ATTRIBUTES_H_INCLUDED_
2 #define FUNCTION_ANNOTATION_ATTRIBUTES_H_INCLUDED_
3 
4 #include "rose.h"
5 
6 #include "function_annotation.h"
7 
8 namespace risc {
9 
10 namespace sg {
11 
17 class FunctionAnnotationAttributes: public AstAttribute {
18 
19 public:
20 
22 
24 
25  // for the new rose release
26  virtual AstAttribute::OwnershipPolicy getOwnershipPolicy() const ROSE_OVERRIDE
27  {
28  return CONTAINER_OWNERSHIP;
29  }
30 
31 
33  std::string function_name,
34  bool is_conflict_free,
35  WAIT_CONSTRUCT wait_type,
36  AnnotatedTime *annotated_time);
37 
42  bool has_boundary();
43 
47  std::string function_name_;
48 
53 
59 
64 
65  bool operator==(const FunctionAnnotationAttributes &other);
66 
67  bool operator!=(const FunctionAnnotationAttributes &other);
68 };
69 
70 } // end of namespace sg
71 
72 } // end of namespace risc
73 
74 #endif /* FUNCTION_ANNOTATION_ATTRIBUTES_H_INCLUDED_ */
75 
76 /* ex: set softtabstop=2 tabstop=2 shiftwidth=2 expandtab: */
Definition: function_annotation.h:53
AnnotatedTime * annotated_time_
Represents the wait time.
Definition: function_annotation_attributes.h:63
WAIT_CONSTRUCT
Definition: function_annotation.h:7
bool is_conflict_free_
Function does not have any conflict with other segments.
Definition: function_annotation_attributes.h:52
FunctionAnnotationAttributes(FunctionAnnotationAttributes *func_attributes)
Definition: function_annotation_attributes.cpp:3
Definition: function_annotation.h:15
std::string function_name_
Assigned duing annotation analysis.
Definition: function_annotation_attributes.h:47
WAIT_CONSTRUCT wait_type_
wait_type_ Wait type of this function
Definition: function_annotation_attributes.h:58
This class provides attributes for function anotations.
Definition: function_annotation_attributes.h:17
virtual AstAttribute::OwnershipPolicy getOwnershipPolicy() const ROSE_OVERRIDE
Definition: function_annotation_attributes.h:26
bool operator==(const FunctionAnnotationAttributes &other)
Definition: function_annotation_attributes.cpp:42
bool has_boundary()
Shows if this function contains a boundary (wait statements)
Definition: function_annotation_attributes.cpp:37
bool operator!=(const FunctionAnnotationAttributes &other)
Definition: function_annotation_attributes.cpp:50