MCPcopy Create free account
hub / github.com/UCLA-VAST/AutoSA / gpu_array_tile_free

Function gpu_array_tile_free

gpu_array_tile.c:6–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include "gpu_array_tile.h"
5
6struct 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 */

Callers 4

gpu_array_tile_createFunction · 0.85
gpu_array_ref_group_freeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected