-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathinstall
executable file
·51 lines (38 loc) · 1.14 KB
/
install
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
#./dependecies
#This script install all the frameworks required for CGRA execution.
#=============================================================
#build Instruction Generator
cd 2.0/InstructionGenerator
g++ -static insgen.cpp -o insgen
cd ../
#=============================================================
#Enter REGIMap to build it.
cd REGIMap/REGIMap_2.8/Release/
make
cd ../../../
#===========================================================
#Enter gem5 to build.
cd gem5
scons build/ARM/gem5.opt
cp ../Dependencies/ARM build/variables/
scons build/ARM/gem5.opt
cd ../../
#===========================================================
#Enter llvm directory to build llvm
cd llvm
rm -rf build
mkdir build
cd build
../configure ENABLE_OPTIMIZED=1
#cmake -DCMAKE_BUILD_TYPE=Release -G "Unix Makefiles" ../
cp Makefile.config Makefile.config.in
cp ../Makefile.rules .
make
cd ../../
#==========================================================
#Making CGRA-Loop recognition LLVM Pass.
cp -r 2.0/MahdiLoop llvm/build/lib/Transfoms/
cd llvm/build/lib/Transforms/MahdiLoop/
make
#==========================================================