|
acd5e382c0
|
[core] codegen: Implement StructProxy on existing proxies
|
2025-01-28 23:25:14 +08:00 |
|
|
0ff99f4677
|
[core] codegen: Rename StructField::{get{,_from_value},set{,for_value}}
|
2025-01-28 23:16:03 +08:00 |
|
|
843ad89164
|
[core] codegen: Add Proxy{Type,Value}::as_abi_{type,value}
Needed for PtrToOrBasic{Type,Value}.
|
2025-01-28 23:14:23 +08:00 |
|
|
91130da483
|
[core] codegen: Add StructProxy{Type,Value}
|
2025-01-28 23:14:20 +08:00 |
|
|
da8480148a
|
[core] codegen: Refactor Proxy{Type,Value} for StructProxy{Type,Value}
|
2025-01-28 23:10:16 +08:00 |
|
|
c36aac323d
|
[core] codegen: Normalize RangeType factory functions
Better matches factory functions of other ProxyTypes.
|
2025-01-28 23:10:16 +08:00 |
|
|
13aa590429
|
[meta] Update dependencies
|
2025-01-28 23:10:14 +08:00 |
|
|
f817d3347b
|
[artiq] cleanup module functionality tests
|
2025-01-20 10:24:08 +08:00 |
|
|
2d275949b8
|
move tests from artiq to standalone
|
2025-01-17 13:10:35 +08:00 |
|
|
2783834cb1
|
nac3artiq/demo: merge EmbeddingMap into min_artiq
|
2025-01-17 12:45:51 +08:00 |
|
|
879b063968
|
[artiq] add tests for module support
|
2025-01-16 12:42:13 +08:00 |
|
|
14e80dfab7
|
update snapshots
|
2025-01-16 12:41:30 +08:00 |
|
|
5fdbc34b43
|
[core] implement codegen for modules
|
2025-01-16 12:40:56 +08:00 |
|
|
32f24261f2
|
[artiq] add global variables to modules
|
2025-01-16 12:40:14 +08:00 |
|
|
ce40a46f8a
|
[core] add module type
|
2025-01-16 12:40:06 +08:00 |
|
|
f15a64cc1b
|
[artiq] register modules
|
2025-01-16 11:13:04 +08:00 |
|
|
7fac801936
|
[artiq] add module primitive type
|
2025-01-16 11:13:04 +08:00 |
|
|
febfd1241d
|
[core] add module type
|
2025-01-16 11:13:04 +08:00 |
|
|
4bd5349381
|
[core] add attributes to class string
|
2025-01-16 11:13:04 +08:00 |
|
|
c15062ab4c
|
msys2: update
|
2025-01-15 21:33:58 +08:00 |
|
|
933804e270
|
update dependencies
|
2025-01-15 21:18:45 +08:00 |
|
|
1cfaa1a779
|
[core] toplevel: Implement np_{any,all}
|
2025-01-15 16:09:32 +08:00 |
|
|
18e8e5269f
|
[core] codegen/values/ndarray: Add fold utilities
Needed for np_{any,all}.
|
2025-01-15 16:09:32 +08:00 |
|
|
357970a793
|
[core] codegen/stmt: Add build_{break,continue}_branch functions
|
2025-01-15 16:09:32 +08:00 |
|
|
762a2447c3
|
[core] codegen: Remove obsolete comments
Comments regarding the need for `llvm.stack{save,restore}` is obsolete
now that `NDIter::indices` is allocated at the beginning of the
function.
|
2025-01-15 16:09:32 +08:00 |
|
|
8e614d83de
|
[core] codegen: Add ProxyType::new overloads and refactor to use them
|
2025-01-15 13:23:19 +08:00 |
|
|
bd66fe48d8
|
[core] codegen: Refactor to use CodeGenContext::get_size_type
Simplifies a lot of API usage.
|
2025-01-15 13:23:19 +08:00 |
|
|
c59fd286ff
|
[artiq] Move get_llvm_* to Isa, use TargetMachine to infer size_t
|
2025-01-15 13:23:19 +08:00 |
|
|
f8530e0ef6
|
[core] codegen: Add CodeGenContext::get_size_type
Convenience method for getting the `size_t` LLVM type without the use of
`CodeGenerator`.
|
2025-01-15 13:22:50 +08:00 |
|
|
3ebd4ba5d1
|
[core] codegen: Add assertion verifying size_t is compatible
|
2025-01-14 18:25:00 +08:00 |
|
|
d1dcfa19ff
|
CodeGenerator: Add with_target_machine factory function
Allows creating CodeGenerator with the LLVM target machine to infer the
expected type for size_t.
|
2025-01-13 14:55:33 +08:00 |
|
|
8baf111734
|
[meta] Apply clippy suggestions
|
2025-01-06 17:11:31 +08:00 |
|
|
eaaa194a87
|
[artiq] symbol_resolver: Cast ndarray.{shape,strides} globals to usize*
This is needed as ndarray.{shapes,strides} are ArrayValues, and so a GEP
operation is required to convert them into pointers to their first
elements.
|
2025-01-06 16:53:33 +08:00 |
|
|
352c7c880b
|
[artiq] symbol_resolver: Fix incorrect global type for ndarray.strides
|
2025-01-06 16:53:33 +08:00 |
|
|
3c5e247195
|
[artiq] symbol_resolver: Use TargetData to get size of dtype
dtype.size_of() may not return a constant value.
|
2025-01-06 16:53:33 +08:00 |
|
|
4e21def1a0
|
[artiq] symbol_resolver: Add missing promotion for host compilation
Shape tuple is always in i32, so a zero-extension to i64 is
necessary when assigning the shape tuple into the shape field of the
ndarray.
|
2025-01-06 16:53:33 +08:00 |
|
|
2271b46b96
|
[core] codegen/values/ndarray: Fix Vec allocation
|
2025-01-06 16:53:33 +08:00 |
|
|
d9c180ed13
|
[artiq] symbol_resolver: Fix support for np.bool_ -> bool decay
|
2025-01-06 16:53:33 +08:00 |
|
|
8322d457c6
|
standalone/demo: numpy2 compatibility
|
2025-01-04 15:30:24 +08:00 |
|
|
e480081e4b
|
update dependencies
|
2025-01-04 10:28:41 +08:00 |
|
|
12fddc3533
|
[core] codegen/ndarray: Make ndims non-optional
Now that everything is ported to use strided impl, dynamic-ndim ndarray
instances do not exist anymore.
|
2025-01-03 15:43:08 +08:00 |
|
|
3ac1083734
|
[core] codegen: Reimplement np_dot() for scalars and 1D
Based on 693b7f37 : core/ndstrides: implement np_dot() for scalars and 1D
|
2025-01-03 15:43:08 +08:00 |
|
|
66b8a5e01d
|
[core] codegen/ndarray: Reimplement matmul
Based on 73c2203b : core/ndstrides: implement general matmul
|
2025-01-03 15:43:06 +08:00 |
|
|
ebbadc2d74
|
[core] codegen: Reimplement ndarray cmpop
Based on 56cccce1 : core/ndstrides: implement cmpop
|
2025-01-03 15:15:13 +08:00 |
|
|
a2f1b25fd8
|
[core] codegen: Reimplement ndarray unary op
Based on bb992704 : core/ndstrides: implement unary op
|
2025-01-03 15:15:12 +08:00 |
|
|
59f19e29df
|
[core] codegen: Reimplement ndarray binop
Based on 9e40c834 : core/ndstrides: implement binop
|
2025-01-03 15:15:12 +08:00 |
|
|
6cbba8fdde
|
[core] codegen: Reimplement builtin funcs to support strided ndarrays
Based on 7f3c4530 : core/ndstrides: update builtin_fns to use ndarray
with strides
|
2025-01-03 15:15:12 +08:00 |
|
|
e6dab25a57
|
[core] codegen/ndarray: Add NDArrayOut, broadcast_map, map
Based on fbfc0b29 : core/ndstrides: add NDArrayOut, broadcast_map and map
|
2025-01-03 15:15:11 +08:00 |
|
|
2dc5e79a23
|
[core] codegen/ndarray: Implement subscript assignment
Based on 5bed394e : core/ndstrides: implement subscript assignment
Overlapping is not handled. Currently it has undefined behavior.
|
2025-01-03 15:15:11 +08:00 |
|
|
dcde1d9c87
|
[core] codegen/values/ndarray: Add more ScalarOrNDArray utils
Based on f731e604 : core/ndstrides: add more ScalarOrNDArray and
NDArrayObject utils
|
2025-01-03 15:15:10 +08:00 |
|