Open CBalaa opened 3 months ago
FrontendGen is designed for generate mlir project quickly by writing fegen files.
Build LLVM/MLIR with RTTI and EH enabled.
$ cd buddy-mlir $ mkdir llvm/build $ cd llvm/build $ cmake -G Ninja ../llvm \ -DLLVM_ENABLE_PROJECTS="mlir" \ -DLLVM_TARGETS_TO_BUILD="host;RISCV" \ -DLLVM_ENABLE_ASSERTIONS=ON \ -DCMAKE_BUILD_TYPE=RELEASE \ -DLLVM_ENABLE_RTTI=ON \ -DLLVM_ENABLE_EH=ON $ ninja check-mlir
Build FrontendGen. The FeGen option should be enabled.
FeGen
$ cmake -G Ninja .. \ -DMLIR_DIR=$PWD/../llvm/build/lib/cmake/mlir \ -DLLVM_DIR=$PWD/../llvm/build/lib/cmake/llvm \ -DLLVM_ENABLE_ASSERTIONS=ON \ -DFeGen=ON \ -DCMAKE_BUILD_TYPE=RELEASE $ ninja buddy-frontendgen
How to build
FrontendGen is designed for generate mlir project quickly by writing fegen files.
Build LLVM/MLIR with RTTI and EH enabled.
Build FrontendGen. The
FeGen
option should be enabled.