Lines Matching refs:func
152 def create_mixed_wrapper(func: FuncDecl) -> str:
156 name = func.target_name
157 struct_name = func.struct_name
158 graph_assume_lock = 'assume_graph_lock();' if func.graph_rdlock else ''
182 def create_co_wrapper(func: FuncDecl) -> str:
186 name = func.target_name
187 struct_name = func.struct_name
206 def gen_co_wrapper(func: FuncDecl) -> str:
207 assert not '_co_' in func.name
208 assert func.wrapper_type == 'co'
210 name = func.target_name
211 struct_name = func.struct_name
215 if func.graph_rdlock:
220 if func.create_only_co:
249 def gen_no_co_wrapper(func: FuncDecl) -> str:
250 assert '_co_' in func.name
251 assert func.wrapper_type == 'no_co'
253 name = func.target_name
254 struct_name = func.struct_name
258 if func.graph_rdlock:
261 elif func.graph_wrlock:
304 for func in func_decl_iter(input_code):
306 if func.wrapper_type == 'co':
307 res += gen_co_wrapper(func)
309 res += gen_no_co_wrapper(func)