Compare commits

..

9 Commits

Author SHA1 Message Date
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
2 changed files with 1 additions and 6 deletions

View File

@ -4,12 +4,9 @@ use inkwell::{
values::{IntValue, PointerValue},
AddressSpace,
};
use itertools::Itertools;
use nac3core_derive::StructFields;
use super::{
structure::{StructField, StructFields},
structure::StructField,
ProxyType,
};
use crate::codegen::{

View File

@ -21,5 +21,3 @@ pub mod codegen;
pub mod symbol_resolver;
pub mod toplevel;
pub mod typecheck;
extern crate self as nac3core;