David Mak
339c666ea6
[core] coregen/types: Implement StructFields for NDArray
...
Also rename some fields to better align with their naming in numpy.
2024-11-20 15:20:37 +08:00
David Mak
d6b884664e
[core] codegen/types: Implement NDArray in terms of i8*
...
Better aligns with the future implementation of ndstrides.
2024-11-20 15:20:37 +08:00
David Mak
bb18ace08f
[core] irrt: Break IRRT into several impl files
...
Each IRRT file is now mapped to one Rust file.
2024-11-20 15:20:37 +08:00
David Mak
7796dd5e4f
[core] irrt: Update some IRRT implementation
...
- Change CSlice to use `void*` for better pointer compatibility
- Remove __STDC_VERSION__ guard
- Only include impl *.hpp files in irrt.cpp
- Refactor typedef to using declaration
- Add missing ``// namespace`
2024-11-20 15:20:37 +08:00
David Mak
373f4307c9
[core] codegen: Add dtype to NDArrayType
...
We won't have this once NDArray is refactored to strided impl.
2024-11-20 15:20:37 +08:00
David Mak
b469de51bc
[core] codegen: Add Self::llvm_type to all type abstractions
2024-11-20 15:20:37 +08:00
lyken
a9afa92cea
core/irrt: fix exception.hpp C++ castings
2024-11-20 15:20:37 +08:00
lyken
a14c00434c
core/toplevel/helper: add {extract,create}_ndims
2024-11-20 15:20:37 +08:00
David Mak
423b26ea81
[core_derive] Initial implementation
2024-11-20 15:20:35 +08:00