cdl-saarland / rv

RV: A Unified Region Vectorizer for LLVM
Other
106 stars 16 forks source link

Attributes.inc: No such file or directory #62

Closed ssinad closed 1 year ago

ssinad commented 1 year ago

I tried to build llvm-project with rv inside by adding the options to the cmake command (-DLLVM_EXTERNAL_PROJECTS="rv" -DLLVM_EXTERNAL_RV_SOURCE_DIR=llvm-project/rv). However, I got the following error multiple times:

llvm-project/llvm/include/llvm/IR/Attributes.h:88:14 fatal error: llvm/IR/Attributes.inc: No such file or directory

I checked and it seems that Attributes.inc hasn't been generated yet.
Is there a way to fix this?

richardmembarth commented 1 year ago

This error seems to be related to building LLVM, not RV?

ssinad commented 1 year ago

This error seems to be related to building LLVM, not RV?

LLVM with RV inside it. The header files are included in the rv source files which cause the problem such as rv/src/rv.cpp and rv/src/init.cpp. If I remove -DLLVM_EXTERNAL_PROJECTS="rv" -DLLVM_EXTERNAL_RV_SOURCE_DIR=llvm-project/rv from cmake, LLVM would build just fine.

richardmembarth commented 1 year ago

It's hard to tell without any log ...

The current master branch is stuck at LLVM 14, the release/14.x branch is more up-to-date. You can find a script that builds also LLVM + RV here: https://github.com/AnyDSL/anydsl/

richardmembarth commented 1 year ago

Since there is no update, I assume that you could build RV.