From f925ba20c06d619d8c5825d6d859a1d2185795ee Mon Sep 17 00:00:00 2001 From: Derick Huth Date: Thu, 24 Sep 2015 12:03:50 -0600 Subject: -- --- ir_suif_utils.hh | 72 -------------------------------------------------------- 1 file changed, 72 deletions(-) delete mode 100644 ir_suif_utils.hh (limited to 'ir_suif_utils.hh') diff --git a/ir_suif_utils.hh b/ir_suif_utils.hh deleted file mode 100644 index 55d5ce7..0000000 --- a/ir_suif_utils.hh +++ /dev/null @@ -1,72 +0,0 @@ -#ifndef IR_SUIF_UTILS_HH -#define IR_SUIF_UTILS_HH -#include -#include -// #include "cctools.hh" -#include "omegatools.hh" -// #include "loop.hh" - -// c++ stuff: - -// template const T& min(const T &a, const T &b) { -// if ( a < b) -// return a; -// else -// return b; -// } - -// template T abs(const T &v) { -// if (v < static_cast(0)) -// return -v; -// else -// return v; -// } - -// class CG_suifArray: public CG_inputArray { -// protected: -// in_array *ia; -// public: -// CG_suifArray(in_array *ia_); -// virtual bool is_write(); -// }; - - -// class SUIF_IR { -// public: -// file_set_entry *_fse; -// proc_sym *_psym; -// SUIF_IR(char *filename, int proc_num); -// ~SUIF_IR(); - -// tree_for *get_loop(int loop_num); -// void commit(Loop *lp, int loop_num); -// }; - -// extern SUIF_IR *ir; - -// suif stuff: - -// tree_for *init_loop(char *filename, int proc_num, int loop_num); -// void finalize_loop(); - - -operand find_array_index(in_array *ia, int n, int dim, bool is_fortran); -bool is_null_statement(tree_node *tn); -std::vector find_deepest_loops(tree_node *tn); -std::vector find_deepest_loops(tree_node_list *tnl); -std::vector find_loops(tree_node_list *tnl); -std::vector find_outer_loops(tree_node *tn); -std::vector find_common_loops(tree_node *tn1, tree_node *tn2); -LexicalOrderType lexical_order(tree_node *tn1, tree_node *tn2); -std::vector find_arrays(instruction *ins); -std::vector find_arrays(tree_node_list *tnl); - -//protonu--adding a few functions used it cuda-chil -//these are defined in ir_cuda_suif_uitls.cc -tree_node_list* loop_body_at_level(tree_node_list* tnl, int level); -tree_node_list* loop_body_at_level(tree_for* loop, int level); -tree_node_list* swap_node_for_node_list(tree_node* tn, tree_node_list* new_tnl); -// std::vector find_arrays_access(instruction *ins); -// std::vector find_arrays_access(tree_node_list *tnl); - -#endif -- cgit v1.2.3-70-g09d2