We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49bcbc8 commit f506758Copy full SHA for f506758
1 file changed
documentation/source/developer_guide/psyclone/psyclone_functions.rst
@@ -26,3 +26,8 @@ Using the ``profile_loops`` function allows the user to wrap the outermost loop
26
def trans(psyir):
27
profile_loops(psyir,colours_only=False)
28
29
+
30
+An important thing to note when including this function in an optimisation script is its position relative to other transformation functions.
31
+The ``profile_loops`` function must come after the ``colour_loops`` function but before the ``openmp_parallelise_loops`` function.
32
+This ensures that the callipers are injected into the correct position in the Psyclone generated code.
33
+The build step will fail gracefully if this function is used out of order.
0 commit comments