removed TODOs

This commit is contained in:
Nils Hölscher 2022-04-19 11:13:19 +02:00
parent 7889bb22e8
commit e93191fb48
2 changed files with 11 additions and 5 deletions

View File

@ -94,9 +94,6 @@ std::string typeToName(Type::TypeID Id) {
} }
// New PM implementation // New PM implementation
// TODO: assign Misses to CacheState
// TODO: Find longest Path, LPsolve?
// TODO: Sum up Cache misses over longest path.
struct CacheAnalysisPass : PassInfoMixin<CacheAnalysisPass> { struct CacheAnalysisPass : PassInfoMixin<CacheAnalysisPass> {
// Development Options // Development Options
@ -117,7 +114,6 @@ struct CacheAnalysisPass : PassInfoMixin<CacheAnalysisPass> {
std::map<Value *, unsigned int> Value2Addr; std::map<Value *, unsigned int> Value2Addr;
AbstractCache AC; AbstractCache AC;
// TODO mark visit ed F's BB's and Inst's
std::map<Function *, bool> VisitedFunctions; std::map<Function *, bool> VisitedFunctions;
unsigned int stringRefToInt(StringRef SR) { unsigned int stringRefToInt(StringRef SR) {

View File

@ -4,7 +4,7 @@ In this lab session you will learn how to implement a LRU cache in abstract repr
The Goal is to implement an LRU must Join in include/AbstractState.h The Goal is to implement an LRU must Join in include/AbstractState.h
The Project can build, tested and Evaluated with the Helper Script. The Project can build, tested and Evaluated with the Helper Script.
## Diclaimer ## Disclaimer
This is the first time we provide this exercise. This is the first time we provide this exercise.
Should you encounter something you think is a Bug, please let me know, during lab sessions. Should you encounter something you think is a Bug, please let me know, during lab sessions.
@ -46,6 +46,16 @@ This will build a docker image and run a Docker container with the current direc
## Debugging ## Debugging
When you are using VS Code you can simply use the Debugging Tab, we prepared a debug script for you. When you are using VS Code you can simply use the Debugging Tab, we prepared a debug script for you.
You can also set the following variables in the CacheAnalysisPass/CacheAnalysisPass.cpp file, for more output:
```cpp
// Development Options
bool PrintAddresses = false;
bool PrintEdges = false;
bool PrintEdgesPost = false;
bool DumpToDot = false;
bool DumpNodes = false;
```
## Use the Helper script ## Use the Helper script