ModuleFusionScript.sh 396 B

12345678910
  1. #!/bin/bash
  2. # 获取脚本所在目录
  3. SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
  4. # 切换到项目根目录
  5. cd "$SCRIPT_DIR/.."
  6. opt -load ./build/ModuleFusion.so -codefusion < proprocess_output/combined_tagged.ll > output/module_fusion.bc 2> output/log_module_fusion.txt
  7. llvm-dis output/module_fusion.bc -o output/module_fusion_text.ll
  8. llvm-cbe output/module_fusion_text.ll