-
Notifications
You must be signed in to change notification settings - Fork 42
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-2006and thecpu-spec-2017folders.
- 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 -Xclangto ensure that compilation stops appropriately without errors. - Copy the config file to the
configfolder in thecpu2006installfolder. - 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
.ofiles 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 -Xclangto ensure that compilation stops appropriately without errors. -
Copy the config file to the
configfolder in thecpu2017installfolder. -
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
.ofiles 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.txtfile and proceed with generating the triplets.