loki.transformations.tests.test_remove_code
Functions
|
Write some source files to use in the test |
|
Write some source files with arguments to use in tests. |
Create a src directory in the temp directory |
|
|
|
|
Test the use of code removal utilities, in particular the call removal, via the scheduler. |
|
Test the removal of unused arguments in a call tree. |
|
|
|
Test correct elimination of unreachable conditional branches. |
Test correct elimination of unreachable branches in nested conditionals. |
|
Test correct elimination of unreachable conditional branches in SELECT CASE statements. |
|
|
Test removal of utility calls and intrinsics with custom patterns. |
Test correct removal of pragma-marked code regions. |
- fixture_srcdir()
Create a src directory in the temp directory
- fixture_source(srcdir)
Write some source files to use in the test
- fixture_source_with_args(srcdir)
Write some source files with arguments to use in tests.
- test_transform_dead_code_conditional(frontend)
Test correct elimination of unreachable conditional branches.
- test_transform_dead_code_conditional_nested(frontend)
Test correct elimination of unreachable branches in nested conditionals.
- test_transform_dead_code_multiconditional(frontend)
Test correct elimination of unreachable conditional branches in SELECT CASE statements.
- test_transform_remove_code_pragma_region(frontend, mark_with_comment, replace_with_abort)
Test correct removal of pragma-marked code regions.
- test_transform_remove_calls(frontend, remove_imports, tmp_path)
Test removal of utility calls and intrinsics with custom patterns.
- test_remove_code_transformation(frontend, source, include_intrinsics, kernel_only, remove_marked, tmp_path)
Test the use of code removal utilities, in particular the call removal, via the scheduler.
- test_remove_code_unused_args(frontend, source_with_args, kernel_override, tmp_path)
Test the removal of unused arguments in a call tree.
- test_remove_code_unused_vars(frontend, remove_only_arrays, tmp_path)
- test_remove_code_nested_regions(frontend)