abdul124
  • Joined on 2024-06-03
abdul124 commented on issue M-Labs/nac3#337 2024-06-27 11:07:47 +08:00
string attributes

Realized by #416

abdul124 commented on pull request M-Labs/nac3#428 2024-06-26 14:05:38 +08:00
core/llvm_intrinsics: remove llvm.roundeven call from call_float_roundeven (issue 396)

Using llvm.roundeven was breaking since musl libc did not provide an implementation of the roundeven function. Instead of adding a roundeven function patch for platforms with musl libc, I…

abdul124 pushed to issue-396 at M-Labs/nac3 2024-06-26 13:34:57 +08:00
1835561217 core/llvm_intrinsics: remove llvm.roundeven call from call_float_roundeven
b0b804051a nac3artiq: allow class attribute access without init function
134af79fd6 core: add support for class attributes
7fe2c3496c core: add attribute field to class definition
144a3fc426 core: more derive Debug in typedef
Compare 6 commits »
abdul124 pushed to issue-396 at M-Labs/nac3 2024-06-24 15:02:39 +08:00
14d95ff5a5 core/llvm_intrinsics: remove llvm.roundeven call from call_float_roundeven
06e9d90d57 apply clippy changes
d89146aa02 core: use no_run on builtin_fns docs
5bade81ddb standalone: Add test for multidim array index with one index
0452e6de78 core: Fix codegen for tuple-index into ndarray
Compare 8 commits »
abdul124 commented on pull request M-Labs/nac3#425 2024-06-21 10:08:41 +08:00
core: add support for class attributes (issue-102)

Revised.

abdul124 pushed to issue-102 at M-Labs/nac3 2024-06-21 10:07:45 +08:00
ad1b4f1b9b nac3artiq: allow class attribute access without init function
abdul124 pushed to issue-102 at M-Labs/nac3 2024-06-21 10:04:14 +08:00
43991b150b nac3artiq: allow class attribute access without init function
3b6a6f560f core: add support for class attributes
e91d24fd10 core: add attribute field to class definition
d89146aa02 core: use no_run on builtin_fns docs
5bade81ddb standalone: Add test for multidim array index with one index
Compare 9 commits »
abdul124 commented on pull request M-Labs/nac3#428 2024-06-20 17:34:27 +08:00
core/llvm_intrinsics: remove llvm.roundeven call from call_float_roundeven (issue 396)

I'm not sure if doing another manual implementation of this function is the right thing to do in the first place.

As an alternative, I can replace the llvm.roundeven with llvm.rint or…

abdul124 pushed to issue-396 at M-Labs/nac3 2024-06-20 17:24:37 +08:00
c7c7da7ca2 nac3core/llvm_intrinsic: add check for NaN and negative floating point
abdul124 commented on pull request M-Labs/nac3#428 2024-06-20 15:54:07 +08:00
core/llvm_intrinsics: remove llvm.roundeven call from call_float_roundeven (issue 396)

Floating point stuff can be deceptive. Please look at a reference roundeven implementation e.g. from glibc.

I compared the implementation with the implementation of floor and roundeven in…

abdul124 commented on pull request M-Labs/nac3#428 2024-06-20 13:34:14 +08:00
core/llvm_intrinsics: remove llvm.roundeven call from call_float_roundeven (issue 396)

Well OK but will it return the same/correct results?

It passed the testcases in nac3standalone/demo/ndarray.py file. The functionality was relatively simple (round to nearest integer using…

abdul124 commented on pull request M-Labs/nac3#425 2024-06-20 13:22:09 +08:00
core: add support for class attributes (issue-102)

I was using the example given in #102, but I see your point. I will update the file and while I am at it, refactor nac3core/composer to avoid code duplications

abdul124 commented on pull request M-Labs/nac3#428 2024-06-20 13:20:33 +08:00
core/llvm_intrinsics: remove llvm.roundeven call from call_float_roundeven (issue 396)

Hmm, are there any other codebases doing this?

I did not find a similar issue in other codebases online. However, by using simpler llvm.floor calls instead of llvm.roundeven, the new…

abdul124 created pull request M-Labs/nac3#428 2024-06-20 12:21:52 +08:00
core/llvm_intrinsics: remove llvm.roundeven call from call_float_roundeven (issue 396)
abdul124 pushed to issue-396 at M-Labs/nac3 2024-06-20 12:14:54 +08:00
16afe221dd core/llvm_intrinsics: remove llvm.roundeven call from call_float_roundeven
abdul124 pushed to issue-396 at M-Labs/nac3 2024-06-20 12:07:40 +08:00
12a83ba7d2 core/llvm_intrinsics: replace llvm.roundeven intrinsic in call_float_roundeven
abdul124 created branch issue-396 in M-Labs/nac3 2024-06-20 12:07:32 +08:00
abdul124 commented on pull request M-Labs/nac3#425 2024-06-20 10:08:56 +08:00
core: add support for class attributes (issue-102)

Please run the pre-commit hooks (i.e. cargo clippy and cargo fmt) on each commit so that the apply cargo fmt commit can be dropped.

Force pushed to update commit history. Also replaced…

abdul124 pushed to issue-102 at M-Labs/nac3 2024-06-20 10:05:24 +08:00
45708aadda nac3artiq: allow class attribute access without init function
8e418ef7d5 core: add support for class attributes
246afa70f5 core: add attribute field to class definition
d3cd2a8d99 artiq: Add support for generating RPC tag for ndarray
202a63274d artiq: Implement pyty-to-ty conversion
Compare 9 commits »
abdul124 created pull request M-Labs/nac3#425 2024-06-19 18:15:28 +08:00
core: add support for class attributes (issue-102)