Skip to content

caching of comptime function calls #7669

Description

@andrewrk
exportfn_start() noreturn {
assert(List(i32) ==List(i32));
exit(0);
}
fnList(T: type) type {
returnstruct {
items: []T,
capacity: usize,
};
}
fnassert(ok: bool) {
if (!ok) @panic("test fail");
}
fnexit(code: usize) noreturn {
asmvolatile ("syscall"
:
: [number] "{rax}" (231),
[arg1] "{rdi}" (code)
: "rcx", "r11", "memory"
);
unreachable;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementSolving this issue will likely involve adding new logic or components to the codebase.frontendTokenization, parsing, AstGen, Sema, and Liveness.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions