#include <anl_region_construct.h>

Public Member Functions | |
| ANL_REGION_CONSTRUCT (WN *region, INT32 construct_level, ANL_FUNC_ENTRY *func_entry, MEM_POOL *pool) | |
| WN * | Next_Stmt () |
| void | Write (ANL_CBUF *cbuf) |
Static Public Member Functions | |
| static BOOL | Is_ProMpf_Region_Construct (WN *stmt) |
| static BOOL | Is_Valid_Dir (ANL_PRAGMA_ATTRIBUTE *dir, INT32 construct_level) |
Private Types | |
| enum | ANL_REGION_KIND { ANL_UNKNOWN_REGION, ANL_PARALLEL_REGION, ANL_PSECTION_REGION, ANL_SINGLE_PROCESS_REGION, ANL_MASTER_PROCESS_REGION } |
Private Member Functions | |
| WN * | _First_Region_Stmt () |
| WN * | _Last_Region_Stmt () |
| void | _Region_Srcpos_Range (ANL_SRCPOS *min, ANL_SRCPOS *max) |
| void | _Region_Body_Srcpos_Range (ANL_SRCPOS *min, ANL_SRCPOS *max) |
| WN * | _userEndParallel () |
| void | _Write_Region_Directive (ANL_CBUF *cbuf) |
Private Attributes | |
| INT64 | _id |
| ANL_REGION_KIND | _region_kind |
| WN * | _region |
| INT32 | _construct_level |
| BOOL | _is_nowait |
| BOOL | _is_omp |
| ANL_FUNC_ENTRY * | _func_entry |
| MEM_POOL * | _pool |
Definition at line 59 of file anl_region_construct.h.
enum ANL_REGION_CONSTRUCT::ANL_REGION_KIND [private] |
| ANL_UNKNOWN_REGION | |
| ANL_PARALLEL_REGION | |
| ANL_PSECTION_REGION | |
| ANL_SINGLE_PROCESS_REGION | |
| ANL_MASTER_PROCESS_REGION |
Definition at line 63 of file anl_region_construct.h.
| ANL_REGION_CONSTRUCT::ANL_REGION_CONSTRUCT | ( | WN * | region, | |
| INT32 | construct_level, | |||
| ANL_FUNC_ENTRY * | func_entry, | |||
| MEM_POOL * | pool | |||
| ) |
Definition at line 333 of file anl_region_construct.cxx.
References _func_entry, _id, _is_nowait, _is_omp, _region_kind, ANL_MASTER_PROCESS_REGION, ANL_PARALLEL_REGION, ANL_PSECTION_REGION, ANL_SINGLE_PROCESS_REGION, ANL_UNKNOWN_REGION, FALSE, Is_ProMpf_Region_Construct(), ANL_FUNC_ENTRY::Next_Construct_Id(), COUNTER::Post_Incr(), ANL_FUNC_ENTRY::Set_Construct_Id(), WN_first(), WN_pragma(), WN_PRAGMA_MASTER_BEGIN, WN_pragma_omp, WN_PRAGMA_PARALLEL_BEGIN, WN_PRAGMA_PARALLEL_SECTIONS, WN_PRAGMA_PSECTION_BEGIN, WN_PRAGMA_SINGLE_PROCESS_BEGIN, and WN_region_pragmas.

| WN * ANL_REGION_CONSTRUCT::_First_Region_Stmt | ( | ) | [private] |
Definition at line 102 of file anl_region_construct.cxx.
References _region, NULL, and WN_prev().
Referenced by _Region_Srcpos_Range(), and Write().

| WN * ANL_REGION_CONSTRUCT::_Last_Region_Stmt | ( | ) | [private] |
Definition at line 114 of file anl_region_construct.cxx.
References _region, NULL, and WN_next().
Referenced by _Region_Srcpos_Range(), Next_Stmt(), and Write().

| void ANL_REGION_CONSTRUCT::_Region_Body_Srcpos_Range | ( | ANL_SRCPOS * | min, | |
| ANL_SRCPOS * | max | |||
| ) | [private] |
| void ANL_REGION_CONSTRUCT::_Region_Srcpos_Range | ( | ANL_SRCPOS * | min, | |
| ANL_SRCPOS * | max | |||
| ) | [private] |
Definition at line 126 of file anl_region_construct.cxx.
References _First_Region_Stmt(), _func_entry, _Last_Region_Stmt(), _region, Adjust_Srcpos_Range(), Is_True, W2CF_TRANSLATOR::Language_is_C(), NULL, ANL_FUNC_ENTRY::Pu_Translator(), WN_first(), WN_next(), WN_pragma(), WN_PRAGMA_END_MARKER, WN_PRAGMA_NOWAIT, WN_PRAGMA_PARALLEL_END, WN_prev(), and WN_region_pragmas.
Referenced by Write().

| WN * ANL_REGION_CONSTRUCT::_userEndParallel | ( | ) | [private] |
Definition at line 192 of file anl_region_construct.cxx.
References _func_entry, _region, W2CF_TRANSLATOR::Language_is_C(), NULL, ANL_FUNC_ENTRY::Pu_Translator(), WN_first(), WN_next(), WN_pragma(), WN_pragma_compiler_generated, WN_PRAGMA_END_MARKER, WN_PRAGMA_NOWAIT, WN_PRAGMA_PARALLEL_END, and WN_region_pragmas.
Referenced by _Write_Region_Directive().

