Skip to content

[Misc] Reject ndarray struct passed to template-annotated kernel param#608

Draft
hughperkins wants to merge 4 commits into
mainfrom
hp/reject-ndarray-in-template
Draft

[Misc] Reject ndarray struct passed to template-annotated kernel param#608
hughperkins wants to merge 4 commits into
mainfrom
hp/reject-ndarray-in-template

Merge branch 'main' into hp/reject-ndarray-in-template

6dddecc
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
GitHub Actions / PR change report succeeded Jun 29, 2026 in 0s

PR change report

Per-file totals + per-function breakdown of code-line additions and removals.

Details

PR change report (6dddeccf6)

Per-file totals + per-function breakdown of code-line additions and removals.
Code lines exclude blank lines, comment-only lines, and Python multi-line strings.

File LoC Added Removed
tests/python/test_tensor_annotation_in_func.py 319 +33 -12
python/quadrants/lang/ast/ast_transformers/function_def_transformer.py 536 +4 -20

Total: 2 file(s) changed, +37 -32 code lines.

Per-function breakdown

tests/python/test_tensor_annotation_in_func.py 319 +33 -12
    Existing:
      test_tensor_struct_vector_field_roundtrip()          25       +8       -4
      test_mixed_tensor_and_scalar_struct_fields()         18       +6       -2
      test_tensor_struct_field_func_via_template()         19       +6       -2
      test_tensor_struct_field_kernel_data_oriented()      20       +6       -2
      test_tensor_wrapper_in_struct_field_unwraps()        18       +6       -2
      <module>()                                            7       +1

python/quadrants/lang/ast/ast_transformers/function_def_transformer.py 536 +4 -20
    Existing:
      FunctionDefTransformer::_predeclare_struct_ndarrays()      61       +3      -20
      <module>()                                                 42       +1

Notes:
  * The number columns (without a + or - sign) are code-line counts in the BASE (pre-PR) version: file size before this PR (0 for newly-added files), function body size before this PR (0 for new functions; original body size for deleted functions).
  * +<n> / -<n> are code lines added / removed by this PR.
  * Code lines exclude blank lines, comment-only lines, and Python multi-line strings.