blob: b2d4dafba0989029d35a95ce855b5bfbb9f1b196 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
"""
UseOMP detects if a function use OpenMP
"""
from pythran.passmanager import FunctionAnalysis
class UseOMP(FunctionAnalysis):
"""Detects if a function use openMP"""
ResultType = bool
def visit_OMPDirective(self, _):
self.result = True
|