-
Notifications
You must be signed in to change notification settings - Fork 41
spec_compilation
GitHub Action edited this page Nov 20, 2024
·
3 revisions
- Here, we describe the process to follow to generate ll files from the
cpu-spec-2006
and thecpu-spec-2017
folders.
- Run installation using the command
bash install.sh
. - Create config file, using
config_clang14_cpu2006.cfg
. - Change the following compilation parameters to reflect the appropriate llvm version.
-
CC
,CXX
-
- To
COPTIMIZE
, andCXXOPTIMIZE
, also add-S -emit-llvm -Xclang
to ensure that compilation stops appropriately without errors. - Copy the config file to the
config
folder in thecpu2006install
folder. - Source the install.
source shrc
- Run the command
runspec --config config_clang16_cpu2006.cfg --tune=base --action=build --rebuild --define build_ncpus=1 int fp
- Once the
.o
files are generated, run the script (collect_ir/spec/get_ll_spec.sh
) with appropriate changes to get these files together in the repo.
-
Run installation.
-
Create config file, using
config_clang14_cpu2017.cfg
. -
Change the following compilation parameters to reflect the appropriate llvm version.
-
CC
,CXX
,CLD
,FLD
-
-
To
COPTIMIZE
, andCXXOPTIMIZE
, also add-S -emit-llvm -Xclang
to ensure that compilation stops appropriately without errors. -
Copy the config file to the
config
folder in thecpu2017install
folder. -
Source the install.
source shrc
-
Run the command
runcpu --config config_clang16_cpu2017.cfg --tune=base --action=build --rebuild --define build_ncpus=1 intrate fprate intspeed fpspeed
-
Once the
.o
files are generated, run the script (collect_ir/spec/get_ll_spec.sh
) with appropriate changes to get these files together in the repo. -
Once the ll, .o files are generated, collect them in an
ll_files.txt
file and proceed with generating the triplets.