Build GPU kernel in isl AST form from for loops.