-
Notifications
You must be signed in to change notification settings - Fork 0
Building DIMPLE
-
LLVM : DIMPLE uses the LLVM software infrastructure to compile the source code to the LLVM intermediate representation (IR). Therefore, LLVM libraries are needed to build DIMPLE. Please lookup the LLVM docs to figure out the best way to install the software (version 17.0 is recommended).
-
Clang : By default the clang++ compiler is used to compile the DIMPLE source code. If you wish to switch to another compiler (e.g. GCC) you will need to modify the Makefile accordingly, and make sure that the LLVM libraries are correctly linked.
Clone the DIMPLE source code onto your machine with git clone https://github.com/avartak/DIMPLE/
. You can build DIMPLE by running make
in the top directory. You will need to adapt the following line in the Makefile according to your LLVM installation.
LLVM := /mnt/c/Users/adishvar/Work/Software/LLVM/Install
Assuming all prerequisites are correctly installed, make
should produce an executable called dimple
. You can test it by running the examples in the test/helloworld
and test/factorial
folders (simply go to these folders and run make).