Skip to content
View dalmurii's full-sized avatar

Organizations

@ae2f @DoGlIce

Block or report dalmurii

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
dalmurii/README.md

dalmurii

I seek for portability, not performance.


aclspv

An annotated C-family language compiler library that lowers to SPIR-V directly from the libclang AST, without going through LLVM IR.

Why not just link clspv? I tried. It built, then I met static initialization order and an infinite loop. The problem was not that library — it was that the compiler boundary lived outside my code. So I moved the boundary inside.

__attribute__((annotate("aclspv_execmodel(0)")))   /* vertex */
void vs(
    __attribute__((annotate("aclspv_storage_class(1)"))) const float* in,
    __attribute__((annotate("aclspv_storage_class(3)"))) float* out) {
    *out = *in * 2.0f;
}
Size 40k LOC · 365 commits · since 2025.12
Split 26k lines C · 12k lines headers · 2.3k lines C++ templates
Tested 49 compile tests, every module validated by spirv-val
Spec aclang.adoc — 1,308 lines
Attributes 19 (execution model, storage class, layout, builtin, …)

Read (ko-kr)

C90 · libclang · SPIR-V · Vulkan · structured control flow · SSA


github.com/dalmurii · aclspv/essential

Pinned Loading

  1. ae2f/ae2f ae2f/ae2f Public

    All in one

    CMake 2 1