def get_kernel_loop_nest(self):
loop_nest = [s for s in self.kernel_ast.block_items<EOL>if type(s) in [c_ast.For, c_ast.Pragma, c_ast.FuncCall]]<EOL>assert len(loop_nest) >= <NUM_LIT:1>, "<STR_LIT>"<EOL>return loop_nest<EOL>
Return kernel loop nest including any preceding pragmas and following swaps.