diff options
| author | Amruth <[email protected]> | 2018-03-23 19:13:00 -0700 |
|---|---|---|
| committer | Amruth <[email protected]> | 2018-03-23 19:13:00 -0700 |
| commit | 742c4dc4c2c85329754043d38c60b2a37fefdaa1 (patch) | |
| tree | 6e8b971b0a4d5cdac03209ea2c844f93a42cfc62 /src/cuda-sim/ptx_ir.h | |
| parent | c6fcfc7e9509b087f932057f18fc4fe71b955382 (diff) | |
dynamic pdom analysis at runtime
Diffstat (limited to 'src/cuda-sim/ptx_ir.h')
| -rw-r--r-- | src/cuda-sim/ptx_ir.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cuda-sim/ptx_ir.h b/src/cuda-sim/ptx_ir.h index 9ad1571..26a2839 100644 --- a/src/cuda-sim/ptx_ir.h +++ b/src/cuda-sim/ptx_ir.h @@ -1178,7 +1178,7 @@ public: //Muchnick's Adv. Compiler Design & Implemmntation Fig 7.15 void find_ipostdominators( ); void print_ipostdominators(); - + void do_pdom(); //function to call pdom analysis unsigned get_num_reconvergence_pairs(); @@ -1274,6 +1274,8 @@ public: m_local_mem_framesize = sz; } bool is_entry_point() const { return m_entry_point; } + bool is_pdom_set() const { return pdom_done; } //return pdom flag + void set_pdom() { pdom_done = true; } //set pdom flag private: unsigned m_uid; @@ -1281,6 +1283,7 @@ private: bool m_entry_point; bool m_extern; bool m_assembled; + bool pdom_done; //flag to check whether pdom is completed or not std::string m_name; ptx_instruction **m_instr_mem; unsigned m_start_PC; |
