VSCode extension for LLVM TableGen (.td) files with syntax highlighting and language server features.
- Syntax highlighting
- Go to Definition (classes, defs, multiclasses, fields, template arguments)
- Rename symbols
- Document outline
- Type-aware field resolution (
obj.field,ClassName<args>.field) letbinding resolution (jumps to original field definition in parent class)
| Setting | Description | Default |
|---|---|---|
tablegen.compileCommandsPath |
Path to tablegen_compile_commands.yml |
${workspaceFolder}/tablegen_compile_commands.yml |
Supports environment variables: ${env:VAR_NAME}
Uses tablegen_compile_commands.yml (generated by LLVM's CMake build) to build an include graph. Files are lazily indexed when opened. Symbol resolution respects scoping and inheritance.
npm install && npm run compile
# Press F5 to launch Extension Development HostPackage:
npx @vscode/vsce package
code --install-extension llvm-tablegen-language-support-*.vsixApache License 2.0