1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hmz007 6d24f2138b
Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56)
3 years ago
..
src Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
syntaxes Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
.gitignore Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
.vscodeignore Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
CHANGELOG.md Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
README.md Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
language-configuration-tablegen.json Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
language-configuration.json Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
package-lock.json Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
package.json Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
tsconfig.json Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
vsc-extension-quickstart.md Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago

README.md

VS Code Extension For LLVM Dev

Features

  • LLVM IR files (.ll) syntax highlighting. (manually translated from llvm/utils/vim/syntax/llvm.vim)
  • TableGen files (.td) syntax highlighting. (translated from llvm/utils/textmate)
  • PatternMatchers for LIT test output. ($llvm-lit, $llvm-filecheck)
  • Tasks to run LIT on current selected file. (Terminal -> Run Task -> llvm-lit)

Installation

sudo apt-get install nodejs-dev node-gyp npm
sudo npm install -g typescript npx vsce

Install From Source

cd <extensions-installation-folder>
cp -r llvm/utils/vscode/llvm .
cd llvm
npm install
npm run vscode:prepublish

<extensions-installation-folder> is OS dependent.

Please refer to https://code.visualstudio.com/docs/editor/extension-gallery#_where-are-extensions-installed

Install From Package (.vsix)

First package the extension according to https://code.visualstudio.com/api/working-with-extensions/publishing-extension#usage.

Then install the package according to https://code.visualstudio.com/docs/editor/extension-gallery#_install-from-a-vsix.

Setup

Set cmake.buildDirectory to your build directory.

https://code.visualstudio.com/docs/getstarted/settings

https://vector-of-bool.github.io/docs/vscode-cmake-tools/settings.html#cmake-builddirectory