To install all needed dependencies run nix
nix develop
meson setup build
meson compile -C build
Or using nix build:
nix build .
To run compiled:
opt -load-pass-plugin build/lib/libllvm-api-gen.so -passes "llvm-api-gen" build/highlife.ll --disable-output
Or (if you used nix build)
opt -load-pass-plugin result/lib/libllvm-api-gen.so -passes "llvm-api-gen" build/highlife.ll --disable-output