diff --git a/CacheAnalysisPass/CacheAnalysisPass.cpp b/CacheAnalysisPass/CacheAnalysisPass.cpp index 584b548..c69ea96 100644 --- a/CacheAnalysisPass/CacheAnalysisPass.cpp +++ b/CacheAnalysisPass/CacheAnalysisPass.cpp @@ -94,9 +94,6 @@ std::string typeToName(Type::TypeID Id) { } // New PM implementation -// TODO: assign Misses to CacheState -// TODO: Find longest Path, LPsolve? -// TODO: Sum up Cache misses over longest path. struct CacheAnalysisPass : PassInfoMixin { // Development Options @@ -117,7 +114,6 @@ struct CacheAnalysisPass : PassInfoMixin { std::map Value2Addr; AbstractCache AC; - // TODO mark visit ed F's BB's and Inst's std::map VisitedFunctions; unsigned int stringRefToInt(StringRef SR) { diff --git a/README.md b/README.md index 910b025..f120363 100644 --- a/README.md +++ b/README.md @@ -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 Project can build, tested and Evaluated with the Helper Script. -## Diclaimer +## Disclaimer 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. @@ -46,6 +46,16 @@ This will build a docker image and run a Docker container with the current direc ## Debugging 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