Skip to content

shiltian/vscode-llvm-tblgen-language-support

Repository files navigation

LLVM TableGen Language Support

VSCode extension for LLVM TableGen (.td) files with syntax highlighting and language server features.

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)
  • let binding resolution (jumps to original field definition in parent class)

Configuration

Setting Description Default
tablegen.compileCommandsPath Path to tablegen_compile_commands.yml ${workspaceFolder}/tablegen_compile_commands.yml

Supports environment variables: ${env:VAR_NAME}

How It Works

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.

Installation

npm install && npm run compile
# Press F5 to launch Extension Development Host

Package:

npx @vscode/vsce package
code --install-extension llvm-tablegen-language-support-*.vsix

License

Apache License 2.0

About

VSCode extension for LLVM TableGen (`.td`) files with syntax highlighting and language server features.

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors