From e93191fb48ee0500e9d65c60e34f6628189c2565 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20H=C3=B6lscher?= Date: Tue, 19 Apr 2022 11:13:19 +0200 Subject: [PATCH] removed TODOs --- CacheAnalysisPass/CacheAnalysisPass.cpp | 4 ---- README.md | 12 +++++++++++- 2 files changed, 11 insertions(+), 5 deletions(-) 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