Skip to content
Snippets Groups Projects
Commit 8086a8c9 authored by Marcel Koch's avatar Marcel Koch
Browse files

adds function mangler for loads and stores

parent 8c39e489
No related branches found
No related tags found
No related merge requests found
...@@ -102,3 +102,8 @@ def vcl_function_mangler(knl, func, arg_dtypes): ...@@ -102,3 +102,8 @@ def vcl_function_mangler(knl, func, arg_dtypes):
vcl = lp.types.NumpyType(get_vcl_type(dtype)) vcl = lp.types.NumpyType(get_vcl_type(dtype))
return lp.CallMangleInfo(func, (vcl,), (vcl,)) return lp.CallMangleInfo(func, (vcl,), (vcl,))
if isinstance(func, str) and func.endswith('.load'):
return lp.CallMangleInfo(func, (), (lp.types.NumpyType(np.int32),))
if isinstance(func, str) and func.endswith('.store'):
return lp.CallMangleInfo(func, (), (lp.types.NumpyType(np.int32),))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment