tree: fde1c4d3024d0cbab4e49bd51de351c1a19c8681 [path history] [tgz]
  1. array/
  2. array3d/
  3. box/
  4. const_pointer/
  5. f32/
  6. f64/
  7. i128/
  8. i16/
  9. i32/
  10. i8/
  11. isize/
  12. mut_pointer/
  13. mut_ref/
  14. ref/
  15. struct/
  16. u128/
  17. u16/
  18. u32/
  19. u8/
  20. union/
  21. usize/
  22. vec/
  23. README.md
tests/run-make/autodiff/type-trees/type-analysis/README.md

Autodiff Type-Trees Type Analysis Tests

This directory contains run-make tests for the autodiff type-trees type analysis functionality. These tests verify that the autodiff compiler correctly analyzes and tracks type information for different Rust types during automatic differentiation.

What These Tests Do

Each test compiles a simple Rust function with the #[autodiff_reverse] attribute and verifies that the compiler:

  1. Correctly identifies type information in the generated LLVM IR
  2. Tracks type annotations for variables and operations
  3. Preserves type context through the autodiff transformation process

The tests capture the stdout from the autodiff compiler (which contains type analysis information) and verify it matches expected patterns using FileCheck.