Skip to content

pku-liang/aps-compiler

Repository files navigation

How to build

git clone https://github.com/arch-of-shadow/aps-compiler.git
git submodule update --init --recursive

pip install uv && uv venv && source ./.venv/bin/activate
uv pip install -r ./requirements.txt

apt update && apt install cmake ninja-build build-essensial clang-14
bash build.sh

Dump Semantic Json (take ntt as an example)

cd ${COMPILER_PATH}/3rdparty/aps-synth
cargo run --bin aps -- -i samples/xys_ntt.cadl -a rocc export
cp ./__generated/arch.json ../../cache

the generated json lies in ${COMPILER_PATH}/cache

Run Python Parser

source ${COMPILER_PATH}/.venv/bin/activate
cd ${COMPILER_PATH}/Opt/PatternMatch/Parser && python3 test_main.py

the match function will automatically generated at ${COMPILER_PATH}/Opt/PatternMatch/offline_gen/matched.cpp

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published