diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 306cf83..d966652 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -12,7 +12,10 @@ "matepek.vscode-catch2-test-adapter", "twxs.cmake", "vadimcn.vscode-lldb", - "xaver.clang-format" + "xaver.clang-format", + "yzhang.markdown-all-in-one", + "shd101wyy.markdown-preview-enhanced", + "streetsidesoftware.code-spell-checker" ], // Use 'forwardPorts' to make a list of ports inside the container available locally. diff --git a/.vscode/launch.json b/.vscode/launch.json index fc64681..b508518 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -4,21 +4,6 @@ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ - // { - // "type": "lldb", - // "request": "launch", - // "name": "LLDB Unrolling", - // "program": "/usr/bin/opt", - // "args": [ - // "-load-pass-plugin", - // "${workspaceFolder}/build/libCacheAnalysisPass.so", - // "-passes=lru-misses", - // "${workspaceFolder}/test/cnt.ll", - // "-o", - // "/dev/null" - // ], - // "cwd": "${workspaceFolder}" - // }, { "type": "lldb", "request": "launch", @@ -34,36 +19,36 @@ ], "cwd": "${workspaceFolder}" }, - { - "name": "gdb fft1", - "type": "cppdbg",//Only Usable with C/C++ extension installed from Microsoft. - "request": "launch", - "program": "/usr/bin/opt", - "args": [ - "-load-pass-plugin", - "${fileDirname}/../build/lib/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 - } - ] - } + // { + // "name": "gdb fft1", + // "type": "cppdbg",//Only Usable with C/C++ extension installed from Microsoft. + // "request": "launch", + // "program": "/usr/bin/opt", + // "args": [ + // "-load-pass-plugin", + // "${fileDirname}/../build/lib/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 diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 5d687a3..79e5713 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -3,10 +3,16 @@ // for the documentation about the tasks.json format "version": "2.0.0", "tasks": [ + { + "label": "config", + "type": "shell", + "command": "rm -r build ; rm complile_commands.json ; mkdir build ; cd build ; cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DLT_LLVM_INSTALL_DIR=$LLVM_DIR ..", + "group": "build" + }, { "label": "build", "type": "shell", - "command": "./helper.sh all", + "command": " cd build ; ninja ", "group": "build" }, ] diff --git a/helper.sh b/helper.sh index f1ce1d5..64379a6 100755 --- a/helper.sh +++ b/helper.sh @@ -11,7 +11,7 @@ config () { mkdir build cd build echo "==== Configuring cmake ====" - cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DLT_LLVM_INSTALL_DIR=/usr .. + cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DLT_LLVM_INSTALL_DIR=$LLVM_DIR .. cd .. cp build/compile_commands.json compile_commands.json echo "==== Done! ===="