From 7889bb22e8af81115704a5dc19c552330a047346 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20H=C3=B6lscher?= Date: Tue, 19 Apr 2022 11:09:17 +0200 Subject: [PATCH] Gitignore, debugscript, and some linting. --- .clang-format | 2 ++ .clang-tidy | 1 + .gitignore | 9 +++++++++ .vscode/launch.json | 39 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 51 insertions(+) create mode 100644 .clang-format create mode 100644 .clang-tidy create mode 100644 .gitignore create mode 100644 .vscode/launch.json diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..5bead5f --- /dev/null +++ b/.clang-format @@ -0,0 +1,2 @@ +BasedOnStyle: LLVM + diff --git a/.clang-tidy b/.clang-tidy new file mode 100644 index 0000000..47bc73c --- /dev/null +++ b/.clang-tidy @@ -0,0 +1 @@ +InheritParentConfig: true diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..aa797a9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +build +*.out +*.dot +*.png +*.txt +.gitconfig +.vscode-server +.gnupg +.bash_history \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..06d3d05 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,39 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "DBG fft1", + "type": "cppdbg", + "request": "launch", + "program": "/usr/bin/opt", + "args": [ + "-load-pass-plugin", + "${fileDirname}/../build/libCacheAnalysisPass.so", + "-passes='lru-misses'", + "${fileDirname}/../test/fft1.ll", + "-o", + "/dev/null" + ], + "stopAtEntry": false, + "cwd": "${fileDirname}", + "environment": [], + "externalConsole": false, + "MIMode": "gdb", + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + }, + { + "description": "Set Disassembly Flavor to Intel", + "text": "-gdb-set disassembly-flavor intel", + "ignoreFailures": true + } + ] + } + ] +} \ No newline at end of file