Exemple #1
0
 def filter(self, ast):
     """ Filter definition
         Returns the first node matching with the filter"""
     # Build a visitor , matching the OmpFor node of the AST
     f = OmpParallelFilter(device = self.device)
     node = f.apply(ast)
     self._func_def = f.get_func_def()
     self._parallel = node
     return node