| void ANL_REGION_CONSTRUCT::_Write_Region_Directive | ( | ANL_CBUF * | cbuf | ) | [private] |
Definition at line 218 of file anl_region_construct.cxx.
References _func_entry, _id, _is_nowait, _is_omp, _region, _region_kind, _userEndParallel(), ANL_MASTER_PROCESS_REGION, ANL_PARALLEL_REGION, ANL_PSECTION_REGION, ANL_SINGLE_PROCESS_REGION, ANL_CBUF::Append_Pragma_Preamble(), W2CF_TRANSLATOR::ClauseList_To_String(), FALSE, ANL_FUNC_ENTRY::Get_Pragma_Srcpos_Range(), ANL_FUNC_ENTRY::Pu_Translator(), TRUE, WN_first(), WN_next(), WN_pragma(), WN_PRAGMA_NOWAIT, WN_region_pragmas, ANL_SRCPOS::Write(), ANL_CBUF::Write_Char(), ANL_CBUF::Write_Int(), and ANL_CBUF::Write_String().
Referenced by Write().

Definition at line 60 of file anl_region_construct.cxx.
References FALSE, NULL, OPR_REGION, WN_first(), WN_operator(), WN_pragma(), WN_PRAGMA_MASTER_BEGIN, WN_PRAGMA_PARALLEL_BEGIN, WN_PRAGMA_PARALLEL_SECTIONS, WN_PRAGMA_PSECTION_BEGIN, WN_PRAGMA_SINGLE_PROCESS_BEGIN, and WN_region_pragmas.
Referenced by ANL_REGION_CONSTRUCT(), and ANL_FUNC_ENTRY::Emit_Nested_Original_Constructs().

| BOOL ANL_REGION_CONSTRUCT::Is_Valid_Dir | ( | ANL_PRAGMA_ATTRIBUTE * | dir, | |
| INT32 | construct_level | |||
| ) | [static] |
Definition at line 91 of file anl_region_construct.cxx.
References ANL_PRAGMA_ATTRIBUTE::Is_Region_Construct_Attribute().
Referenced by Write().

| WN * ANL_REGION_CONSTRUCT::Next_Stmt | ( | ) |
Definition at line 388 of file anl_region_construct.cxx.
References _Last_Region_Stmt(), and WN_next().
Referenced by ANL_FUNC_ENTRY::Emit_Nested_Original_Constructs().

| void ANL_REGION_CONSTRUCT::Write | ( | ANL_CBUF * | cbuf | ) |
Definition at line 396 of file anl_region_construct.cxx.
References _construct_level, _First_Region_Stmt(), _func_entry, _id, _is_nowait, _is_omp, _Last_Region_Stmt(), _pool, _region, _region_kind, _Region_Srcpos_Range(), _Write_Region_Directive(), ANL_MASTER_PROCESS_REGION, ANL_PARALLEL_REGION, ANL_PSECTION_REGION, ANL_SINGLE_PROCESS_REGION, ANL_UNKNOWN_REGION, ANL_CBUF::Append_Pragma_Preamble(), ANL_CBUF::Chars(), ANL_VARLIST::Insert_Var_Refs(), Is_Valid_Dir(), NULL, ANL_CBUF::Size(), TRUE, WN_first(), WN_last(), WN_next(), WN_prev(), WN_region_body, ANL_VARLIST::Write(), ANL_SRCPOS::Write(), ANL_CBUF::Write_Char(), ANL_CBUF::Write_Int(), and ANL_CBUF::Write_String().
Referenced by ANL_FUNC_ENTRY::Emit_Nested_Original_Constructs().

INT32 ANL_REGION_CONSTRUCT::_construct_level [private] |
Definition at line 75 of file anl_region_construct.h.
Referenced by Write().
ANL_FUNC_ENTRY* ANL_REGION_CONSTRUCT::_func_entry [private] |
Definition at line 78 of file anl_region_construct.h.
Referenced by _Region_Srcpos_Range(), _userEndParallel(), _Write_Region_Directive(), ANL_REGION_CONSTRUCT(), and Write().
INT64 ANL_REGION_CONSTRUCT::_id [private] |
Definition at line 72 of file anl_region_construct.h.
Referenced by _Write_Region_Directive(), ANL_REGION_CONSTRUCT(), and Write().
BOOL ANL_REGION_CONSTRUCT::_is_nowait [private] |
Definition at line 76 of file anl_region_construct.h.
Referenced by _Write_Region_Directive(), ANL_REGION_CONSTRUCT(), and Write().
BOOL ANL_REGION_CONSTRUCT::_is_omp [private] |
Definition at line 77 of file anl_region_construct.h.
Referenced by _Write_Region_Directive(), ANL_REGION_CONSTRUCT(), and Write().
MEM_POOL* ANL_REGION_CONSTRUCT::_pool [private] |
Definition at line 79 of file anl_region_construct.h.
Referenced by Write().
WN* ANL_REGION_CONSTRUCT::_region [private] |
Definition at line 74 of file anl_region_construct.h.
Referenced by _First_Region_Stmt(), _Last_Region_Stmt(), _Region_Srcpos_Range(), _userEndParallel(), _Write_Region_Directive(), and Write().
Definition at line 73 of file anl_region_construct.h.
Referenced by _Write_Region_Directive(), ANL_REGION_CONSTRUCT(), and Write().
1.6.1