gpu_tree.h 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. #ifndef GPU_TREE_H
  2. #define GPU_TREE_H
  3. #include <isl/schedule_node.h>
  4. #include "gpu.h"
  5. __isl_give isl_schedule_node *gpu_tree_insert_shared_before_thread(
  6. __isl_take isl_schedule_node *node);
  7. int gpu_tree_node_is_kernel(__isl_keep isl_schedule_node *node);
  8. __isl_give isl_schedule_node *gpu_tree_move_down_to_shared(
  9. __isl_take isl_schedule_node *node, __isl_keep isl_union_set *core);
  10. __isl_give isl_schedule_node *gpu_tree_move_up_to_thread(
  11. __isl_take isl_schedule_node *node);
  12. __isl_give isl_schedule_node *gpu_tree_move_down_to_thread(
  13. __isl_take isl_schedule_node *node, __isl_keep isl_union_set *core);
  14. __isl_give isl_schedule_node *gpu_tree_move_up_to_kernel(
  15. __isl_take isl_schedule_node *node);
  16. __isl_give isl_schedule_node *gpu_tree_move_down_to_depth(
  17. __isl_take isl_schedule_node *node, int depth,
  18. __isl_keep isl_union_set *core);
  19. int gpu_tree_id_is_sync(__isl_keep isl_id *id, struct ppcg_kernel *kernel);
  20. __isl_give isl_schedule_node *gpu_tree_ensure_sync_after_core(
  21. __isl_take isl_schedule_node *node, struct ppcg_kernel *kernel);
  22. __isl_give isl_schedule_node *gpu_tree_ensure_following_sync(
  23. __isl_take isl_schedule_node *node, struct ppcg_kernel *kernel);
  24. __isl_give isl_schedule_node *gpu_tree_move_left_to_sync(
  25. __isl_take isl_schedule_node *node, struct ppcg_kernel *kernel);
  26. __isl_give isl_schedule_node *gpu_tree_move_right_to_sync(
  27. __isl_take isl_schedule_node *node, struct ppcg_kernel *kernel);
  28. #endif