sabbaghm / c-ll-verilog

An LLVM based mini-C to Verilog High-level Synthesis tool
MIT License
35 stars 9 forks source link

Newer LLVM version support (only for codegen) #2

Open medbzkst opened 1 year ago

medbzkst commented 1 year ago

Update: Support New Pass Manager (tested on LLVM 17/18) and migrate to CPP

amibranch commented 8 months ago

Thanks for your effort to get the c-ll-verilog-project updated. I also tried to get the parser compiled on rather new compilers and llvm-version. C.f. this fork: https://github.com/amibranch/c-ll-verilog (I am not really experienced in C++ - so comments would be highly appreciated - but that's not my point/request here).

However, so far I was not able to get the pass-module to work as intended (I compiled against llvmorg-18.1.0-rc3 and tried to run it with $ ./parser/parser filter.c | opt -p mem2reg -f | llvm-dis | opt --load=./codegen/verilog.so -p verilog -o filter.v). Maybe you could update the simpleHLS.bash-file, to make your change and the project testable as described in the README.md?

Maybe it's just because I used the wrong pass-name. However, --print-passes does also not list the verilog-pass.