| 4 | #include "gpu_array_tile.h" |
| 5 | |
| 6 | struct gpu_array_tile *gpu_array_tile_free(struct gpu_array_tile *tile) |
| 7 | { |
| 8 | int j; |
| 9 | |
| 10 | if (!tile) |
| 11 | return NULL; |
| 12 | |
| 13 | for (j = 0; j < tile->n; ++j) { |
| 14 | isl_val_free(tile->bound[j].size); |
| 15 | isl_val_free(tile->bound[j].stride); |
| 16 | isl_aff_free(tile->bound[j].lb); |
| 17 | isl_aff_free(tile->bound[j].shift); |
| 18 | } |
| 19 | free(tile->bound); |
| 20 | isl_multi_aff_free(tile->tiling); |
| 21 | free(tile); |
| 22 | |
| 23 | return NULL; |
| 24 | } |
| 25 | |
| 26 | /* Create a gpu_array_tile for an array of dimension "n_index". |
| 27 | */ |
no outgoing calls
no test coverage detected