abdul124
  • Joined on 2024-06-03
abdul124 pushed to issue-133 at M-Labs/nac3 2024-08-20 12:26:12 +08:00
415c78d23b standalone: add tests for polymorphism
d1a833097a core: add support for simple polymorphism
6a0fb4daa1 core: allow Call and AnnAssign in init block
0fc26df29e flake: update nixpkgs
Compare 4 commits »
abdul124 pushed to issue-133 at M-Labs/nac3 2024-08-19 17:55:12 +08:00
79e95653cd standalone: add tests for polymorphism
c96deafee2 core: add support for simple polymorphism
7afbb28a54 core: allow Call and AnnAssign in init block
0b074c2cf2 [artiq] symbol_resolver: Set private linkage for constants
a0f6961e0e cargo: update dependencies
Compare 5 commits »
abdul124 commented on pull request M-Labs/nac3#497 2024-08-19 15:32:41 +08:00
core: allow calling parent methods

Could you add documentation to this function?

Will do.

abdul124 commented on pull request M-Labs/nac3#497 2024-08-19 15:32:25 +08:00
core: allow calling parent methods

Would this way of getting the fully qualified name of the to-be-initialized class work for inner (nested) classes?

Hmm I tried testing on inner classes, but they are not currently supported in…

abdul124 commented on pull request M-Labs/nac3#497 2024-08-19 15:19:49 +08:00
core: allow calling parent methods

Do you mean it returns Some(DefinitionID(self.f1))? Aren't DefinitionIDs global?

Since each class function is assigned a unique DefintionID, this returns replaces the attribute with the…

abdul124 commented on pull request M-Labs/nac3#497 2024-08-19 13:30:11 +08:00
core: allow calling parent methods

Initiated ?

Should have been initialized. This part checks if there are any function calls in the __init__ block where user might have initialized some variables (as all variables must be…

abdul124 commented on pull request M-Labs/nac3#497 2024-08-19 13:22:52 +08:00
core: allow calling parent methods

I don't understand this comment, can you elaborate?

Class names in TopLevelDef are stored by first prepending module name to the class name. So,

class A:
   pass

would be named…

abdul124 created pull request M-Labs/nac3#497 2024-08-19 10:46:34 +08:00
core: allow calling parent methods
abdul124 pushed to issue-133 at M-Labs/nac3 2024-08-19 10:26:17 +08:00
adadbaa6ba standalone: add tests for polymorphism
3771255e06 core: add support for simple polymorphism
Compare 2 commits »
abdul124 pushed to issue-133 at M-Labs/nac3 2024-08-16 17:44:58 +08:00
1032cdcf31 standalone: add tests for polymorphism
ae2efac1d4 core: add support for simple polymoriphism
76c249bdb8 core: allow Call and AnnAssign in init block
Compare 3 commits »
abdul124 created branch issue-133 in M-Labs/nac3 2024-08-16 17:44:57 +08:00
abdul124 pushed to issue-133-temp at abdul124/nac3 2024-08-16 17:22:16 +08:00
b1c5c2e1d4 [artiq] Fix RPC of ndarrays to host
Compare 2 commits »
abdul124 pushed to master at abdul124/nac3 2024-08-15 18:00:19 +08:00
8dda6d5fe3 Handle polymorphism with virtual tables
abdul124 pushed to master at abdul124/nac3 2024-08-15 17:59:24 +08:00
69320a6cf1 [artiq] Fix LLVM representation of strings
9e0601837a core: Add compile-time feature to disable escape analysis
432c81a500 core: update insta after #489
6beff7a268 [artiq] Implement core_log and rtio_log in terms of polymorphic_print
6ca7aecd4a [artiq] Add core_log and rtio_log function declarations
Compare 69 commits »
abdul124 pushed to issue-133-temp at abdul124/nac3 2024-08-14 17:52:24 +08:00
d5fa3fafa1 Handle polymorphism with virtual tables
69320a6cf1 [artiq] Fix LLVM representation of strings
9e0601837a core: Add compile-time feature to disable escape analysis
432c81a500 core: update insta after #489
6beff7a268 [artiq] Implement core_log and rtio_log in terms of polymorphic_print
Compare 17 commits »
abdul124 created branch issue-133-temp in abdul124/nac3 2024-08-13 17:36:09 +08:00
abdul124 pushed to issue-133-temp at abdul124/nac3 2024-08-13 17:36:09 +08:00
4069852503 Handle polymorphism as special calls
7e3d87f841 core/codegen: fix bug in call_ceil function
ac0d83ef98 standalone: Add vararg.py
3ff6db1a29 core/codegen: Add va_start and va_end intrinsics
d7b806afb4 core/codegen: Implement support for va_info on supported architectures
Compare 10 commits »
abdul124 commented on pull request M-Labs/nac3#488 2024-08-13 10:53:01 +08:00
Implement core_log and rtio_log to ARTIQ

So the present change should be reverted i.e. there is no need to add --target-features +sse2 ?

Yes, since the feature is already implied by i686 target, --target-feature +sse2 is…

abdul124 commented on pull request M-Labs/nac3#488 2024-08-13 10:41:45 +08:00
Implement core_log and rtio_log to ARTIQ

Okay, but that comment is about Rust, not LLVM. nac3 is only using the latter here.

LLVM does interpret "i686" as implying sse2 for most part (Debian LLVM requires patch though). This commit…

abdul124 commented on pull request M-Labs/nac3#488 2024-08-13 10:16:09 +08:00
Implement core_log and rtio_log to ARTIQ

@abdul124 I thought you said this sse2 option was no longer required when using i686 instead of i386?

sse2 should be enforced by default on rustc i686 target https://github.com/rust-lang/rust/is