David Mak derppening
  • Joined on 2023-08-31
derppening pushed to temp/ndarray-rpc at M-Labs/nac3 2024-08-29 11:50:47 +08:00
816ad363f3 [artiq] WIP - Add debug_print_ndarray
derppening pushed to temp/ndarray-rpc at M-Labs/nac3 2024-08-29 11:48:56 +08:00
c2d2871d1f [artiq] WIP - Add debug_print_ndarray
derppening pushed to temp/ndarray-rpc at M-Labs/nac3 2024-08-29 11:44:04 +08:00
cb6bd36253 [artiq] WIP - Add debug_print_ndarray
derppening pushed to temp/ndarray-rpc at M-Labs/nac3 2024-08-29 11:43:51 +08:00
972d908a3b [artiq] WIP - Add debug_print_ndarray
derppening pushed to temp/ndarray-rpc at M-Labs/nac3 2024-08-29 11:38:38 +08:00
657b798a21 [core] WIP - Disable IRRT funcs with missing extern
derppening pushed to temp/ndarray-rpc at M-Labs/nac3 2024-08-29 11:32:31 +08:00
dc97ecb9f4 [artiq] WIP: num_threads = 1
derppening pushed to temp/ndarray-rpc at M-Labs/nac3 2024-08-29 11:29:13 +08:00
1370d55734 [artiq] WIP: Compile with -O0
derppening pushed to temp/ndarray-rpc at M-Labs/nac3 2024-08-29 11:00:44 +08:00
7e068154c6 [artiq] WIP
e26d6eb1b1 [artiq] WIP
69d14a3656 [artiq] WIP
4b7bfbd141 [artiq] WIP
bc9a426d32 [artiq] Fix RPC of ndarrays from host
Compare 26 commits »
derppening commented on pull request M-Labs/nac3#525 2024-08-28 22:07:04 +08:00
Fix several missing i1/i8 casts

All boolean operations (e.g. icmp) return i1, and LLVM's ABI uses i1 for boolean parameters in functions. I would prefer to follow these conventions as we need these casts either way.

derppening opened issue M-Labs/nac3#526 2024-08-28 16:39:03 +08:00
Refactor demo.c to C++ or Rust
derppening pushed to master at M-Labs/nac3 2024-08-28 16:38:11 +08:00
15ac00708a [core] Use quoted include paths instead of angled brackets
derppening pushed to misc/mold at M-Labs/nac3 2024-08-28 16:34:44 +08:00
7d40808c12 meta: Use mold as linker
a2922b24e0 [core] codegen/stmt: Add more casts for boolean types
be4dd27ec4 [core] codegen/expr: Fix missing cast to i1
5b2b6db7ed core: improve error messages
15e62f467e standalone: add tests for polymorphism
Compare 118 commits »
derppening pushed to misc/impl-tracert at M-Labs/nac3 2024-08-28 16:33:19 +08:00
145fcceeb3 core: WIP - Add tracer runtime
c8dfdcfdea standalone & artiq: remove class_names from resolver
600a5c8679 Revert "standalone: reformat demo.c"
22c4d25802 core/typecheck: add missing typecheck in matmul
308edb8237 standalone: reformat demo.c
Compare 34 commits »
derppening created pull request M-Labs/nac3#525 2024-08-28 15:38:50 +08:00
Fix several missing i1/i8 casts
derppening created branch fix/misc-fix in M-Labs/nac3 2024-08-27 20:09:52 +08:00
derppening pushed to fix/misc-fix at M-Labs/nac3 2024-08-27 20:09:52 +08:00
a2922b24e0 [core] codegen/stmt: Add more casts for boolean types
be4dd27ec4 [core] codegen/expr: Fix missing cast to i1
Compare 2 commits »
derppening commented on pull request M-Labs/nac3#509 2024-08-27 19:05:00 +08:00
ndstrides: [1] Introduce models

I did some testing and this might work:

pub struct CallFunction<'ctx, 'a, 'b, G: CodeGenerator + ?Sized> {
    generator: &'b mut G,
    ctx: &'b CodeGenContext<'ctx, 'a>,
    name: &'b
derppening commented on pull request M-Labs/nac3#509 2024-08-27 18:53:36 +08:00
ndstrides: [1] Introduce models

I guess you mean there could have been a single visitor that collects the fields into a Vec<dyn Model> and do stuff with that Vec (like checking field types and more).

The short…

derppening commented on pull request M-Labs/nac3#509 2024-08-27 18:52:12 +08:00
ndstrides: [1] Introduce models

I wouldn't be too concerned with using PhantomData here. I'd rather the type bounds of the struct be explicit so that users of this class do not misuse the fields.

In fact, we should also…

derppening commented on pull request M-Labs/nac3#509 2024-08-27 18:44:48 +08:00
ndstrides: [1] Introduce models

What about two functions, one that creates a void func and another that creates a value-returning func?