Skip to content

Commit 15a9409

Browse files
authored
Update README.md
1 parent 449919f commit 15a9409

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@ $ ./build/bin/clang++ foo.cpp -O3 -mllvm --run-prediction
2323
$ lnt runtest test-suite --sandbox ~/sandbox/ --cc $LLVM_HOME/bulid/bin/clang --cxx $LLVM_HOME/bulid/bin/clang -j16 --test-suite ~/llvm-test-suite/ --cppflags="-fexperimental-new-pass-manager -O3 -mllvm --dump-all-result
2424
$ python3 $LLVM_HOME/script/accmulate_data.py ~/sandbox/test-xxx
2525
```
26-
This creates data.csv to the current directory
26+
This creates data.csv to the current directory.
2727

2828
## Description of Addition
2929
1. I have added/modified following files:
30-
* llvm/Analysis/MLPassResultPredictor.{h, cpp}
30+
* `llvm/Analysis/MLPassResultPredictor.{h, cpp}`
31+
3132
This file defines Pass Result Predictor framework interfaces. `MLPassResultPredcitor<IRUnit,AnalysisManger>` has `predictPassResult` method, which takes pass name (i.e. SROA, GVN...), IR (i.e. Function, Module...) as inputs and returns the estimated result of the pass. In that file, we can define prediction algorithms seprately. In PassManager, the predictor is called before the pass execcution (currently only before function passes).
32-
* llvm/Analysis/PassReulstAnalysis.{h, cpp}
33-
This defineds Analysis pass
33+
* `llvm/Analysis/PassReulstAnalysis.{h, cpp}`
34+
35+
This defineds Analysis pass whose result is a boolean vector to store predictions from the model. Model definition is `llvm/Analysis/models/all_model/`.

0 commit comments

Comments
 (0)