All Projects → maerhart → llhd

maerhart / llhd

Licence: other
A low-level intermediate representation for hardware description languages

Programming Languages

C++
36643 projects - #6 most used programming language
MLIR
15 projects
CMake
9771 projects
c
50402 projects - #5 most used programming language
python
139335 projects - #7 most used programming language

LLHD

LLHD Documentation

Development repository for the LLHD Dialect. The repository depends on a build of llvm including mlir. Once the llvm and mlir are built setup configure the project using the following commands.

mkdir build && cd build
cmake -G Ninja .. -DCMAKE_LINKER=<path_to_lld> -DLLVM_DIR=<install_root>/lib/cmake/llvm/ -DLLVM_EXTERNAL_LIT=<build_root>/bin/llvm-lit
cmake --build . --target llhdc
cmake --build . --target check-llhdc

In case an error occurs stating that llvm_expand_pseudo_components (or some other llvm related cmake command) is not found, make sure that cmake uses the LLVMConfig.cmake file built and installed previously (not the one of another installation, e.g. /usr/...)

llvm build instructions

Cmake configuration for llvm

cmake -G Ninja ../llvm -DLLVM_BUILD_EXAMPLES=OFF -DLLVM_TARGETS_TO_BUILD="host" -DCMAKE_INSTALL_PREFIX=<install_root> -DLLVM_ENABLE_PROJECTS='mlir' -DLLVM_OPTIMIZED_TABLEGEN=ON -DLLVM_ENABLE_OCAMLDOC=OFF -DLLVM_ENABLE_BINDINGS=OFF -DLLVM_INSTALL_UTILS=ON -DCMAKE_LINKER=<path_to_lld> -DLLVM_PARALLEL_LINK_JOBS=2

Build llvm with

cmake --build . --target install
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].