pca006132
  • Joined on 2020-04-27
pca006132 pushed to exception at M-Labs/nac3 2022-02-07 13:10:57 +08:00
210954f895 nac3core: better handling of terminators
cef0fccf33 nac3core: remove commented code
bf8180b30f nac3core: change string representation to CSlice
Compare 3 commits »
pca006132 created branch exception in M-Labs/nac3 2022-02-07 13:10:56 +08:00
pca006132 approved M-Labs/nac3#174 2022-02-07 11:57:41 +08:00
Tuple by value (#172)
pca006132 commented on issue M-Labs/nac3#180 2022-02-07 11:53:06 +08:00
get rid of mcfgthread on Windows

What does LLVM use when it build on Windows/in the legacy compiler build script? Something provided by Visual C++?

pca006132 commented on pull request M-Labs/nac3#174 2022-02-05 23:20:46 +08:00
Tuple by value (#172)

btw, just found some style problem in the previous code, can you fix this together in this PR?

https://git.m-labs.hk/M-Labs/nac3/src/branch/master/nac3core/src/codegen/stmt.rs#L86-L154

Please…

pca006132 commented on pull request M-Labs/nac3#174 2022-02-03 19:10:01 +08:00
Tuple by value (#172)

Maybe mark it as a TODO.

pca006132 commented on pull request M-Labs/nac3#174 2022-02-03 19:09:27 +08:00
Tuple by value (#172)

Thanks for the suggestions! Indeed using the trick to do constant optimization will be safer, and I was just a bit worried about constant optimization of the call to __builtin_memcpy intrinsic as…

pca006132 commented on pull request M-Labs/nac3#174 2022-01-27 17:01:44 +08:00
Tuple by value (#172)

btw I am quite concerned about this one:

+ else if (size == 4) {
+     ((uint32_t *)dest_arr)[dest_ind] = ((uint32_t *)src_arr)[src_ind];
+ } 

It is possible to have a tuple of…

pca006132 commented on pull request M-Labs/nac3#174 2022-01-27 16:49:51 +08:00
Tuple by value (#172)

what if src_len > dest_len?

pca006132 pushed to rpc at M-Labs/nac3 2022-01-27 16:32:51 +08:00
e990211e53 Merge branch 'rpc'
304181fd8c Merge pull request 'fix errors of non-primitive host object when running multiple kernels' (#171) from multiple_kernel_err into master
43048eb8d8 nac3standalone: add tests for list slice and len
ace0e2a2c6 nac3core: fix use of size_t in list comprehension, cleanup
e891683f2e flake: hack-link libstdc++ statically on Windows. Closes #175
Compare 38 commits »
pca006132 commented on pull request M-Labs/nac3#174 2022-01-27 16:31:01 +08:00
Tuple by value (#172)

I think calling memcpy will already optimize it for small constant size.

void copy(int* a, int* b) {
    memcpy(a, b, 10);
}

will be compiled as

define dso_local void
pca006132 merged pull request M-Labs/nac3#171 2022-01-27 14:46:23 +08:00
fix errors of non-primitive host object when running multiple kernels
pca006132 pushed to master at M-Labs/nac3 2022-01-27 14:46:23 +08:00
304181fd8c Merge pull request 'fix errors of non-primitive host object when running multiple kernels' (#171) from multiple_kernel_err into master
0439bf6aef nac3artiq: fix errors of non-primitive object when running multiple kernels
Compare 2 commits »
pca006132 commented on issue M-Labs/nac3#175 2022-01-24 15:42:29 +08:00
nac3artiq module fails to load with latest msys2

is this an issue caused by pyo3? or what is the cause of this issue?

pca006132 pushed to exception at pca006132/artiq-zynq 2022-01-23 21:31:26 +08:00
6f5ba46e89 runtime/eh_artiq: support exception allocation
pca006132 pushed to exception at pca006132/artiq-zynq 2022-01-23 00:10:21 +08:00
423abfb782 runtime: complete re-raise support
pca006132 pushed to exception at pca006132/artiq-zynq 2022-01-19 14:23:42 +08:00
2fa8c1ce23 runtime/eh_artiq: change exception representation
2d5ca0b13e runtime/comms: send nested exception
Compare 2 commits »
pca006132 pushed to exception at pca006132/artiq-zynq 2022-01-18 17:11:24 +08:00
a1d923066c runtime/comms: send nested exception
pca006132 opened issue M-Labs/nac3#172 2022-01-18 14:05:11 +08:00
ABI changes: pass by value
pca006132 pushed to exception at pca006132/artiq-zynq 2022-01-17 21:09:43 +08:00
1eda780a11 runtime/eh_artiq: allocate names in a static buffer
107e2c524f runtime/eh_artiq: support exception allocation
Compare 2 commits »